Problem:
Here we go. I followed the docs Foreman :: Plugin documentation index but the first command already stopped me continuing.
:~/repos$ ansible-galaxy collection install theforeman.foreman -vvv
ansible-galaxy [core 2.12.4]
config file = None
configured module search path = ['.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = .ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible-galaxy
python version = 3.10.7 (main, May 29 2023, 13:51:48) [GCC 12.2.0]
jinja version = 3.0.3
libyaml = True
No config file found; using defaults
Starting galaxy collection install process
Process install dependency map
ERROR! Unexpected Exception, this is probably a bug: CollectionDependencyProvider.find_matches() got an unexpected keyword argument 'identifier'
the full traceback was:
Traceback (most recent call last):
File "/usr/bin/ansible-galaxy", line 128, in <module>
exit_code = cli.run()
File "/usr/lib/python3/dist-packages/ansible/cli/galaxy.py", line 569, in run
return context.CLIARGS['func']()
File "/usr/lib/python3/dist-packages/ansible/cli/galaxy.py", line 86, in method_wrapper
return wrapped_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/ansible/cli/galaxy.py", line 1203, in execute_install
self._execute_install_collection(
File "/usr/lib/python3/dist-packages/ansible/cli/galaxy.py", line 1230, in _execute_install_collection
install_collections(
File "/usr/lib/python3/dist-packages/ansible/galaxy/collection/__init__.py", line 548, in install_collections
dependency_map = _resolve_depenency_map(
File "/usr/lib/python3/dist-packages/ansible/galaxy/collection/__init__.py", line 1364, in _resolve_depenency_map
return collection_dep_resolver.resolve(
File "/usr/lib/python3/dist-packages/resolvelib/resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/usr/lib/python3/dist-packages/resolvelib/resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/usr/lib/python3/dist-packages/resolvelib/resolvers.py", line 147, in _add_to_criteria
matches = self._p.find_matches(
TypeError: CollectionDependencyProvider.find_matches() got an unexpected keyword argument 'identifier'
:~/repos$ ansible-galaxy collection install git+https://github.com/theforeman/foreman-ansible-modules.git
Cloning into '.ansible/tmp/ansible-local-32301lms0unno/tmp7f7qy27k/foreman-ansible-modulescvsfyj8d'...
remote: Enumerating objects: 1470, done.
remote: Counting objects: 100% (1470/1470), done.
remote: Compressing objects: 100% (725/725), done.
remote: Total 1470 (delta 1070), reused 888 (delta 703), pack-reused 0
Receiving objects: 100% (1470/1470), 2.55 MiB | 7.76 MiB/s, done.
Resolving deltas: 100% (1070/1070), done.
Your branch is up to date with 'origin/develop'.
Starting galaxy collection install process
Process install dependency map
ERROR! Unexpected Exception, this is probably a bug: CollectionDependencyProvider.find_matches() got an unexpected keyword argument 'identifier'
Expected outcome:
Installing without error messages
Foreman and Proxy versions:
does not matter here
Foreman and Proxy plugin versions:
does not matter here
Distribution and version:
Ubuntu 22.10