Project

Profile

Help

Issue #5905

Updated by bmbouter about 5 years ago

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: 

 <pre> 
 (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) 
 </pre>

Back