TypeError: initial_value must be unicode or None, not str failing on mol-get_hash-centos-7

Bug #1946641 reported by Bhagyashri Shewale
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

Error logs:

2021-10-11 07:44:21.981581 | TASK [tox : Install any sibling python packages]
2021-10-11 07:44:22.886598 | rdo-centos-7 | MODULE FAILURE:
2021-10-11 07:44:22.886982 | rdo-centos-7 | Traceback (most recent call last):
2021-10-11 07:44:22.887066 | rdo-centos-7 | File "<stdin>", line 102, in <module>
2021-10-11 07:44:22.887134 | rdo-centos-7 | File "<stdin>", line 94, in _ansiballz_main
2021-10-11 07:44:22.887198 | rdo-centos-7 | File "<stdin>", line 40, in invoke_module
2021-10-11 07:44:22.887265 | rdo-centos-7 | File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
2021-10-11 07:44:22.887341 | rdo-centos-7 | fname, loader, pkg_name)
2021-10-11 07:44:22.887453 | rdo-centos-7 | File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
2021-10-11 07:44:22.887596 | rdo-centos-7 | mod_name, mod_fname, mod_loader, pkg_name)
2021-10-11 07:44:22.887667 | rdo-centos-7 | File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
2021-10-11 07:44:22.887730 | rdo-centos-7 | exec code in run_globals
2021-10-11 07:44:22.887793 | rdo-centos-7 | File "/tmp/ansible_tox_install_sibling_packages_payload_Y4x1ed/ansible_tox_install_sibling_packages_payload.zip/ansible/modules/tox_install_sibling_packages.py", line 399, in <module>
2021-10-11 07:44:22.887865 | rdo-centos-7 | File "/tmp/ansible_tox_install_sibling_packages_payload_Y4x1ed/ansible_tox_install_sibling_packages_payload.zip/ansible/modules/tox_install_sibling_packages.py", line 330, in main
2021-10-11 07:44:22.887944 | rdo-centos-7 | File "/usr/lib/python2.7/site-packages/backports/configparser/__init__.py", line 793, in read_string
2021-10-11 07:44:22.888010 | rdo-centos-7 | sfile = io.StringIO(string)
2021-10-11 07:44:22.888072 | rdo-centos-7 | TypeError: initial_value must be unicode or None, not str
2021-10-11 07:44:22.911536 |
2021-10-11 07:44:22.911717 | PLAY RECAP
2021-10-11 07:44:22.911844 | rdo-centos-7 | ok: 4 changed: 3 unreachable: 0 failed: 1 skipped: 3 rescued: 0 ignored: 0

[1]: https://logserver.rdoproject.org/56/36156/2/check/mol-get_hash-centos-7/27e6ccb/job-output.txt
[2]: https://review.rdoproject.org/zuul/builds?job_name=mol-get_hash-centos-7

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

https://bugs.launchpad.net/tripleo/+bug/1945682 - original bug we logged to upstream infra

Revision history for this message
Ronelle Landy (rlandy) wrote :

Notes from fungi:

fungi> arxcruz|ruck: the backtrace says line 330, looks like the AttributeError exception handler added in https://review.opendev.org/806621 is insufficient for centos-7, i wonder if rh "backported" read_string() to the 2.7 on centos-7
<fungi> my 2.7.18 doesn't have a ConfigParser.ConfigParser.read_string() method, fwiw
<fungi> so the call on that line _should_ be raising AttributeError
<fungi> File "/usr/lib/python2.7/site-packages/backports/configparser/__init__.py", line 793, in read_string
* __ministry (~Thunderbi@42.118.7.91) has joined
<fungi> the "backports" there makes me suspicious
<fungi> that function should not exist at all on 2.7
* __ministry has quit ()
<fungi> we can probably work around it by adding TypeError to the except on the next lin

Revision history for this message
Bhagyashri Shewale (bhagyashri-shewale) wrote :
Ronelle Landy (rlandy)
Changed in tripleo:
status: Triaged → Fix Released
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.