When attempting to use oc adm release mirror in an environment where the local registry is only listening on ipv6, it seems there is some validation which prevents using that address in the --to location:
$ oc adm release mirror --insecure=true -a combined-pullsecret--O2zxxDYRKZ --from registry.svc.ci.openshift.org/ipv6/release:4.3.0-0.nightly-2019-12-20-152137-ipv6.1 --to-release-image fd2e:6f44:5dd8:c956:0:0:0:1:5000/localimages/local-release-image:4.3.0-0.nightly-2019-12-20-152137-ipv6.1 --to [fd2e:6f44:5dd8:c956:0:0:0:1]:5000/localimages/local-release-image
error: --to must be a valid image repository: "[fd2e:6f44:5dd8:c956:0:0:0:1]:5000/localimages/local-release-image" is not a valid image reference: invalid reference format
A similar issue exists if you use the IP in the --to-release-image pullspec - replacing the IP with a hostname hard-coded in /etc/hosts appears to work around the issue.
Can this validation be relaxed to allow for ipv6 addresses?
When attempting to use
oc adm release mirrorin an environment where the local registry is only listening on ipv6, it seems there is some validation which prevents using that address in the--tolocation:A similar issue exists if you use the IP in the
--to-release-imagepullspec - replacing the IP with a hostname hard-coded in /etc/hosts appears to work around the issue.Can this validation be relaxed to allow for ipv6 addresses?