aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-06-14 15:11:00 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-06-15 09:14:36 +0200
commita98d8e557efbe723e71f283951a7717b31fb33ff (patch)
tree35736de8a07f8d77879896ca48cdcd26476daa6e
parent5a7281542d1aa3861a01617854d8d609c05dbe2a (diff)
Stop leveraging on neutron plugins and extra
Neutron leverages on the upstream Rally task in Stein and newer. Leveraging on the upstream task may fix the side effects which sometimes occured on Vmtp and Shaker [1] and filled better the CNTT model. [1] https://build.opnfv.org/ci/view/functest/job/functest-hunter-daily/574/ Change-Id: I5ee2e3a3ca956cf57365bf4579534177e87dc08b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 4375f6b9cbf0916c8d82ab31cd30e45e40129ff6)
-rw-r--r--docker/benchmarking/Dockerfile4
-rw-r--r--functest/opnfv_tests/openstack/rally/rally.py20
2 files changed, 2 insertions, 22 deletions
diff --git a/docker/benchmarking/Dockerfile b/docker/benchmarking/Dockerfile
index fa33a82bd..9e8493386 100644
--- a/docker/benchmarking/Dockerfile
+++ b/docker/benchmarking/Dockerfile
@@ -18,12 +18,12 @@ RUN apk --no-cache add --update libxml2 libxslt && \
pip3 install --no-cache-dir --src /src -c/src/requirements/upper-constraints.txt \
-c/src/functest/upper-constraints.txt \
/src/vmtp && \
- mkdir -p /home/opnfv/functest/data/rally/neutron && \
+ mkdir -p /home/opnfv/functest/data/rally/neutron/rally-jobs && \
git init /src/neutron && \
(cd /src/neutron && \
git fetch --tags https://opendev.org/openstack/neutron.git $NEUTRON_TAG && \
git checkout FETCH_HEAD) && \
- cp -r /src/neutron/rally-jobs /home/opnfv/functest/data/rally/neutron/rally-jobs && \
+ cp /src/neutron/rally-jobs/task-neutron.yaml /home/opnfv/functest/data/rally/neutron/rally-jobs/ && \
rm -r /src/vmtp /src/neutron && \
apk del .build-deps
COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py
index 2f5b0aae5..e2b0b07bd 100644
--- a/functest/opnfv_tests/openstack/rally/rally.py
+++ b/functest/opnfv_tests/openstack/rally/rally.py
@@ -810,26 +810,10 @@ class RallyJobs(RallyBase):
task_args['flavor_name'] = str(self.flavor.name)
return task_args
- @staticmethod
- def _remove_plugins_extra():
- inst_dir = getattr(config.CONF, 'dir_rally_inst')
- try:
- shutil.rmtree(os.path.join(inst_dir, 'plugins'))
- shutil.rmtree(os.path.join(inst_dir, 'extra'))
- except Exception: # pylint: disable=broad-except
- pass
-
def prepare_task(self, test_name):
"""Prepare resources for test run."""
- self._remove_plugins_extra()
jobs_dir = os.path.join(
getattr(config.CONF, 'dir_rally_data'), test_name, 'rally-jobs')
- inst_dir = getattr(config.CONF, 'dir_rally_inst')
- shutil.copytree(os.path.join(jobs_dir, 'plugins'),
- os.path.join(inst_dir, 'plugins'))
- shutil.copytree(os.path.join(jobs_dir, 'extra'),
- os.path.join(inst_dir, 'extra'))
-
task_name = self.task_yaml.get(test_name).get("task")
task = os.path.join(jobs_dir, task_name)
if not os.path.exists(task):
@@ -844,7 +828,3 @@ class RallyJobs(RallyBase):
"--task", task_file_name,
"--task-args", str(self.build_task_args(test_name))])
return True
-
- def clean(self):
- self._remove_plugins_extra()
- super(RallyJobs, self).clean()