Bug 1193685
Summary: | Cannot change the docker upstream name for a repository that doesn't have a sync url | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | David Davis <daviddavis> |
Component: | Content Management | Assignee: | Brad Buckingham <bbuckingham> |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.0 | CC: | bbuckingham, bkearney, cwelton, lpramuk |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/14111 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 09:13:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1193669 | ||
Bug Blocks: | 1190289 |
Description
David Davis
2015-02-17 21:36:07 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. The current behavior is different than the bug description; however, the current behavior is also not correct. Current behavior, 1. user can create a docker repo without specifying url and upstream-name 2. if the user did not url and upstream-name during creation, they will receive an error, if they attempt edit the repository to add them. The reason being, the UI will only add 1 at a time; however, both are required, if at least one is provided. With docker v2, Satellite no longer support the ability to upload a docker image (now referred to as a manifest). As a result, in order to address this bugzilla, we are going to make url and upstream-name required on repository creation. If in the future, Satellite is able to support upload again, this can be revisited. Created redmine issue http://projects.theforeman.org/issues/14111 from this bug Upstream Katello PR: https://github.com/Katello/katello/pull/5859 Upstream bug component is Content Management VERIFIED. @Sat6.2.0-Beta tfm-rubygem-katello-3.0.0.26-1.el7sat.noarch Tested both CLI/UI that upon docker repository creation an upstream name and Registry URL are always required. On updating docker repository the same check is applied. # hammer repository create --name empty --product "Custom Product" --organization-id 1 --content-type docker Could not create the repository: Validation failed: Repository URL or Upstream Name is empty. Both are required for syncing from the upstream. # hammer repository create --name empty --product "Custom Product" --organization-id 1 --content-type docker --url https://registry-1.docker.io/ Could not create the repository: Validation failed: Repository URL or Upstream Name is empty. Both are required for syncing from the upstream. # hammer repository create --name empty --product "Custom Product" --organization-id 1 --content-type docker --url https://registry-1.docker.io/ --docker-upstream-name o Could not create the repository: Validation failed: Docker upstream name must be a valid docker name # hammer repository create --name empty --product "Custom Product" --organization-id 1 --content-type docker --url https://registry-1.docker.io/ --docker-upstream-name busybox Repository created Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501 |