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…
Thanks!
Christian