Unable to install collection from new Galaxy

I’ve noticed issues with installing collections from Galaxy. When I try from the CLI ansible-galaxy collection install cisco.ios I get the error below:

Starting galaxy collection install process
Process install dependency map
[WARNING]: Skipping Galaxy server https://galaxy.ansible.com/api/. Got an unexpected error when getting available versions of collection cisco.ios:
'/api/v3/plugin/ansible/content/published/collections/index/cisco/ios/versions/'
ERROR! Unexpected Exception, this is probably a bug: '/api/v3/plugin/ansible/content/published/collections/index/cisco/ios/versions/'
to see the full traceback, use -vvv

Output of ansible --version is below

ansible [core 2.13.0]
  config file = None
  configured module search path = ['/Users/D069683/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/lib/python3.11/site-packages/ansible
  ansible collection location = /Users/D069683/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/bin/ansible
  python version = 3.11.5 (main, Aug 24 2023, 15:09:45) [Clang 14.0.3 (clang-1403.0.22.14.1)]
  jinja version = 3.1.2
  libyaml = True
1 Like

Hey, can you upgrade to ansible-core 2.13.9 and newer and check it again?

That works. Is this a bug in ansible-core 2.13.0 or is it result of a migration to galaxy-ng?

Both I would say. 2.13 had a bug with galaxy-ng, it was fixed in 2.13.3, but then there was bug with downloading all versions, so download of collection takes forever (fixed in 2.13.9). So 2.13.9 and newer should work well.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.