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

oc adm release extract --included --install-config does not extract cluster-api namespace manifest with TechPreviewNoUpgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.16, 4.17
    • oc / update
    • None
    • Moderate
    • Yes
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      run `oc adm release extract --included --install-config` against an install-config file with TechPreviewNoUpgrade featuregate, the namespace file of cluster-api(0000_30_cluster-api_00_namespace.yaml) with TechPreviewNoUpgrade annotation is not extracted correctly.
      
      # cat 66751.yaml 
      ---
      apiVersion: v1
      platform:
        gcp:
          foo: bar
      capabilities:
        additionalEnabledCapabilities:
        - Console
        - MachineAPI
        baselineCapabilitySet: None
      featureSet: TechPreviewNoUpgrade
      
      # ./oc adm release extract --install-config 66751.yaml --included --from quay.io/openshift-release-dev/ocp-release:4.16.0-ec.6-multi --to newoc
      I0612 07:10:26.375454   19777 extract_tools.go:1196] If the eventual cluster will not be the same minor version as this 4.16.0-rc.4 'oc', the known capability sets may differ.
      Extracted release payload from digest sha256:f6e654d688c7ba9a9b6a2294285955a77b59f029553406a64be41b937d1472d0 created at 2024-04-29T13:04:21Z
      
      # ll newoc/|grep cluster-api|grep namespace
      #
      
      # grep -rh 'release.openshift.io/feature-set\|capability.openshift.io/name' newoc |awk -F":" '{print $NF}'|sort -u
       Console
       MachineAPI
       TechPreviewNoUpgrade
      
      

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

      Client Version: 4.16.0-rc.4

      How reproducible:

      always

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

      cluster-api namespace manifest with TechPreviewNoUpgrade is not extracted

      Expected results:

      cluster-api namespace manifest with TechPreviewNoUpgrade should be extracted

      Additional info:

      With an old version oc, it works.
      
      # ./oc version
      Client Version: 4.16.0-ec.4
      Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
      
      # ./oc adm release extract --install-config 66751.yaml --included --from quay.io/openshift-release-dev/ocp-release:4.16.0-ec.6-multi --to oldoc
      I0612 06:13:05.674273   19686 extract_tools.go:1136] If the eventual cluster will not be the same minor version as this 4.16.0-ec.4 'oc', the known capability sets may differ.
      Extracted release payload from digest sha256:f6e654d688c7ba9a9b6a2294285955a77b59f029553406a64be41b937d1472d0 created at 2024-04-29T13:04:21Z
      
      # grep -rh 'release.openshift.io/feature-set\|capability.openshift.io/name' /tmp/oldoc |awk -F":" '{print $NF}'|sort -u
       Console
       CustomNoUpgrade,TechPreviewNoUpgrade
       MachineAPI
       TechPreviewNoUpgrade
      
      # ll oldoc|grep cluster-api|grep namespace
      -rw-r--r--. 1 root root    682 Jun 12 06:13 0000_30_cluster-api_00_namespace.yaml
      
      # cat /tmp/oldoc/0000_30_cluster-api_00_namespace.yaml |grep TechPreviewNoUpgrade
          release.openshift.io/feature-set: CustomNoUpgrade,TechPreviewNoUpgrade
      
      

              Unassigned Unassigned
              rhn-support-jiajliu Jia Liu
              Jia Liu Jia Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: