Galaxy: cannot synchronize to local hub:

We are running a local hub (AAP) and trying to synchronize some collections from galaxy.ansible.com. After the new galaxy has been launched, we changed the configuration of the remote repository (access token is working, has been verified with ansible-galaxy command).

When trying to synchronize the repository, the task in the AAP hub terminates with:

AnsibleNamespaceMetadata() got an unexpected keyword argument 'users'

Traceback shown:

  File "/usr/lib/python3.9/site-packages/pulpcore/tasking/pulpcore_worker.py", line 458, in _perform_task
    result = func(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 191, in sync
    repo_version = d_version.create()
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/declarative_version.py", line 161, in create
    loop.run_until_complete(pipeline)
  File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py", line 220, in create_pipeline
    await asyncio.gather(*futures)
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py", line 41, in __call__
    await self.run()
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 1079, in run
    await asyncio.gather(*tasks)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 873, in _fetch_collection_metadata
    await self._fetch_paginated_collection_metadata(
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 816, in _fetch_paginated_collection_metadata
    await asyncio.gather(*tasks)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 605, in _fetch_collection_version_metadata
    await self._add_collection_version(api_version, collection_version_url, metadata)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 695, in _add_collection_version
    if await self._add_namespace(namespace, namespace_sha):
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 748, in _add_namespace
    namespace = AnsibleNamespaceMetadata(**namespace)
  File "/usr/lib/python3.9/site-packages/django_lifecycle/mixins.py", line 61, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/django/db/models/base.py", line 503, in __init__
    raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg))

Not sure if this is an issue with galaxy.ansible.com but pretty sure that also AAP people are reading here… :slight_smile:

Thanks!
Christian

1 Like

This is a known issue in pulp_ansible that we fixed in september. https://github.com/pulp/pulp_ansible/pull/1594

Please update your pulp_ansible package and the error will go away.

3 Likes

dammit… where did you find this? I’ve searched the Red Hat KB, the forum here and even globally on google :slight_smile:

anyway… the latest updates for the AAP hub contains the fix.

Thanks a lot!

I wrote the patches, so it’s all indexed in my brain :upside_down_face:

3 Likes

At least the next person searching here will find it, the search indexing in Discourse is pretty good :smiley:. Thanks for reporting it!

1 Like

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