[stable branches] devstack-tobiko-neutron job Fails with InvocationError('could not find executable python', None)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Unassigned |
Bug Description
It started failing[1] since the job switched to ubuntu-jammy[2].
Fails as below:-
2023-09-13 16:46:18.124882 | TASK [tobiko-tox : run sanity test cases before creating resources]
2023-09-13 16:46:19.463567 | controller | neutron_sanity create: /home/zuul/
2023-09-13 16:46:20.518574 | controller | neutron_sanity installdeps: -c/home/
2023-09-13 16:46:20.519390 | controller | ERROR: could not install deps [-c/home/
2023-09-13 16:46:20.520263 | controller | _______
2023-09-13 16:46:20.555843 | controller | ERROR: neutron_sanity: could not install deps [-c/home/
2023-09-13 16:46:21.141713 | controller | ERROR
2023-09-13 16:46:21.142024 | controller | {
2023-09-13 16:46:21.142117 | controller | "delta": "0:00:01.484351",
2023-09-13 16:46:21.142197 | controller | "end": "2023-09-13 16:46:20.556249",
2023-09-13 16:46:21.142276 | controller | "failed_
2023-09-13 16:46:21.142353 | controller | "msg": "non-zero return code",
2023-09-13 16:46:21.142688 | controller | "rc": 1,
2023-09-13 16:46:21.142770 | controller | "start": "2023-09-13 16:46:19.071898"
2023-09-13 16:46:21.142879 | controller | }
2023-09-13 16:46:21.142972 | controller | ERROR: Ignoring Errors
Example failures zed/stable2023.1:-
- https:/
- https:/
- https:/
Wallaby/Xena/Yoga builds started failing with:-
++ functions:
+ ./stack.sh:main:230 : SUPPORTED_
+ ./stack.sh:main:232 : [[ ! jammy =~ bullseye|
+ ./stack.sh:main:233 : echo 'WARNING: this script has not been tested on jammy'
Example:-
- https:/
- https:/
- https:/
Even before these jobs were broken but there tests used to fail not the test setup, that can be handled once the current issues are cleared.
[1] https:/
[2] https:/
tags: | added: stable |
Changed in neutron: | |
importance: | Undecided → High |
Sharing some findings, but I'm still far from the solution.
Regarding the first issue with the 2023.1 branch /1d99560c221207 a33e89- 14a854fbbf5a230 846aba3c6a65bcd 80.ssl. cf5.rackcdn. com/periodic/ opendev. org/openstack/ neutron/ stable/ 2023.1/ devstack- tobiko- neutron/ d1de823/ job-output. txt .local/ lib/python3. 8/site- packages/ tox/__init_ _.py'} src/opendev. org/x/tobiko/ .tox/py3/ bin/python /home/zuul/ src/opendev. org/x/tobiko/ tools/run_ tests.py /home/zuul/ src/opendev. org/x/tobiko/ tobiko/ tests/sanity/ neutron
1) 2023.1 tobiko job using ubuntu-focal nodes
PASS - tox3.28 - python3.8
https:/
2023-09-13 02:32:25.704782 | TASK [tobiko-ensure-tox : show Tox facts]
2023-09-13 02:32:25.765288 | {'tox_executable': '/usr/bin/python3 -m tox', 'tox_version': '3.28.0 imported from /home/zuul/
...
2023-09-13 02:33:41.677560 | controller | neutron_sanity run-test: commands[0] | /home/zuul/
2) 2023.1 tobiko job using ubuntu-jammy nodes /storage. bhs.cloud. ovh.net/ v1/AUTH_ dcaab5e32b234d5 6b626f72581e364 4c/zuul_ opendev_ logs_583/ 894857/ 1/experimental/ devstack- tobiko- neutron/ 5838bf0/ job-output. txt lib/python3. 10/dist- packages/ tox/__init_ _.py'} zuul/src/ opendev. org/x/tobiko/ upper-constrain ts.txt, -r/home/ zuul/src/ opendev. org/x/tobiko/ requirements. txt, -r/home/ zuul/src/ opendev. org/x/tobiko/ test-requiremen ts.txt, -r/home/ zuul/src/ opendev. org/x/tobiko/ extra-requireme nts.txt] ; v = InvocationError ('could not find executable python', None)
FAIL - tox3.28 - python3.10
https:/
2023-09-13 16:46:17.132141 | TASK [tobiko-ensure-tox : show Tox facts]
2023-09-13 16:46:17.185958 | {'tox_executable': '/usr/bin/python3 -m tox', 'tox_version': '3.28.0 imported from /usr/local/
...
2023-09-13 16:46:20.555843 | controller | ERROR: neutron_sanity: could not install deps [-c/home/
3) master tobiko job using ubuntu-jammy nodes /83fd172b39bb4b d8571a- 4a42abeb7e7779e f25c6242290fc9b 63.ssl. cf2.rackcdn. com/periodic/ opendev. org/openstack/ neutron/ master/ devstack- tobiko- neutron/ f7ae7d8/ job-output. txt .local/ lib/python3. 10/site- packages/ tox/__init_ _.py'} src/opendev. org/x/tobiko/ .tox/py3/ bin/python /home/zuul/ src/opendev. org/x/tobiko/ tools/run_ tests.py /home/zuul/ src/opendev. org/x/tobiko/ tobiko/ tests/sanity/ neutron
PASS - tox3.28 - python3.10
https:/
2023-09-15 02:34:39.846829 | TASK [tobiko-ensure-tox : show Tox facts]
2023-09-15 02:34:39.954407 | {'tox_executable': '/usr/bin/python3 -m tox', 'tox_version': '3.28.0 imported from /home/zuul/
...
2023-09-15 02:35:29.405645 | controller | neutron_sanity run-test: commands[0] | /home/zuul/
Comparing 2 and 3, it looks to me like python packages (at least, tox) are installed in different paths and that may be related to the issue: lib/python3. 10/dist- packages/ tox/__init_ _.py' .local/ lib/python3. 10/site- packages/ tox/__init_ _.py'
'3.28.0 imported from /usr/local/
versus
'3.28.0 imported from /home/zuul/
The error raised [1] happens when tox tries to find the path to python: /github. com/tox- dev/tox/ blob/3. 28.0/src/ tox/venv. py#L676
https:/
Regarding the second issue [2], ubuntu jammy is not a supported version: /github. com/openstack/ devstack/ blob/stable/ wallaby/ stack.sh# L230 DISTROS= "bionic| focal|f31| f32|opensuse- 15.2|opensuse- tumbleweed| rhel8|rhel. ..
https:/
SUPPORTED_