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

The must-gather image for compliance operator is not working as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.15.z, 4.17.0
    • Compliance Operator
    • None

      Description of problem:

      The must-gather image for openshift-compliance is not working as expected    

       
       

      % oc adm must-gather --image=brew.registry.redhat.io/compliance/openshift-compliance-must-gather-rhel8@sha256:215f144bde14a21e47abc9f200fe472a8cda93c25e2ab6a0e6f24850d9b13b04
      [must-gather      ] OUT Using must-gather plug-in image: brew.registry.redhat.io/compliance/openshift-compliance-must-gather-rhel8@sha256:215f144bde14a21e47abc9f200fe472a8cda93c25e2ab6a0e6f24850d9b13b04
      When opening a support case, bugzilla, or issue please include the following summary data along with any other requested information:
      ClusterID: 54a5400b-d090-4e58-a716-b90972cb1f1a
      ClientVersion: 4.15.0
      ClusterVersion: Stable at "4.15.0-0.nightly-2024-09-19-162022"
      ClusterOperators:
       All healthy and stable
       
       
      [must-gather      ] OUT namespace/openshift-must-gather-nc95t created
      [must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-qpbr5 created
      [must-gather      ] OUT pod for plug-in image brew.registry.redhat.io/compliance/openshift-compliance-must-gather-rhel8@sha256:215f144bde14a21e47abc9f200fe472a8cda93c25e2ab6a0e6f24850d9b13b04 created
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.038168459Z volume percentage checker started.....
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.041001831Z + COMPONENT=compliance
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.041060678Z + BIN=oc
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.041092129Z + LOGS_DIR=/must-gather
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.041864397Z ++ grep compliance
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.041986350Z ++ tr ' ' '\n'
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.042494197Z ++ oc get crds -o 'jsonpath={.items[*].metadata.name}'
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.042918353Z volume usage percentage 0
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z + APIRESOURCES='compliancecheckresults.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z complianceremediations.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z compliancescans.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z compliancesuites.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z profilebundles.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z profiles.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z rules.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z scansettingbindings.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z scansettings.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z tailoredprofiles.compliance.openshift.io
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650179604Z variables.compliance.openshift.io'
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650290603Z + for APIRESOURCE in ${APIRESOURCES[@]}
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650616556Z ++ oc get compliancecheckresults.compliance.openshift.io --all-namespaces=true -o 'jsonpath={range .items[*]}{@.metadata.namespace}{"\n"}{end}'
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.650624374Z ++ uniq
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.955354215Z + NAMESPACES=openshift-compliance
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.955389872Z + for NAMESPACE in ${NAMESPACES[@]}
      [must-gather-tm2zf] POD 2024-09-20T07:14:53.955389872Z + mkdir -p /must-gather/openshift-compliance/compliancecheckresults.compliance.openshift.io
      ...
      [must-gather-tm2zf] POD 2024-09-20T07:16:29.956213167Z + oc get pods rhcos4-openshift-compliance-pp-584cd47868-g2smn -n openshift-compliance -o=yaml
      [must-gather-tm2zf] OUT waiting for gather to complete
      [must-gather-tm2zf] OUT downloading gather output
      WARNING: cannot use rsync: rsync not available in container
      WARNING: cannot use tar: tar not available in container
      WARNING: cannot use rsync: rsync not available in container
      WARNING: cannot use tar: tar not available in container
      [must-gather-tm2zf] OUT gather output not downloaded: No available strategies to copy.
      [must-gather-tm2zf] OUT 
      [must-gather      ] OUT namespace/openshift-must-gather-nc95t deleted
      [must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-qpbr5 deleted
       
       
      Error running must-gather collection:
          unable to download output from pod must-gather-tm2zf: No available strategies to copy.
       
      Falling back to `oc adm inspect clusteroperators.v1.config.openshift.io` to collect basic cluster information.
      Gathering data for ns/openshift-config...
      Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
      Gathering data for ns/openshift-config-managed...
      Gathering data for ns/openshift-authentication...
      ...
      

       

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

      4.15.0-0.nightly-2024-09-19-162022    

      How reproducible:

      Always    

      Steps to Reproduce:

          1. Install compliance-operator.v1.6.0     
          2.  % oc adm must-gather --image=brew.registry.redhat.io/compliance/openshift-compliance-must-gather-rhel8@sha256:215f144bde14a21e47abc9f200fe472a8cda93c25e2ab6a0e6f24850d9b13b04
          

      Actual results:

      Seen from the description. There is WARNING info for the must-gather output logs and it fall back to `oc adm inspect clusteroperators.v1.config.openshift.io` to collect basic cluster information.    

      Expected results:

      The must-gather should succeed without warnings    

      Additional info:

          

            wenshen@redhat.com Vincent Shen
            xiyuan@redhat.com Xiaojie Yuan
            Xiaojie Yuan Xiaojie Yuan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: