Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin ansible-core to 2.14.11 #216

Closed
wants to merge 1 commit into from

Conversation

assumptionsandg
Copy link

Pin ansible-core to 2.14.11 to avoid AnsibleUnsafeText bug seen in 2.14.12.

Traceback as seen on AIO:

Traceback (most recent call last):
  File "/home/cloud-user/venvs/kayobe/lib64/python3.9/site-packages/ansible/executor/task_executor.py", line 158, in run
    res = self._execute()
  File "/home/cloud-user/venvs/kayobe/lib64/python3.9/site-packages/ansible/executor/task_executor.py", line 633, in _execute
    result = self._handler.run(task_vars=vars_copy)
  File "/home/cloud-user/venvs/kayobe/share/kayobe/ansible/roles/kolla-openstack/action_plugins/kolla_custom_config_info.py", line 242, in run
    collector.collect()
  File "/home/cloud-user/venvs/kayobe/share/kayobe/ansible/roles/kolla-openstack/action_plugins/kolla_custom_config_info.py", line 194, in collect
    self._collect_destination(item)
  File "/home/cloud-user/venvs/kayobe/share/kayobe/ansible/roles/kolla-openstack/action_plugins/kolla_custom_config_info.py", line 213, in _collect_destination
    files = glob.glob(abs_glob, flags=glob.GLOBSTAR)
  File "/home/cloud-user/venvs/kayobe/lib64/python3.9/site-packages/wcmatch/glob.py", line 876, in glob
    return list(iglob(patterns, flags=flags, root_dir=root_dir, dir_fd=dir_fd, limit=limit, exclude=exclude))
  File "/home/cloud-user/venvs/kayobe/lib64/python3.9/site-packages/wcmatch/glob.py", line 862, in iglob
    yield from Glob(patterns, flags, root_dir, dir_fd, limit, exclude).glob()
  File "/home/cloud-user/venvs/kayobe/lib64/python3.9/site-packages/wcmatch/glob.py", line 455, in __init__
    raise TypeError(
TypeError: Pattern and root_dir should be of the same type, not <class 'ansible.utils.unsafe_proxy.AnsibleUnsafeText'> and <class 'str'>
fatal: [localhost]: FAILED! => 
  msg: 'Unexpected failure during module execution: Pattern and root_dir should be of the same type, not <class ''ansible.utils.unsafe_proxy.AnsibleUnsafeText''> and <class ''str''>'
  stdout: ''

@assumptionsandg assumptionsandg requested a review from a team as a code owner December 8, 2023 11:17
@mnasiadka
Copy link
Member

Let's use #217

@assumptionsandg assumptionsandg deleted the fix/pin-ansible-core branch December 9, 2023 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants