Project

Profile

Help

Test #5264

Test - Pulp3 Ansible Collection remote doesn't seem to be able to sync more than 1 repo

Added by kersom 2 months ago. Updated 2 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Platform Release:
Tags:
Sprint:

Description

*Steps to Reproduce:*++
Steps based on httpie and jq from documentation: https://pulp-ansible.readthedocs.io/en/latest/workflows/index.html

#Create 2 separate repos:
http POST $BASE_ADDR/pulp/api/v3/repositories/ name=test1
http POST $BASE_ADDR/pulp/api/v3/repositories/ name=test2

export REPO_HREF1=$(http $BASE_ADDR/pulp/api/v3/repositories/ | \
jq -r '.results[] | select(.name == "test1") | ._href')

export REPO_HREF2=$(http $BASE_ADDR/pulp/api/v3/repositories/ | \
jq -r '.results[] | select(.name == "test2") | ._href')

#Create collection remote:

http POST $BASE_ADDR/pulp/api/v3/remotes/ansible/collection/ \
name='bar' \
url='https://galaxy-dev.ansible.com' \
whitelist='newswangerd.collection_demo'

export REMOTE_HREF=$(http $BASE_ADDR/pulp/api/v3/remotes/ansible/collection/ | jq -r '.results[] | select(.name == "bar") | ._href')

#Sync both repos with the remote

export TASK_URL1=$(http POST $BASE_ADDR$REMOTE_HREF'sync/' repository=$REPO_HREF1 \ | jq -r '.task')

export TASK_URL2=$(http POST $BASE_ADDR$REMOTE_HREF'sync/' repository=$REPO_HREF2 \ | jq -r '.task')

#Notice that a new repo version is created by 1st task but none by the 2nd.

http $BASE_ADDR$TASK_URL1

http $BASE_ADDR$TASK_URL2


I tried with a second remote pointing to the same URL and with the same whitelist and it doesn't seem to create a repo version either.


Related issues

Related to Ansible Plugin - Issue #4997: Pulp3 Ansible Collection remote doesn't seem to be able to sync more than 1 repo MODIFIED Actions

History

#1 Updated by kersom 2 months ago

  • Related to Issue #4997: Pulp3 Ansible Collection remote doesn't seem to be able to sync more than 1 repo added

#2 Updated by kersom 2 months ago

  • Tags deleted (Katello-P1)

Please register to edit this issue

Also available in: Atom PDF