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

SignatureStores was enabled unexpectedly once adding other featuresets in CustomNoUpgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • 4.15
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          SignatureStores is a TP feature which should be hidden by default. But when enabling DynamicResourceAllocation fs in CustomNoUpgrade, SignatureStores api could be available unexpectedly while the featuregate status shows it's disabled actually.
      
      //before adding CustomNoUpgrade featuregate, SignatureStores is disabled and api is not available as expect.
      # ./oc get featuregate cluster -ojson|jq .spec
      {}
      
      # ./oc get featuregate cluster -ojson|jq .status.featureGates[].disabled|grep -E "SignatureStores|DynamicResourceAllocation"
          "name": "DynamicResourceAllocation"
          "name": "SignatureStores"
      
      # ./oc patch clusterversion version --type merge -p '{"spec": {"signatureStores": []}}'
      Warning: unknown field "spec.signatureStores"
      clusterversion.config.openshift.io/version patched (no change)
      
      //after adding DynamicResourceAllocation in CustomNoUpgrade, SignatureStores is still disabled, but api is available unexpectedly.
      # ./oc patch featuregates/cluster --type=merge --patch='{"spec":{"featureSet":"CustomNoUpgrade","customNoUpgrade":{"enabled":["DynamicResourceAllocation"]}}}'
      featuregate.config.openshift.io/cluster patched
      
      # ./oc get featuregate cluster -ojson|jq .spec
      {
        "customNoUpgrade": {
          "enabled": [
            "DynamicResourceAllocation"
          ]
        },
        "featureSet": "CustomNoUpgrade"
      }
      
      # ./oc get featuregate cluster -ojson|jq .status.featureGates[].disabled|grep -E "SignatureStores|DynamicResourceAllocation"
          "name": "SignatureStores"
      
      # ./oc get featuregate cluster -ojson|jq .status.featureGates[].enabled|grep -E "SignatureStores|DynamicResourceAllocation"
          "name": "DynamicResourceAllocation"
      
      # ./oc patch clusterversion version --type merge -p '{"spec": {"signatureStores": []}}'
      clusterversion.config.openshift.io/version patched
      
      # ./oc get clusterversion version -ojson|jq .spec
      {
        "channel": "stable-4.14",
        "clusterID": "0f862ace-7b3f-4302-8b30-f7c35915aa46",
        "signatureStores": []
      }

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

          4.15.0-0.nightly-2023-12-08-202155

      How reproducible:

          always

      Steps to Reproduce:

          1. add CustomNoUpgrade featureSet without SignatureStores
          2. 
          3.
          

      Actual results:

          SignatureStores api is available unexpectedly

      Expected results:

          SignatureStores api should be hidden

      Additional info:

          

            trking W. Trevor King
            rhn-support-jiajliu Jia Liu
            Jia Liu Jia Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: