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

Wrong information in "oc adm prune renderedmachineconfigs list --in-use" command

XMLWordPrintable

    • Moderate
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When we use the --in-use flag the information regarding the status and the spec configs is flipped
      
      $ oc adm prune renderedmachineconfigs list --in-use --pool-name worker
      worker
      spec: rendered-worker-3952ea27d18fc6af4e3571ff92e05ac4 <---- this is actually the status mc
      status: rendered-worker-df4dee13aa617ae359301352a20c6a9b <---- this is actually the spec mc
      
      $ oc get mcp worker -ojsonpath='{.spec.configuration.name}'
      rendered-worker-df4dee13aa617ae359301352a20c6a9b
      $ oc get mcp worker -ojsonpath='{.status.configuration.name}'
      rendered-worker-3952ea27d18fc6af4e3571ff92e05ac4
          

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

      pre-merge testing: https://github.com/openshift/oc/pull/1723
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1. Apply a MC to the worker pool
          2. Execute the following command
        $  oc adm prune renderedmachineconfigs list --in-use --pool-name worker
          

      Actual results:

      The status and spec information are not right.
          

      Expected results:

      The command should return the right information
          

      Additional info:

      
          

            rhn-support-cruhm Courtney Ruhm
            sregidor@redhat.com Sergio Regidor de la Rosa
            Sergio Regidor de la Rosa Sergio Regidor de la Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: