[QA] openstack-tox-py27 failures PSA

Sandeep Yadav sandeepggn93 at gmail.com
Wed Feb 8 06:59:13 UTC 2023


This issue got fixed after infra included the installation of py27 in
pre-steps [1] and the fix in the pre-playbook merged [2].


As suggested, We have also proposed a patch in our tripleo repo[3]
mentioning python2 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

On Wed, Feb 8, 2023 at 11:32 AM Sandeep Yadav <sandeepggn93 at gmail.com>
wrote:

> Hello Jeremy,
>
> We have a new issue[1] after https://review.opendev.org/873020 merged. I
> have proposed a possible fix:
> https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/873056
>
>
> [1]
> https://c3f93530c9211d80493c-aff6bc2b39e4d26360d25c473974606e.ssl.cf5.rackcdn.com/872983/5/gate/openstack-tox-py27/e8389a8/job-output.txt
>
> ~~~
>
> 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
>
> ~~~
>
>
> On Wed, Feb 8, 2023 at 4:11 AM Jeremy Stanley <fungi at yuggoth.org> wrote:
>
>> On 2023-02-07 09:21:56 -0800 (-0800), Dariusz Smigiel wrote:
>> > Recent change [1] to remove python27 from images caused issues across
>> > jobs still using python 2.7 There are a lot of projects failing due to
>> > that. [2] The solution is to update bindep.txt [3]
>> > The fix was discussed with the #opendev team and can be summarized as
>> > follows. [4]
>> >
>> > ```
>> > 15:37 <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
>> > ```
>> [...]
>>
>> 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.
>> --
>> Jeremy Stanley
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230208/127e7967/attachment.htm>


More information about the openstack-discuss mailing list