config_template is not fully python3 compatible
Bug #1763422 reported by
Jonathan Rosser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Medium
|
Andy McCrae |
Bug Description
stable/queens will fail at /etc/ansible/
pip_global_
Line 219 includes reference to class "unicode" which is not defined in python3 but does work in python2. All py3 strings are unicode by default.
The sledgehammer approach to make a deploy work is to disable detection of python3 in bootstrap-
Changed in openstack-ansible: | |
assignee: | nobody → Andy McCrae (andrew-mccrae) |
importance: | Undecided → Medium |
Changed in openstack-ansible: | |
status: | New → In Progress |
To post a comment you must log in.
-vvv output:
The full traceback is: runtime/ lib/python3. 5/site- packages/ ansible/ executor/ task_executor. py", line 130, in run runtime/ lib/python3. 5/site- packages/ ansible/ executor/ task_executor. py", line 528, in _execute run(task_ vars=variables) roles/plugins/ action/ config_ template. py", line 613, in run none_type= _vars.get( 'ignore_ none_type' , True) roles/plugins/ action/ config_ template. py", line 310, in return_ config_ overrides_ ini readfp( config_ object) python3. 5/configparser. py", line 760, in readfp read_file( fp, source=filename) python3. 5/configparser. py", line 715, in read_file roles/plugins/ action/ config_ template. py", line 219, in _read cursect[ optname] , (str, unicode)):
Traceback (most recent call last):
File "/opt/ansible-
res = self._execute()
File "/opt/ansible-
result = self._handler.
File "/etc/ansible/
ignore_
File "/etc/ansible/
config.
File "/usr/lib/
self.
File "/usr/lib/
self._read(f, source)
File "/etc/ansible/
elif isinstance(
NameError: name 'unicode' is not defined