ERROR! Unexpected Exception, this is probably a bug: 'manifest'
ISSUE TYPE
Bug Report
# ansible-galaxy collection install git+https://gitlab.fqdn/aiac-haut-de-reseau/ansible_collections.git -vvvvv
ansible-galaxy [core 2.14.1]
config file = /data/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/data/ansible/.ansible/collections
executable location = /usr/local/bin/ansible-galaxy
python version = 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
Using /data/ansible/ansible.cfg as config file
Cloning into '/root/.ansible/tmp/ansible-local-817hwvpgih/tmpnjxf6bfl/ansible_collections7lqdk1fj'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 23 (delta 0), reused 20 (delta 0), pack-reused 0
Receiving objects: 100% (23/23), 5.92 KiB | 5.92 MiB/s, done.
Your branch is up to date with 'origin/main'.
Starting galaxy collection install process
Found installed collection junipernetworks.junos:3.1.0 at '/root/.ansible/collections/ansible_collections/junipernetworks/junos'
Found installed collection fortinet.fortios:2.1.6 at '/root/.ansible/collections/ansible_collections/fortinet/fortios'
Found installed collection community.hashi_vault:4.0.0 at '/root/.ansible/collections/ansible_collections/community/hashi_vault'
Found installed collection cisco.nxos:4.0.1 at '/root/.ansible/collections/ansible_collections/cisco/nxos'
Found installed collection cisco.iosxr:4.0.3 at '/root/.ansible/collections/ansible_collections/cisco/iosxr'
Found installed collection cisco.ios:4.2.0 at '/root/.ansible/collections/ansible_collections/cisco/ios'
Found installed collection f_pmor.assertions:1.0.3 at '/root/.ansible/collections/ansible_collections/f_pmor/assertions'
Process install dependency map
Starting collection install process
'"virtual collection Git repo"' is virtual, skipping.
Installing 'f_pmor.assertions:1.0.3' to '/root/.ansible/collections/ansible_collections/f_pmor/assertions'
ERROR! Unexpected Exception, this is probably a bug: 'manifest'
the full traceback was:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/ansible/cli/__init__.py", line 647, in cli_executor
exit_code = cli.run()
File "/usr/local/lib/python3.10/dist-packages/ansible/cli/galaxy.py", line 711, in run
return context.CLIARGS['func']()
File "/usr/local/lib/python3.10/dist-packages/ansible/cli/galaxy.py", line 118, in method_wrapper
return wrapped_method(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/ansible/cli/galaxy.py", line 1360, in execute_install
self._execute_install_collection(
File "/usr/local/lib/python3.10/dist-packages/ansible/cli/galaxy.py", line 1397, in _execute_install_collection
install_collections(
File "/usr/local/lib/python3.10/dist-packages/ansible/galaxy/collection/__init__.py", line 771, in install_collections
install(concrete_coll_pin, output_path, artifacts_manager)
File "/usr/local/lib/python3.10/dist-packages/ansible/galaxy/collection/__init__.py", line 1446, in install
install_src(collection, b_artifact_path, b_collection_path, artifacts_manager)
File "/usr/local/lib/python3.10/dist-packages/ansible/galaxy/collection/__init__.py", line 1578, in install_src
collection_meta['manifest'],
KeyError: 'manifest'
This collection is well installed when I do it with tar.gz file locally, with this command :
ansible-galaxy collection install collections/f_pmor-assertions-1.0.2.tar.gz
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Installing 'f_pmor.assertions:1.0.2' to '/root/.ansible/collections/ansible_collections/f_pmor/assertions'
f_pmor.assertions:1.0.2 was installed successfully
SUMMARY
For info : the URL of the gitlab web site has been changed to gitlab.fqdn.
While trying to install a personnal collection that is in a gitlab project, I 've an issue.
ERROR! Unexpected Exception, this is probably a bug: 'manifest'
ISSUE TYPE
This collection is well installed when I do it with tar.gz file locally, with this command :
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
I'm in a docker container under ubuntu 22.04.
STEPS TO REPRODUCE
EXPECTED RESULTS
Installation success like with the tar.gz file.
ACTUAL RESULTS
the Result is in the BUG sections below.