Project

Profile

Help

Issue #5905

ansible-galaxy collection publish fails

Added by bmbouter 10 months ago. Updated 11 days ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 65
Quarter:

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)

Associated revisions

History

#1 Updated by bmbouter 10 months ago

  • Description updated (diff)

#2 Updated by bmbouter 9 months ago

  • Subject changed from ansible-galaxy collection publish is fails to ansible-galaxy collection publish fails

#3 Updated by bmbouter 8 months 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.

#4 Updated by bmbouter 8 months ago

  • Status changed from ASSIGNED to POST

#5 Updated by bmbouter 8 months ago

  • Status changed from POST to MODIFIED

#6 Updated by shanemcd 5 months 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

#7 Updated by bmbouter 5 months 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.

#8 Updated by rchan 25 days 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.

#9 Updated by bmbouter 11 days ago

  • Assignee deleted (bmbouter)

Unassigning from myself since I am not actively working on this.

Please register to edit this issue

Also available in: Atom PDF