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