Actions
Issue #1831
closedsync of non-existing repo does not report an error
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
2.0.0
Platform Release:
2.8.5
Target Release - Docker:
2.0.2
OS:
CentOS 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 1
Quarter:
Description
You can sync a repository that doesn't exist, and pulp will not report any errors.
$ pulp-admin docker repo create --repo-id=m --feed=https://registry-1.docker.io --upstream-name=sdjhflkjdshf
$ pulp-admin docker repo sync run --repo-id=m
+----------------------------------------------------------------------+
Synchronizing Repository [m]
+----------------------------------------------------------------------+
This command may be exited via ctrl+c without affecting the request.
Downloading manifests
[-]
... completed
Copying units already in pulp
[-]
... completed
Copying units already in pulp
[-]
... completed
Downloading remote files
[-]
... completed
Saving Manifests and Blobs
[-]
... completed
Saving Tags
[-]
... completed
Task Succeeded
Task Succeeded
Files
Actions
When a sync cannot get tags from a v2 API, it will fail with a reasonable message.
https://pulp.plan.io/issues/1831
fixes #1831