Project

Profile

Help

Issue #129

closed

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

Added by pthomas@redhat.com about 9 years ago. Updated almost 4 years 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 - WONTFIXActions
Actions #1

Updated by pthomas@redhat.com about 9 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

Actions #2

Updated by pthomas@redhat.com about 9 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
Actions #3

Updated by skarmark@redhat.com about 9 years ago

  • Triaged changed from No to Yes
  • Severity set to Medium
Actions #4

Updated by bmbouter about 9 years ago

  • Severity changed from Medium to 2. Medium
Actions #5

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #6

Updated by bmbouter about 5 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.

Actions #7

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF