Project

Profile

Help

Issue #5155

closed

Ansible Collection Is Installed With Wrong Version

Added by ompragash over 4 years ago. Updated over 4 years ago.

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

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:

~~~
[ ~]# 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:

~~~
[ ~]# 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

collection_list.txt (3.06 KB) collection_list.txt ompragash, 07/18/2019 07:08 PM

Also available in: Atom PDF