Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-23339

The name for ImageDigestMirrorSet created by oc-mirror is not valid

XMLWordPrintable

    • No
    • CLID Sprint 246
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      Description of problem:

      The name for ImageDigestMirrorSet created by oc-mirror is not valid

      Version-Release number of selected component (if applicable):

      4.15

      How reproducible:

      always

      Steps to Reproduce:

      1. Use the idcp yaml file created by oc-mirror , will hit error

       

       

      Actual results:
      cat out/working-dir/cluster-resources/idms_2023-11-16T04\:04\:49Z.yaml
      apiVersion: config.openshift.io/v1
      kind: ImageDigestMirrorSet
      metadata:
        creationTimestamp: null
        name: idms_2023-11-16T04:04:49Z
      spec:
        imageDigestMirrors:
        - mirrors:
          - ec2-3-143-247-94.us-east-2.compute.amazonaws.com:5000/ocp/openshift-release-dev
          source: quay.io/openshift-release-dev
        - mirrors:
          - ec2-3-143-247-94.us-east-2.compute.amazonaws.com:5000/ocp/openshift
          source: localhost:5005/openshift
      status: {}

       

      oc create -f out/working-dir/cluster-resources/idms_2023-11-16T04\:04\:49Z.yaml 
      The ImageDigestMirrorSet "idms_2023-11-16T04:04:49Z" is invalid: metadata.name: Invalid value: "idms_2023-11-16T04:04:49Z": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9][a-z0-9])?(\.[a-z0-9]([-a-z0-9][a-z0-9])?)*')

      Expected results:

      name valid and no error.

      Additional info:

       

            skhoury@redhat.com Sherine Khoury
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: