Description of problem: When pushing images that contains 3 slashes in their names, an error 500 is shown, but the image repository is created in the registry FileSystem. Version-Release number of selected component (if applicable): v3.5.5.31.24 How reproducible: Always Steps to Reproduce: 1. docker push registry.domain.tld/username-pusher/secondlevel/busybox:latest 2. received unexpected HTTP status: 500 Internal Server Error 3. oc -n default rsh docker-registry-16-wlg1c 4. ls -l /registry/docker/registry/v2/repositories/username-pusher/secondlevel/busybox Actual results: Filesystem directories are created. Expected results: Directories wouldn't be created. Additional info:
The integrated registry does not support multi-slashes in the image name. And never will be.
(In reply to Alexey Gladkov from comment #1) > The integrated registry does not support multi-slashes in the image name. > And never will be. Alexey, thanks for the update, we do understand that, but why are the directories being created? I would assume that if I get an error while pushing the image with multi-slashes the directories wouldn't be created. That's what's being reported on this BZ. Thanks.
> we do understand that, but why are the directories being created? Good catch! Thanks! https://github.com/openshift/image-registry/pull/45
PR merged, moving to modified.
Thanks Ben! I just updated the customer.
Verified openshift v3.9.0-0.24.0 kubernetes v1.9.1+a0ce1bc657 etcd 3.2.8 # docker push docker-registry-default.apps.com/dyan1/openshift3/pod:latest The push refers to a repository [docker-registry-default.com/dyan1/openshift3/pod] 4cb898d8cb62: Preparing 5f70bf18a086: Preparing unauthorized: repository name "dyan1/openshift3/pod" invalid: it must be of the format <project>/<name>
this is fixed in ocp v3.9, please attach in right errata, remove from v3.5 errata. thanks
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-2018:0489