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

SCC part of OCP 4.20 enforce readOnlyRootFilesystem to true which is only supported in 4.21 and later

    • None
    • False
    • Hide

      None

      Show
      None
    • 2
    • None
    • None
    • None
    • None
    • Metal Platform 283, Metal Platform 284
    • 2
    • Proposed
    • Bug Fix
    • Hide
      Issue : Due to SCC selection, a OCPv 4.20.11 cluster added several extra SCC which althoug match all explicit requirements of the metal3-image-customization pods, but additionally enforce ReadOnlyRootFilesystem: true, which the Deployment just leaves as unspecified in 4.20. This causes machine-os-images init container to fail with error : "/bin/copy-metal: line 43: /coreos/coreos-aarch64.iso.sha256: Read-only file system"

      Fix: Explicitly set ReadOnlyRootFilesystem to false, so that the SCC does not cause it to be set to true due to being unspecified.
      Show
      Issue : Due to SCC selection, a OCPv 4.20.11 cluster added several extra SCC which althoug match all explicit requirements of the metal3-image-customization pods, but additionally enforce ReadOnlyRootFilesystem: true, which the Deployment just leaves as unspecified in 4.20. This causes machine-os-images init container to fail with error : "/bin/copy-metal: line 43: /coreos/coreos-aarch64.iso.sha256: Read-only file system" Fix: Explicitly set ReadOnlyRootFilesystem to false, so that the SCC does not cause it to be set to true due to being unspecified.
    • None
    • None
    • None
    • None

      Description of problem:

      Security context constrains ( SCC ) part of OCP 4.20.11 enforces readOnlyRootFilesystem: true, which is only supported in OCP 4.21 and later. This causes Read-only file system errors. Refer the discussion in  https://issues.redhat.com/browse/OCPBUGS-65971 for more details.
      
          

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

      
          

      How reproducible:
      If there is a SCC that enforces the above mentioned behavior, then we will always hit this issue.

      
          

      Steps to Reproduce:
      1. Deploy a cluster with above mentioned SCC present

      
          

      Actual results:
      Deployment fails as the machine-os-images init container part of metal3-image-customization fails with below error :
      /bin/copy-metal: line 43: /coreos/coreos-aarch64.iso.sha256: Read-only file system

      
          

      Expected results:
      Deployment should succeed

      
      

              hroy@redhat.com Himanshu Roy
              hroy@redhat.com Himanshu Roy
              None
              None
              Jad Haj Yahya Jad Haj Yahya
              None
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: