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

The must-gather image name is too long

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.17.0, 4.16.z
    • Compliance Operator
    • None

      Description of problem:

      The must-gather image name in the csv is too long. It is not easy to get a must-gather image.
      % oc adm must-gather --image=$(oc get csv compliance-operator.v1.6.0 -o=jsonpath='{.spec.relatedImages[?(@.name=="must-gather")].image}')
      % oc get csv compliance-operator.v1.6.0 -o=jsonpath='{.spec.relatedImages[?(@.name=="openshift-compliance-must-gather-rhel8-a94873509bd5f75e97db4b6f3848796f0ff020d8e97a94b2654b2b184af6fc3e-annotation")].image}'
      registry.redhat.io/compliance/openshift-compliance-must-gather-rhel8@sha256:a94873509bd5f75e97db4b6f3848796f0ff020d8e97a94b2654b2b184af6fc3e

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

      4.17.0-0.nightly-2024-09-17-194622    

      How reproducible:

      Always    

      Steps to Reproduce:

          1. Install compliance-operator.v1.6.0
          2. % oc get csv compliance-operator.v1.6.0 -o=jsonpath='{.spec.relatedImages[*]}' | jq -r
          3.
          

      Actual results:

       

      The must-gather image name is openshift-compliance-must-gather-rhel8-a94873509bd5f75e97db4b6f3848796f0ff020d8e97a94b2654b2b184af6fc3e-annotation
      % oc get csv compliance-operator.v1.6.0 -o=jsonpath='{.spec.relatedImages[*]}' | jq -r
      {
        "image": "registry.redhat.io/compliance/openshift-compliance-rhel8-operator@sha256:2a2ac1000d3d3d0f483924316b1c3b9bf1503d1c1ba69e903c9c4dcee905d704",
        "name": "compliance-operator"
      }
      {
        "image": "registry.redhat.io/compliance/openshift-compliance-openscap-rhel8@sha256:8ddff7372b29a6de4473285eb2dc073aafeaffc9c139b5b5d5e31ff32200e120",
        "name": "openscap"
      }
      {
        "image": "registry.redhat.io/compliance/openshift-compliance-rhel8-operator@sha256:2a2ac1000d3d3d0f483924316b1c3b9bf1503d1c1ba69e903c9c4dcee905d704",
        "name": "operator"
      }
      {
        "image": "registry.redhat.io/compliance/openshift-compliance-content-rhel8@sha256:ea0b1f76db8885e2a0079b79509a29cac233d3b1345816fd4855a5814f7f63e3",
        "name": "profile"
      }
      {
        "image": "registry.redhat.io/compliance/openshift-compliance-must-gather-rhel8@sha256:a94873509bd5f75e97db4b6f3848796f0ff020d8e97a94b2654b2b184af6fc3e",
        "name": "openshift-compliance-must-gather-rhel8-a94873509bd5f75e97db4b6f3848796f0ff020d8e97a94b2654b2b184af6fc3e-annotation"
      }
      {
        "image": "registry.redhat.io/compliance/openshift-compliance-openscap-rhel8@sha256:8ddff7372b29a6de4473285eb2dc073aafeaffc9c139b5b5d5e31ff32200e120",
        "name": "openshift-compliance-openscap-rhel8-8ddff7372b29a6de4473285eb2dc073aafeaffc9c139b5b5d5e31ff32200e120-annotation"
      }
      

      Expected results:

      The must-gather image name is must-gather    

      Additional info:

          

            lbragsta@redhat.com Lance Bragstad
            xiyuan@redhat.com Xiaojie Yuan
            Xiaojie Yuan Xiaojie Yuan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: