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

Switching container runtime using ctrcfg does not update the conmon container runtime's --root path

XMLWordPrintable

    • Moderate
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

       When switching the container runtime using a ContainerRuntimeConfig, conmon using the wrong,unupdated --root path for the runtime. 

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

          4.18.0-0.nightly-2024-12-20-221830

      Steps to Reproduce:

      1.Apply containerRuntimeConfig requesting runc as the default runtime. apiVersion: machineconfiguration.openshift.io/v1
      kind: ContainerRuntimeConfig
      metadata:
        name: enable-runc-worker
      spec:
        containerRuntimeConfig:
          defaultRuntime: runc
        machineConfigPoolSelector:
          matchLabels:
            machineconfiguration.openshift.io/role: worker
      
      2. Wait for MCP to turn updated
      3. oc debug the worker node
      4. ps -ef | grep -E 'crun|runc'  

       Actual results:

      The last command will yield a list of processes like:
      root     1230048       1  0 08:33 ?        00:00:00 /usr/bin/conmon -b /run/containers/storage/overlay-containers/9917f380f2e7a88cd8cf09023f13a7500014cd81cfd97213b29bcd35258f886d/userdata -c ........../userdata -r /usr/bin/runc --runtime-arg --root=/run/crun --socket-dir-path /var/run/crio --syslog -u 9917f380f2e7a88cd8cf09023f13a7500014cd81cfd97213b29bcd35258f886d -s -t  
      
      
      Upon closer inspection, the --root=/run/crun value does not align with the -r /usr/bin/runc runtime specification.

      Expected results:

      All processes should be using runc with correct --root value:
      root     1230048       1  0 08:33 ?        00:00:00 /usr/bin/conmon -b /run/containers/storage/overlay-containers/9917f380f2e7a88cd8cf09023f13a7500014cd81cfd97213b29bcd35258f886d/userdata -c ........../userdata -r /usr/bin/runc --runtime-arg --root=/run/runc --socket-dir-path /var/run/crio --syslog -u 9917f380f2e7a88cd8cf09023f13a7500014cd81cfd97213b29bcd35258f886d -s -t 

      Additional info:

          

              rh-ee-rsaini Rishabh Saini
              rh-ee-rbaturov Ronny Baturov
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: