Issue #4997
closedPulp3 Ansible Collection remote doesn't seem to be able to sync more than 1 repo
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
Collection sync bugfix and progress reporting
Previously the sync had no progress reports. Some users want progress reporting even for fast tasks, e.g. Katello. This gives some basic progress reporting.
https://pulp.plan.io/issues/5023 closes #5023
Cause second sync content to associate correctly
The content associate only occured when the sync created the content unit. When that content unit is associated with another repository the sync doesn't associate the content correctly.
This associates content regardless of if this sync created it or it already existed.
https://pulp.plan.io/issues/4997 closes #4997