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-runner to <2.2 #1405

Merged
merged 1 commit into from
May 12, 2022
Merged

pin ansible-runner to <2.2 #1405

merged 1 commit into from
May 12, 2022

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented May 12, 2022

2.2+ breaks our callback tests:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.12/x64/bin/ansible-playbook", line 123, in <module>
    exit_code = cli.run()
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/ansible/cli/playbook.py", line 128, in run
    results = pbex.run()
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/ansible/executor/playbook_executor.py", line 99, in run
    self._tqm.load_callbacks()
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/ansible/executor/task_queue_manager.py", line 137, in load_callbacks
    self._stdout_callback.set_options()
  File "/home/runner/work/foreman-ansible-modules/foreman-ansible-modules/build/collections/ansible_collections/theforeman/foreman/plugins/callback/foreman.py", line 191, in set_options
    if self.get_option('disable_callback'):
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/ansible/plugins/callback/__init__.py", line 91, in get_option
    return self._plugin_options[k]
KeyError: 'disable_callback'

See: ansible/ansible-runner#1077

2.2+ breaks our callback tests:

    Traceback (most recent call last):
      File "/opt/hostedtoolcache/Python/3.8.12/x64/bin/ansible-playbook", line 123, in <module>
        exit_code = cli.run()
      File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/ansible/cli/playbook.py", line 128, in run
        results = pbex.run()
      File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/ansible/executor/playbook_executor.py", line 99, in run
        self._tqm.load_callbacks()
      File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/ansible/executor/task_queue_manager.py", line 137, in load_callbacks
        self._stdout_callback.set_options()
      File "/home/runner/work/foreman-ansible-modules/foreman-ansible-modules/build/collections/ansible_collections/theforeman/foreman/plugins/callback/foreman.py", line 191, in set_options
        if self.get_option('disable_callback'):
      File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/ansible/plugins/callback/__init__.py", line 91, in get_option
        return self._plugin_options[k]
    KeyError: 'disable_callback'

See: https://github.com/ansible/ansible-runner/issues/1074
@evgeni evgeni merged commit 2bdd386 into theforeman:develop May 12, 2022
@evgeni evgeni deleted the bin-runner branch May 12, 2022 10:47
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