openstack-tox-py27 job against stable/train is failing.

Bug #2006479 reported by Sandeep Yadav
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

Description:

openstack-tox-py27 job against stable/train is failing.

https://1d1457b39f8a0a1eb8f7-f6a340cbf02833d06cf13bf014ff46d4.ssl.cf5.rackcdn.com/872674/2/check/openstack-tox-py27/e9ae4c8/job-output.txt
~~~
2023-02-07 12:19:33.574071 | TASK [tox : Run tox without tests]
2023-02-07 12:19:34.235600 | ubuntu-bionic | using tox.ini: /home/zuul/src/opendev.org/openstack/tripleo-heat-templates/tox.ini (pid 1592)
2023-02-07 12:19:34.268638 | ubuntu-bionic | using tox-3.28.0 from /home/zuul/.local/tox/lib/python3.6/site-packages/tox/__init__.py (pid 1592)
2023-02-07 12:19:34.268803 | ubuntu-bionic | skipping sdist step
2023-02-07 12:19:34.270489 | ubuntu-bionic | py27 uses None
2023-02-07 12:19:34.270693 | ubuntu-bionic | py27 start: getenv /home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/py27
2023-02-07 12:19:34.270922 | ubuntu-bionic | py27 cannot reuse: no previous config /home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/py27/.tox-config1
2023-02-07 12:19:34.270967 | ubuntu-bionic | py27 create: /home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/py27
2023-02-07 12:19:34.271057 | ubuntu-bionic | ERROR: InterpreterNotFound: python2.7
2023-02-07 12:19:34.271141 | ubuntu-bionic | py27 finish: getenv /home/zuul/src/opendev.org/openstack/tripleo-heat-templates/.tox/py27 after 0.00 seconds
2023-02-07 12:19:34.271317 | ubuntu-bionic | ___________________________________ summary ____________________________________
2023-02-07 12:19:34.271364 | ubuntu-bionic | ERROR: py27: InterpreterNotFound: python2.7
~~~

Same error seen in other project jobs:

neutron job: https://zuul.opendev.org/t/openstack/build/d8c4d86fc50844d69ea1f98130528dd1
glance: https://zuul.opendev.org/t/openstack/build/fd75938d826a491b9861630f91eb64b4

Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :

Hello,

Discussed with infra(#opendev)

Issue started after: https://review.opendev.org/c/openstack/project-config/+/872476/2

we stopped installing python-dev nd python-xml, either of which would have pulled in python2.7

~~~
<clarkb> I think we have ~3 options: A) revert/or readd python2-dev installs B) ask projects to fix their broken bindep.txts (something we've asked for for years at this point) or C) update -py27 jobs to explicitly install python2 for you
~~~

You can track the discussion here: https://meetings.opendev.org/irclogs/%23opendev/%23opendev.2023-02-07.log.html

Revision history for this message
Dariusz Smigiel (smigiel-dariusz) wrote :
Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :

Reply on discuss list:

Jeremy Stanley

We also merged https://review.opendev.org/873020 about twenty
minutes ago, so as of 22:12:13 any jobs inheriting from
openstack-tox-py27 will automatically install the python and
python-dev (old Python 2.7) packages.

But definitely still put Python interpreters in your bindep.txt
files, they're useful if for no other reason than to indicate to
anyone looking at the file that your project needs those.

Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :

We have a new issue after https://review.opendev.org/873020 merged:

https://c3f93530c9211d80493c-aff6bc2b39e4d26360d25c473974606e.ssl.cf5.rackcdn.com/872983/5/gate/openstack-tox-py27/e8389a8/job-output.txt

~~~
2023-02-08 03:36:41.057607 | PRE-RUN START: [untrusted : opendev.org/openstack/openstack-zuul-jobs/playbooks/tox/py27.yaml@master]
2023-02-08 03:36:42.121468 | ANSIBLE PARSE ERROR
2023-02-08 03:36:42.121500 | Using /var/lib/zuul/builds/e8389a873fb545e68679e27a1276860d/ansible/pre_playbook_3/ansible.cfg as config file
2023-02-08 03:36:42.121525 | [DEPRECATION WARNING]: COMMAND_WARNINGS option, the command warnings feature is
2023-02-08 03:36:42.121546 | being removed. This feature will be removed from ansible-core in version 2.14.
2023-02-08 03:36:42.121562 | Deprecation warnings can be disabled by setting deprecation_warnings=False in
2023-02-08 03:36:42.121575 | ansible.cfg.
2023-02-08 03:36:42.121587 | ERROR! unexpected parameter type in action: <class 'ansible.parsing.yaml.objects.AnsibleSequence'>
2023-02-08 03:36:42.121599 |
2023-02-08 03:36:42.121611 | The error appears to be in '/var/lib/zuul/builds/e8389a873fb545e68679e27a1276860d/untrusted/project_2/opendev.org/openstack/openstack-zuul-jobs/playbooks/tox/py27.yaml': line 13, column 7, but may
2023-02-08 03:36:42.121624 | be elsewhere in the file depending on the exact syntax problem.
2023-02-08 03:36:42.121637 |
2023-02-08 03:36:42.121649 | The offending line appears to be:
2023-02-08 03:36:42.121661 |
2023-02-08 03:36:42.121672 | tasks:
2023-02-08 03:36:42.121684 | - name: Install Python 2.7
2023-02-08 03:36:42.121697 | ^ here
~~~

Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :
Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :

This issue got fixed after infra included the installation of py27 in pre-steps [1] and fix [2]. But it's good to mention it in bindep.txt[3] as well.

[1] https://review.opendev.org/873020
[2] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/873056.
[3] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/872983

Changed in tripleo:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates train-eol

This issue was fixed in the openstack/tripleo-heat-templates train-eol 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.