Description of problem: As tilte, run registry hard prune command,get unexpected msg: WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_ADDR ............. ......... the background are card and bug below: https://trello.com/c/He2j63p0/957-5-registry-hard-prune-procedure https://bugzilla.redhat.com/show_bug.cgi?id=1471844 openshift v3.4.1.44.6 kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 How reproducible: Always Steps to Reproduce: 1. setup ocp env, and check the svc: docker-registry and registry console co-exist 2. Change the registry to read-only mode, and run hard prune command: pod="$(oc -n default get pods -l deploymentconfig=docker-registry \ > -o jsonpath=$'{.items[0].metadata.name}\n')" [root@qe-geliu-34master-registry-router-nfs-1 ~]# oc -n default exec -i -t "${pod}" -- /usr/bin/dockerregistry -prune=check WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_ADDR WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PROTO WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_HOST WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT_REGISTRY_CONSOLE Would delete 11 blobs Would free up 3.028 MiB of disk space Use -prune=delete to actually delete the data [root@qe-geliu-34master-registry-router-nfs-1 ~]# oc -n default exec -i -t "${pod}" -- /usr/bin/dockerregistry -prune=delete WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_ADDR WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PROTO WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_HOST WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT WARN[0000] Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT_REGISTRY_CONSOLE Deleted 11 blobs Freed up 3.028 MiB of disk space Actual results: Registry hard prune command prompt unexpected warning msg if 'registry console' alongside registry Expected results: Registry hard prune command should not prompt warning msg about 'registry console'
annoying but low priority
this is blocking the acceptance of https://trello.com/c/He2j63p0 so raising the priority. If it should not block the acceptance of https://trello.com/c/He2j63p0 then that needs to be explained to QE so the card can be accepted.
This error is benign and unfortunately not fixable as it comes from the upstream docker registry code. QE, please proceed with the testing/acceptance of https://trello.com/c/He2j63p0 and ignore this warning message.
Reached here searching for what these messages mean. Thanks Ben for clarifying that these messages can be ignored for now. Can we probably add a note in the docs saying so? Its a bit confusing for the consumers.
I have opened an issue against our docs repo: https://github.com/openshift/openshift-docs/issues/12946