Issue #5155
closedAnsible Collection Is Installed With Wrong Version
Description
OS / ENVIRONMENT
- Fedora release 30 (Thirty)
- Ansible == 2.8.1
- pulpcore == 3.0.0rc3
- pulpcore-plugin == 0.1.0rc3
- pulp_ansible == 0.2.0b1
STEPS TO REPRODUCE
- Deploy pulp_ansible
- Create a Repo, Sync/Upload Ansible collection
- Publish the uploaded Collection
- In my case I have uploaded three different collection each with different version as you can see below:
testing.ansible_testing_content,4.0.6
ompragash.collections,1.0.12
greetings_namespace.hello,11.11.11
- Also uploaded collection_list.txt which has the API output of `/pulp/api/v3/content/ansible/collections/` endpoint.
- Install mazer and configure ~/.ansible/mazer.yml file
server:
ignore_certs: false
url: http://localhost:24817/pulp_ansible/galaxy/galaxy_base
- Now run `mazer install NAMESPACE_name.COLLECTION_name` to install uploaded collections from pulp_ansible
EXPECTED RESULTS
- Collection should be installed and if no version is specified `mazer` should install the latest available version and if version is specified it should install the required version.
ACTUAL RESULTS
- Collection is installed with the wrong version i.e. with the version of another collection
- As you can see I have three collections and when I try to install `ompragash.collections` or `greetings_namespace.hello` it is always installed with version 4.0.6.
Observations:
- Trying to install an collection with the specific version but got the below error:
~~~
[root@X.X.X.X ~]# mazer install ompragash.collections,1.0.12
Collection specs to install:
ompragash.collections,==1.0.12
Installing spec: ompragash.collections,==1.0.12
Unable to find a collection that matches the spec: ompragash.collections,==1.0.12:
- you can use --ignore-errors to skip failed collections and finish processing the list.
~~~
- When I only call the collection name like below:
~~~
[root@X.X.X.X ~]# mazer install ompragash.collections
Collection specs to install:
ompragash.collections,*
Installing spec: ompragash.collections,*
Found: ompragash.collections,4.0.6 (for spec ompragash.collections,*)
Installed: ompragash.collections,4.0.6 (to /root/.ansible/collections/ansible_collections/ompragash/collections)
~~~
here^ if you see `ompragash.collections` is installed with version 4.0.6 which is the version of another collection (i.e. testing.ansible_testing_content)
Files