Details
-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.14.z
-
None
-
No
-
False
-
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?