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

MCP degraded after applying a custom mc to enable disk encryption on the worker nodes

XMLWordPrintable

    • None
    • 3
    • MCO Sprint 269
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      A customer installed a cluster with the ABI method enabling FIPS and setting the disk encryption to TPM v2. When checking if the disks were encrypted, the encryption did not work. The customer after installation tried to create an mc to enable TPM v2 but mcp degraded.     

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

          

      How reproducible:

          

      Steps to Reproduce:

          1.Install an ocp 4.16.28 cluster with fips enabled.      
          2. Create an mc with the following information:
          ---
      kind: MachineConfig
      metadata:
        labels:
          machineconfiguration.openshift.io/role: worker
        name: luks-worker
      spec:
        config:
          ignition:
            version: 3.4.0
          storage:
            filesystems:
              - device: /dev/mapper/root
                format: xfs
                label: root
                wipeFilesystem: true
            luks:
              - clevis:
                  tpm2: true
                device: /dev/disk/by-partlabel/root
                label: luks-root
                name: root
                wipeVolume: true
      ---    
      3. mcp's attempt to reconcile is degraded:
      ---
      $ oc get mcp worker -o json |jq .status.conditions
      ...
        {
          "lastTransitionTime": "2025-03-19T21:25:42Z",
          "message": "Failed to render configuration for pool worker: could not generate rendered MachineConfig: new machineconfig \"rendered-worker-cab81f8fed5c4d381c1932f0c826cf1d\" is not reconcilable against \"rendered-worker-cf7276d648a1da6da78c59cc5a95dec8\": ignition filesystems section contains changes\nnew machineconfig \"rendered-worker-cab81f8fed5c4d381c1932f0c826cf1d\" is not reconcilable against \"00-worker\": detected change to FIPS flag; refusing to modify FIPS on a running cluster",
          "reason": "",
          "status": "True",
          "type": "RenderDegraded"
        },
      ---     

      Actual results:

      MCP degraded    

      Expected results:

          

      Additional info:

          

              djoshy David Joshy
              rhn-support-macastil Mario Castillo
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: