Comment 6 for bug 1943968

Revision history for this message
Marios Andreou (marios-b) wrote :

confirmed the issue described in comment #4.

The root of the bug is there [0] where we set:

 interpreter_python = auto

From the ansible docs [1]:

"Detects the target OS platform, distribution, and version, then consults a table listing the correct Python interpreter and path for each platform/distribution/version"

Since the jobs are on centos7 it decides that python2 is the right python for the ansible execution. However we are using python3 in those jobs.

With the patch at [2] I explicitly set the interpreter for get-hash to be python3. Test results at [3] are good. Centos7 at [4] and [5]

        [4]
        * 2021-09-22 11:43:29.960743 | primary | TASK [repo-setup : tripleo-get-hash current-tripleo for train on centos7 from https://trunk.rdoproject.org] ***
        * https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_e4a/809687/3/check/tripleo-ci-centos-7-content-provider/e4a2e4e/job-output.txt
        * 2021-09-22 11:43:29.960743 | primary | TASK [repo-setup : tripleo-get-hash current-tripleo for train on centos7 from https://trunk.rdoproject.org] ***
        * 2021-09-22 11:43:32.405325 | primary | TASK [repo-setup : tripleo-get-hash current for train on centos7 from https://trunk.rdoproject.org] ***
        * 2021-09-22 11:43:33.846358 | primary | ['the tq release is: train', 'the distro is: centos7', 'dlrn_hash is: c17c316f23f45892665cd6cc958e54f5a7ebec39_5447c0c9']

       [5]
        * 2021-09-22 13:14:40.508154 | primary | TASK [repo-setup : tripleo-get-hash current-tripleo for train on centos7 from https://trunk.rdoproject.org] ***
        * 2021-09-22 13:14:43.754305 | primary | TASK [repo-setup : tripleo-get-hash current for train on centos7 from https://trunk.rdoproject.org] ***
        * 2021-09-22 13:14:45.160935 | primary | ['the tq release is: train', 'the distro is: centos7', 'dlrn_hash is: c17c316f23f45892665cd6cc958e54f5a7ebec39_5447c0c9']

[0] https://opendev.org/openstack/tripleo-quickstart/src/commit/156bbec5cf1aeeedb08439621faff3f6da9eb2de/ansible.cfg#L13

[1] https://docs.ansible.com/ansible/latest/reference_appendices/interpreter_discovery.html

[2] https://review.opendev.org/c/openstack/tripleo-quickstart/+/810410

[3] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/809687/3#message-1af73fc66b50695ae80c32ab29f0838724126958

[4] https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_e4a/809687/3/check/tripleo-ci-centos-7-content-provider/e4a2e4e/job-output.txt

[5] https://a4a2534e9b63b785667d-c90ace1b1592b04a13c7070fc984a3af.ssl.cf2.rackcdn.com/809687/3/check/tripleo-ci-centos-7-containers-multinode/3c33cf2/job-output.txt