Issue #5905
closedansible-galaxy collection publish fails
Description
In a correctly configured pulp_ansible environment I try to upload a collection via ansible-galaxy (also correctly configured) and it fails.
1. Make a repository, e.g. http POST :80/pulp/api/v3/repositories/ansible/ansible/ name=foo
2. Make a distribution for that repository, e.g. http POST :80/pulp/api/v3/distributions/ansible/ansible/ name='baz' base_path='foo' repository=/pulp/api/v3/repositories/ansible/ansible/53025e9e-9f30-4086-8214-8811028a396f/
3. Try to upload:
(pulp) [vagrant@pulp3-source-fedora31 ~]$ ansible-galaxy collection publish bmbouter-testing-1.0.0.tar.gz -vvvv
ansible-galaxy 2.9.2
config file = /home/vagrant/.ansible.cfg
configured module search path = ['/home/vagrant/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/pulp/lib64/python3.7/site-packages/ansible
executable location = /usr/local/lib/pulp/bin/ansible-galaxy
python version = 3.7.4 (default, Aug 12 2019, 14:45:07) [GCC 9.1.1 20190605 (Red Hat 9.1.1-2)]
Using /home/vagrant/.ansible.cfg as config file
Initial connection to galaxy_server: http://localhost:24817/pulp_ansible/galaxy/foo
Opened /home/vagrant/.ansible/galaxy_token
Calling Galaxy at http://localhost:24817/pulp_ansible/galaxy/foo
Opened /home/vagrant/.ansible/galaxy_token
Calling Galaxy at http://localhost:24817/pulp_ansible/galaxy/foo/api
Found API version 'v1, v2' with Galaxy server default (http://localhost:24817/pulp_ansible/galaxy/foo/api)
Publishing collection artifact '/home/vagrant/bmbouter-testing-1.0.0.tar.gz' to default http://localhost:24817/pulp_ansible/galaxy/foo/api
Opened /home/vagrant/.ansible/galaxy_token
Calling Galaxy at http://localhost:24817/pulp_ansible/galaxy/foo/api/v2/collections/
ERROR! Error when publishing collection to default (http://localhost:24817/pulp_ansible/galaxy/foo/api) (HTTP Code: 400, Message: Bad Request Code: Unknown)
Updated by bmbouter about 5 years ago
- Subject changed from ansible-galaxy collection publish is fails to ansible-galaxy collection publish fails
Updated by bmbouter almost 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bmbouter
- Sprint set to Sprint 65
Fixing as part of adding a test which is already on the sprint.
Updated by bmbouter almost 5 years ago
- Status changed from ASSIGNED to POST
PR available at: https://github.com/pulp/pulp_ansible/pull/276/
Added by bmbouter almost 5 years ago
Updated by bmbouter almost 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp_ansible|4cc4aac8240e0267bc8859835f8baffc04b61596.
Updated by shanemcd over 4 years ago
Greetings. I am using the following versions of pulpcore and pulp-ansible, but am still seeing this issue:
[galaxy@62e71ce0f767 /]$ pip list install | grep pulp
pulp-ansible 0.2.0b11
pulpcore 3.2.1
Updated by bmbouter over 4 years ago
- Status changed from MODIFIED to NEW
I'm bringing back to NEW to reopen the issue for confirmation the bug is fixed or present on master.
Updated by rchan over 4 years ago
Sounds like this issue can be closed? It's been open for a long time and no further reports of it being a problem or needing to be addressed.
Updated by bmbouter over 4 years ago
- Assignee deleted (
bmbouter)
Unassigning from myself since I am not actively working on this.
Updated by bmbouter over 3 years ago
I tried to reproduce this locally, but I could not.
Updated by gerrod over 3 years ago
- Status changed from NEW to CLOSED - WORKSFORME
I could not reproduce this locally.
Fix collection upload and add a test for it
https://pulp.plan.io/issues/5905 closes #5905
https://pulp.plan.io/issues/5931 closes #5931