tempest-slow-py3 test use python 2 on stable/ussuri

Bug #1935956 reported by Luigi Toscano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Medium
Unassigned

Bug Description

After the reshuffling of tempest-slow-py3 in https://review.opendev.org/c/openstack/tempest/+/796322, the stable/ussuri version of the job uses python2. I suspect this happens because tempest-slow-py3 inherits from tempest-slow, which inherits from tempest-multinode-full, whose ussuri variant explicitly set USE_PYTHON3 to false (the variant definitions are a bit tricky to follow between zuul.d/integrated-gate.yaml and zuul.d/stable-jobs.yaml).

Example of failure:

https://zuul.opendev.org/t/openstack/build/89a0089c17d64aa6b79d40e00f09caac

+ tools/install_pip.sh:install_get_pip:95 : python3_enabled
+ inc/python:python3_enabled:467 : [[ False == \T\r\u\e ]]
+ inc/python:python3_enabled:470 : return 1
+ tools/install_pip.sh:install_get_pip:96 : sudo -H -E python /opt/stack/devstack/files/get-pip.py -c /opt/stack/devstack/tools/cap-pip.txt
ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead.

This is blocking the ussuri gates at least for cinder. This could be fixed in cinder by switching to tempest-slow on all newer branches, but still it should work.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/800614

Changed in tempest:
status: New → In Progress
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

thanks for catching it, I thought default USE_PYTHON3 in ussuri which is true will be taken but base jobs are mesh here.

Changed in tempest:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.opendev.org/c/openstack/tempest/+/800614
Committed: https://opendev.org/openstack/tempest/commit/b9ac05717b6adec53206caa1f07a9ec98673db3e
Submitter: "Zuul (22348)"
Branch: master

commit b9ac05717b6adec53206caa1f07a9ec98673db3e
Author: Luigi Toscano <email address hidden>
Date: Tue Jul 13 12:44:35 2021 +0200

    Fix tempest-slow-py3: use the correct inheritance chain

    Derive the job from the py3 version of the multinode base job,
    otherwise several definitions are lost.
    The more visible symption of this issue is the wrong usage of
    USE_PYTHON3=False when the job is used on stable/ussuri.

    Closes-Bug: #1935956
    Change-Id: I603f952f18851828ca681ddcc82c54c4d2fe66e6

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tempest train-last

This issue was fixed in the openstack/tempest train-last release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.