Issue #129
closedDocker repo create should error out when creating a repo with --feed and no --upstream-name and vice versa
Description
[root@cloud-qe-17 ~]# rpm -qa |grep pulp-docker
python-pulp-docker-common-0.2.2-1.el7.noarch
pulp-docker-plugins-0.2.2-1.el7.noarch
pulp-docker-admin-extensions-0.2.2-1.el7.noarch
[root@cloud-qe-17 ~]#
I used --feed -feed=https://registry.hub.docker.com/ to create a docker repo
when I ran sync the sync failed. No updated the repo with --upstream-name busybox and tried the sync again. The sync ran successfully
root@cloud-qe-17 ~]# pulp-admin docker repo create --repo-id=synctest --feed=https://registry.hub.docker.com/
Repository [synctest] successfully created
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]# pulp-admin docker repo sync run --repo-id synctest
--------------------------------------------------------------------
Synchronizing Repository [synctest]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Retrieving metadata
[-]
... failed
NOT FOUND
Task Failed
NOT FOUND
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]# pulp-admin docker repo update --repo-id=synctest --upstream-name busybox
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Task Succeeded
[root@cloud-qe-17 ~]# pulp-admin docker repo sync run --repo-id synctest
--------------------------------------------------------------------
Synchronizing Repository [synctest]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Retrieving metadata
[\]
... completed
Copying units already in pulp
[-]
... completed
Downloading remote files
[==================================================] 100%
23 of 23 items
... completed
Saving images and tags
[-]
... completed
Task Succeeded
Publishing Image Files.
[==================================================] 100%
10 of 10 items
... completed
Making files available via web.
[-]
... completed
Task Succeeded
Related issues
Updated by pthomas@redhat.com about 8 years ago
- Subject changed from If used with --upstream-name the --feed that fail repo sync can be sync successfully synced to Docker repo sync only works when --upstream-name is used
- Priority changed from Normal to High
Repo sync seems to be failing if --upstream-name option is not specified
[root@cloud-qe-17 ~]# pulp-admin docker repo create --repo-id=synctest --feed=https://index.docker.io
Repository [synctest] successfully created
[root@cloud-qe-17 ~]# pulp-admin docker repo sync run --repo-id synctest
--------------------------------------------------------------------
Synchronizing Repository [synctest]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Retrieving metadata
[-]
... failed
NOT FOUND
Task Failed
NOT FOUND
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]# pulp-admin docker repo create --repo-id=synctest_1 --feed=https://registry.hub.docker.com/
Repository [synctest_1] successfully created
[root@cloud-qe-17 ~]# pulp-admin docker repo sync run --repo-id synctest_1+----------------------------------------------------------------------+
Synchronizing Repository [synctest_1]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Retrieving metadata
[-]
... failed
NOT FOUND
Task Failed
NOT FOUND
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]# pulp-admin docker repo update --repo-id=synctest --upstream-name busybox
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Task Succeeded
[root@cloud-qe-17 ~]# pulp-admin docker repo sync run --repo-id synctest+----------------------------------------------------------------------+
Synchronizing Repository [synctest]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Retrieving metadata
[\]
... completed
Copying units already in pulp
[-]
... completed
Downloading remote files
[==================================================] 100%
26 of 26 items
... completed
Saving images and tags
[-]
... completed
Task Succeeded
Publishing Image Files.
[==================================================] 100%
10 of 10 items
... completed
Making files available via web.
[-]
... completed
Task Succeeded
[root@cloud-qe-17 ~]# pulp-admin docker repo update --repo-id=synctest_1 --upstream-name centos
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Task Succeeded
[root@cloud-qe-17 ~]# pulp-admin docker repo sync run --repo-id synctest_1+----------------------------------------------------------------------+
Synchronizing Repository [synctest_1]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Retrieving metadata
[|]
... completed
Copying units already in pulp
[-]
... completed
Downloading remote files
[==================================================] 100%
15 of 15 items
... completed
Saving images and tags
[-]
... completed
Task Succeeded
Publishing Image Files.
[==================================================] 100%
8 of 8 items
... completed
Making files available via web.
[-]
... completed
Task Succeeded
[root@cloud-qe-17 ~]#
[root@cloud-qe-17 ~]# pulp-admin docker repo sync run --repo-id synctest_1+----------------------------------------------------------------------+
Synchronizing Repository [synctest_1]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Retrieving metadata
[|]
... completed
Copying units already in pulp
[-]
... completed
Downloading remote files
[==================================================] 100%
15 of 15 items
... completed
Saving images and tags
[-]
... completed
Task Succeeded
Publishing Image Files.
[==================================================] 100%
8 of 8 items
... completed
Making files available via web.
[-]
... completed
Task Succeeded
Updated by pthomas@redhat.com about 8 years ago
- Subject changed from Docker repo sync only works when --upstream-name is used to Docker repo create should error out when creating a repo with --feed and no --upstream-name and vice versa
- Priority changed from High to Normal
Updated by skarmark@redhat.com about 8 years ago
- Triaged changed from No to Yes
- Severity set to Medium
Updated by bmbouter almost 4 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by bmbouter almost 4 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.