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

Recent kubernetes.core changes breaks inventory synchronization #99

Closed
matburt opened this issue May 28, 2024 · 0 comments · Fixed by #100
Closed

Recent kubernetes.core changes breaks inventory synchronization #99

matburt opened this issue May 28, 2024 · 0 comments · Fixed by #100

Comments

@matburt
Copy link

matburt commented May 28, 2024

SUMMARY

Change in kubernetes.core breaks inventory synchronization (possibly among other thing)

It looks like this change: ansible-collections/kubernetes.core#726

causes some breakage:

[WARNING]:  * Failed to parse /runner/project/kubevirt.yml with auto plugin:
cannot import name 'HAS_K8S_MODULE_HELPER' from
'ansible_collections.kubernetes.core.plugins.module_utils.common' (/runner/requ
irements_collections/ansible_collections/kubernetes/core/plugins/module_utils/c
ommon.py)
  File "/usr/local/lib/python3.9/site-packages/ansible/inventory/manager.py", line 293, in parse_source
    plugin.parse(self._inventory, self._loader, source, cache=cache)
  File "/usr/local/lib/python3.9/site-packages/ansible/plugins/inventory/auto.py", line 50, in parse
    plugin = inventory_loader.get(plugin_name)
  File "/usr/local/lib/python3.9/site-packages/ansible/plugins/loader.py", line 860, in get
    return self.get_with_context(name, *args, **kwargs).object
  File "/usr/local/lib/python3.9/site-packages/ansible/plugins/loader.py", line 894, in get_with_context
    self._module_cache[path] = self._load_module_source(name, path)
  File "/usr/local/lib/python3.9/site-packages/ansible/plugins/loader.py", line 833, in _load_module_source
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/runner/requirements_collections/ansible_collections/kubevirt/core/plugins/inventory/kubevirt.py", line 194, in <module>
    from ansible_collections.kubernetes.core.plugins.module_utils.common import (
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 a pull request may close this issue.

1 participant