Skip to content

Validation prevents mirroring release to ipv6 registry #239

@hardys

Description

@hardys

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions