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

Need to back-port the PR https://github.com/openshift/must-gather/pull/259 to 4.9


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.9.z
    • kube-apiserver
    • None
    • Moderate
    • No
    • False
    • Hide



      Description of problem:

      oc adm must-gather -- /usr/bin/gather_audit_logs with 'None' audit profile doesn't work, hang in terminal. 

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

      $ oc get clusterversion
      NAME      VERSION                                                  AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.9.0-0.ci.test-2023-02-23-022919-ci-ln-vgjhq1b-latest   True        False         14m     Cluster version is 4.9.0-0.ci.test-2023-02-23-022919-ci-ln-vgjhq1b-latest

      How reproducible:


      Steps to Reproduce:

      Steps to Reproduce:
      1. $ ./oc patch apiserver cluster -p '{"spec": {"audit": {"profile": "None"}}}' --type merge
      2. After the kube-apiserver degradation is finished.
      $ ./oc get pods -n openshift-kube-apiserver -l apiserver --show-labels
      3.$ ./oc adm must-gather -- /usr/bin/gather_audit_logs

      Actual results:

      $ oc adm must-gather -- /usr/bin/gather_audit_logs with 'None' audit profile doesn't work, hang in terminal. 
      $ oc adm must-gather -- /usr/bin/gather_audit_logs -v=8
      [must-gather      ] OUT Using must-gather plug-in image: registry.build05.ci.openshift.org/ci-ln-vgjhq1b/stable@sha256:f2e30eb8dbc6c0472f0bf37bd869ba892f85a0fa70c8e9835a3664a08e9abc39
      When opening a support case, bugzilla, or issue please include the following summary data along with any other requested information:
      ClusterID: cbb22254-f49f-4461-9087-a5b53db12191
      ClusterVersion: Stable at "4.9.0-0.ci.test-2023-02-23-022919-ci-ln-vgjhq1b-latest"
          All healthy and stable
      [must-gather      ] OUT namespace/openshift-must-gather-zfgf8 created
      [must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-8p76m created
      [must-gather      ] OUT pod for plug-in image registry.build05.ci.openshift.org/ci-ln-vgjhq1b/stable@sha256:f2e30eb8dbc6c0472f0bf37bd869ba892f85a0fa70c8e9835a3664a08e9abc39 created
      [must-gather-k7ngk] POD 2023-02-23T04:53:08.936072801Z Vim: Warning: Output is not to a terminal
      [must-gather-k7ngk] POD 2023-02-23T04:53:08.936072801Z Vim: Warning: Input is not from a terminal

      Expected results:

      oc adm must-gather -- /usr/bin/gather_audit_logs with 'None' audit profile works fine.

      Additional info:

      The bug was fixed on OCP 4.10 with PR https://github.com/openshift/must-gather/pull/259, but we didn't back-port it to 4.9 release.



            wk2019 Ke Wang
            wk2019 Ke Wang
            Ke Wang Ke Wang
            0 Vote for this issue
            3 Start watching this issue