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

Atomic CNI configuration writes necessary in Multus 4.x

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Undefined
    • None
    • 4.14.z
    • Networking / multus
    • None
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      Multus CNI configuration manager writes files all at once, and sometimes crio can read a part of the CNI configuration before it's complete reading resulting in something like:
      
      ```
      Mar 29 04:13:05 labkubedualhost-node-1 crio[33593]: time="2024-03-29 04:13:05.977398607+09:00" level=info msg="CNI monitoring event CREATE        \"/etc/cni/net.d/00-multus.conf\""
      Mar 29 04:13:05 labkubedualhost-node-1 crio[33593]: time="2024-03-29 04:13:05.977767189+09:00" level=error msg="Error loading CNI config file /etc/cni/net.d/00-multus.conf: error parsing configuration: unexpected end of JSON input"
      ```
      
      File writes for configurations are performed in pkg/server/config/manager.go 

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

      >= 4.14.0    

      How reproducible:

      Difficult to reproduce reliably.

      Steps to Reproduce:

      (Unavailable)    

      Actual results:

      Partial results read from CNI configuration can make it so that a node is stuck in a state where the Multus configuration isn't available.

      Expected results:

      Multus writes the configuration atomically.

      Additional info:

      Unsure how to QE validate, maybe just an upgrade and regression test in this case?

      Attachments

        Activity

          People

            dosmith Douglas Smith
            dosmith Douglas Smith
            Weibin Liang Weibin Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: