Project

Profile

Help

Issue #129

Docker repo create should error out when creating a repo with --feed and no --upstream-name and vice versa

Added by pthomas@redhat.com almost 7 years ago. Updated over 1 year ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
Platform Release:
Target Release - Docker:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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

Related to Docker Support - Issue #127: --upstream-name can be used at repo create/update for repos that has no feedCLOSED - WONTFIX<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by pthomas@redhat.com almost 7 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

#2 Updated by pthomas@redhat.com almost 7 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

#3 Updated by skarmark@redhat.com almost 7 years ago

  • Triaged changed from No to Yes
  • Severity set to Medium

#4 Updated by bmbouter over 6 years ago

  • Severity changed from Medium to 2. Medium

#5 Updated by bmbouter over 2 years ago

  • Status changed from NEW to CLOSED - WONTFIX

#6 Updated by bmbouter over 2 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.

#7 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF