Py2 cleanup: py3 on old branches (or none), remove py27

Make sure that the job running on master are py3 based,
according the established policy.
RGW must be used to provide the Swift API on Stein,
as devstack cannot properly deploy Swift/py2
in a Python 3 environment (old issue never fully solved).

Remove all EM releases where Python 3.6 is not available
and Tempest is not supported anymore. They will be gated
by sahara and python-saharaclient stable gates if needed;
the py2 variants are kept for this reason.
At the same time, remove the py35 unit test job,
as it is not supported anymore.

If an incompatible changes breaks an older branch,
an older sahara-tests version will be pinned there.

Remove the leftover py27 unit test jobs, which were
still needed when the py2 version of sahara-tests was
used on older branches (the py3 version is always used
even when the deployment is py2).

Finally, fix a multi-line issue with a shell command
which strangely happens for the master job only.

Change-Id: Id80ef7e186f6328ab162b92eebababd7e4886560
This commit is contained in:
Luigi Toscano 2020-04-10 10:49:17 +02:00
parent 752970e295
commit 2cb44abfce
2 changed files with 5 additions and 39 deletions

View File

@ -1,8 +1,6 @@
- project:
templates:
- openstack-python-jobs
- publish-openstack-docs-pti
- openstack-python35-jobs
- openstack-python3-ussuri-jobs
- release-notes-jobs-python3
check:
@ -17,9 +15,6 @@
- sahara-tests-tempest-v2
- sahara-tests-scenario-train
- sahara-tests-scenario-stein
- sahara-tests-scenario-rocky
- sahara-tests-scenario-queens
- sahara-tests-scenario-pike
gate:
queue: sahara
jobs:
@ -193,47 +188,18 @@
sahara_scenario_use_api_v2: True
# pre-Ussuri scenario tests: devstack must use python 2,
# but sahara-scenario can use python 3.
# pre-Ussuri scenario tests: fully-py3 based according the rules
# (jobs running on master must use Python 3), but use RGW
# on pre-Train branches as Swift/py3 does not work there.
- job:
name: sahara-tests-scenario-train
parent: sahara-tests-scenario
override-checkout: stable/train
vars:
devstack_localrc:
USE_PYTHON3: 'False'
- job:
name: sahara-tests-scenario-stein
parent: sahara-tests-scenario
parent: sahara-tests-scenario-py3
override-checkout: stable/stein
vars:
devstack_localrc:
USE_PYTHON3: 'False'
- job:
name: sahara-tests-scenario-rocky
parent: sahara-tests-scenario
override-checkout: stable/rocky
vars:
devstack_localrc:
USE_PYTHON3: 'False'
- job:
name: sahara-tests-scenario-queens
parent: sahara-tests-scenario
override-checkout: stable/queens
vars:
devstack_localrc:
USE_PYTHON3: 'False'
- job:
name: sahara-tests-scenario-pike
parent: sahara-tests-scenario
override-checkout: stable/pike
vars:
devstack_localrc:
USE_PYTHON3: 'False'
- job:
name: sahara-tests-scenario-modwsgi

View File

@ -24,7 +24,7 @@
- name: register the required image in Sahara
shell: |
openstack --os-cloud {{ sahara_cloud_demo }} dataprocessing image register \
--username {{ sahara_image_user }} {{ sahara_image_name }}
--username {{ sahara_image_user }} {{ sahara_image_name }};
openstack --os-cloud {{ sahara_cloud_demo }} dataprocessing image tags add {{ sahara_image_name }} --tags \
{{ sahara_plugin_version }} {{ sahara_plugin }}