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

oc adm release extract --included should extract enabled caps and new-in-4.15 caps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.15.0
    • oc / update
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          When running `oc adm release extract --included --credentials-requests` on a 4.14 cluster(baselineCapabilitySet: None+additionalEnabledCapabilities: MachineAPI) for a tobe-upgraded 4.15 release payload, nothing extracted.
      
      
      # ./oc get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.14.8    True        False         55m     Cluster version is 4.14.8
      
      # ./oc get clusterversion version -ojson|jq .spec.capabilities
      {
        "additionalEnabledCapabilities": [
          "MachineAPI"
        ],
        "baselineCapabilitySet": "None"
      }
      
      # ./oc adm release extract --to /tmp/tobe-include-creds --included --credentials-requests quay.io/openshift-release-dev/ocp-release:4.15.0-rc.1-x86_64
      Extracted release payload from digest sha256:c7c3d2b39681c37817fb99c6f05140ee92a52920b7909d6e973d0025e6b60568 created at 2024-01-05T13:03:51Z
      
      # grep -rh "capability.openshift.io/name:" /tmp/tobe-include-creds
      //nothing here
      
      # ls -la /tmp/tobe-include-creds/
      total 0
      drwxr-xr-x.  2 root root  40 Jan  9 04:47 .
      drwxrwxrwt. 15 root root 300 Jan  9 04:47 ..
      
      
      
      
      

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

          # ./oc version
      Client Version: 4.15.0-rc.1
      Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
      Server Version: 4.14.8
      Kubernetes Version: v1.27.8+4fab27b

      How reproducible:

          always

      Steps to Reproduce:

          1. set up a 4.14 cluster(None baselineCapabilitySet + MachineAPI additionalEnabledCapabilities)
          2. run oc adm release extract to extract CR based above cluster for a 4.15 release payload 
          3.
          

      Actual results:

          nothing extracted

      Expected results:

          the new-in-4.15 cap(CloudCredential) and enabled cap(MachineAPI) CR should be extracted.

      Additional info:

          if upgrade the cluster to 4.15, run `oc adm release extract --included --credentials-requests`, it will extract CR including MachineAPI and CloudCredential cap.
      
      # ./oc adm release extract --to /tmp/post-include-creds --included --credentials-requests
      Extracted release payload created at 2024-01-05T13:03:51Z
      
      # grep -rh "capability.openshift.io/name:" /tmp/post-include-creds 
          capability.openshift.io/name: MachineAPI+CloudCredential
          capability.openshift.io/name: CloudCredential
          capability.openshift.io/name: CloudCredential
          capability.openshift.io/name: CloudCredential
          capability.openshift.io/name: CloudCredential

            lmohanty@redhat.com Lalatendu Mohanty
            rhn-support-jiajliu Jia Liu
            Jia Liu Jia Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: