Galaxy: cannot synchronize to local hub:

We are running a local hub (AAP) and trying to synchronize some collections from 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/", line 458, in _perform_task
    result = func(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/", line 191, in sync
    repo_version = d_version.create()
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/", line 161, in create
  File "/usr/lib64/python3.9/asyncio/", line 647, in run_until_complete
    return future.result()
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/", line 220, in create_pipeline
    await asyncio.gather(*futures)
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/", line 41, in __call__
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/", line 1079, in run
    await asyncio.gather(*tasks)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/", line 873, in _fetch_collection_metadata
    await self._fetch_paginated_collection_metadata(
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/", line 816, in _fetch_paginated_collection_metadata
    await asyncio.gather(*tasks)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/", 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/", 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/", line 748, in _add_namespace
    namespace = AnsibleNamespaceMetadata(**namespace)
  File "/usr/lib/python3.9/site-packages/django_lifecycle/", line 61, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/django/db/models/", line 503, in __init__
    raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg))

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


1 Like

This is a known issue in pulp_ansible that we fixed in september.

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


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:


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.