"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]
[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']
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] /trunk. rdoproject. org] *** /storage. bhs.cloud. ovh.net/ v1/AUTH_ dcaab5e32b234d5 6b626f72581e364 4c/zuul_ opendev_ logs_e4a/ 809687/ 3/check/ tripleo- ci-centos- 7-content- provider/ e4a2e4e/ job-output. txt /trunk. rdoproject. org] *** /trunk. rdoproject. org] *** 2665cd6cc958e54 f5a7ebec39_ 5447c0c9' ]
* 2021-09-22 11:43:29.960743 | primary | TASK [repo-setup : tripleo-get-hash current-tripleo for train on centos7 from https:/
* https:/
* 2021-09-22 11:43:29.960743 | primary | TASK [repo-setup : tripleo-get-hash current-tripleo for train on centos7 from https:/
* 2021-09-22 11:43:32.405325 | primary | TASK [repo-setup : tripleo-get-hash current for train on centos7 from https:/
* 2021-09-22 11:43:33.846358 | primary | ['the tq release is: train', 'the distro is: centos7', 'dlrn_hash is: c17c316f23f4589
[5] /trunk. rdoproject. org] *** /trunk. rdoproject. org] *** 2665cd6cc958e54 f5a7ebec39_ 5447c0c9' ]
* 2021-09-22 13:14:40.508154 | primary | TASK [repo-setup : tripleo-get-hash current-tripleo for train on centos7 from https:/
* 2021-09-22 13:14:43.754305 | primary | TASK [repo-setup : tripleo-get-hash current for train on centos7 from https:/
* 2021-09-22 13:14:45.160935 | primary | ['the tq release is: train', 'the distro is: centos7', 'dlrn_hash is: c17c316f23f4589
[0] https:/ /opendev. org/openstack/ tripleo- quickstart/ src/commit/ 156bbec5cf1aeee db08439621faff3 f6da9eb2de/ 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- 1af73fc66b50695 ae80c32ab29f083 8724126958
[4] https:/ /storage. bhs.cloud. ovh.net/ v1/AUTH_ dcaab5e32b234d5 6b626f72581e364 4c/zuul_ opendev_ logs_e4a/ 809687/ 3/check/ tripleo- ci-centos- 7-content- provider/ e4a2e4e/ job-output. txt
[5] https:/ /a4a2534e9b63b7 85667d- c90ace1b1592b04 a13c7070fc984a3 af.ssl. cf2.rackcdn. com/809687/ 3/check/ tripleo- ci-centos- 7-containers- multinode/ 3c33cf2/ job-output. txt