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

oc adm inspect --all-namespaces command line is broken in must-gather

XMLWordPrintable

    • Important
    • None
    • False
    • Hide

      None

      Show
      None
    • Due to a bug on "oc adm inspect --all-namespaces" command construction, must-gather was not correctly gathering information about leases, csistoragecapacities and the assisted-installer namespace. This is now fixed.
    • Bug Fix
    • In Progress

      Description of problem:

      
      The current `oc adm inspect --all-namespaces` command line results in something like this:
      
      oc adm inspect --dest-dir must-gather --rotated-pod-logs csistoragecapacities ns/assisted-installer leases --all-namespaces
      
      Which is wrong because of 2 reasons:
      - The `ns/assisted-installer` is there although a namespace is not namespaced, so it should go to the `named_resources` variable (this happens only in 4.16+)
      - The rest of the items on `all_ns_resources` variable are group resources, but they are not separated by `,` like we do with `group_resources` (this happens on 4.14+)
      
      As a result, we never collect what is intended with this command.
      
      

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

      
      Any 4.14+ version
      
      

      How reproducible:

      Always
      

      Steps to Reproduce:

          1. Get a must-gather
          2.
          3.
      

      Actual results:

      Data from "oc adm inspect --all-namespaces" missing
      

      Expected results:

      No data missing
      

      Additional info:

      
      

              rhn-support-palonsor Pablo Alonso Rodriguez
              rhn-support-palonsor Pablo Alonso Rodriguez
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: