Bug 2213887 - Multus is supposed to watch for the primary cni config file during runtime after install
Summary: Multus is supposed to watch for the primary cni config file during runtime af...
Keywords:
Status: NEW
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Unknown
Version: 4.x
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: Xiaoli Tian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-09 18:43 UTC by Abhishek Sharma
Modified: 2023-07-06 15:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Abhishek Sharma 2023-06-09 18:43:44 UTC
Description of problem:
Multus is supposed to watch for the primary cni config file in /var/run/multus. But it seems to do so only at install time[in essence no watching at all]. If we edit the primary cni config file at /var/run/multus/cni/net.d/10-ovn-kubernetes.conf, it should reflect it in /etc/kubernetes/cni/net.d/00-multus.conf, however it does so only after restarting the multus pods" 

Version-Release number of selected component (if applicable):
Client Version: 4.12.2
Kustomize Version: v4.5.7
Server Version: 4.12.2
Kubernetes Version: v1.25.4+a34b9e9

How reproducible:
Every time

Steps to Reproduce:
1. Edit /var/run/multus/cni/net.d/10-ovn-kubernetes.conf
2. Check /etc/kubernetes/cni/net.d/00-multus.conf


Actual results:
No update to /etc/kubernetes/cni/net.d/00-multus.conf

Expected results:
Updates reflected in /etc/kubernetes/cni/net.d/00-multus.conf

Additional info:
we are editing the file /var/run/multus/10-ovn-kubernetes.conf to chain the cisco cni, but multus does not detect the change

Logs:

2023-06-02T21:13:27+00:00 [cnibincopy] Successfully copied files in /usr/src/multus-cni/rhel8/bin/ to /host/opt/cni/bin/upgrade_18e3dfc8-2f2c-4d88-ac1f-47f2f7df39eb
2023-06-02T21:13:27+00:00 [cnibincopy] Successfully moved files in /host/opt/cni/bin/upgrade_18e3dfc8-2f2c-4d88-ac1f-47f2f7df39eb to /host/opt/cni/bin/
2023-06-02T21:13:27+00:00 WARN: {unknown parameter "-"}
2023-06-02T21:13:27+00:00 Entrypoint skipped copying Multus binary.
2023-06-02T21:13:27+00:00 Generating Multus configuration file using files in /host/var/run/multus/cni/net.d...
2023-06-02T21:13:27+00:00 Using MASTER_PLUGIN: 10-ovn-kubernetes.conf
2023-06-02T21:13:27+00:00 Nested capabilities string: 
2023-06-02T21:13:27+00:00 Using /host/var/run/multus/cni/net.d/10-ovn-kubernetes.conf as a source to generate the Multus configuration
2023-06-02T21:13:27+00:00 Config file created @ /host/etc/cni/net.d/00-multus.conf
2023-06-02T21:13:27+00:00 Entering watch loop...

Comment 1 Antonios Dakopoulos 2023-07-06 15:11:29 UTC
Created Jira:
https://issues.redhat.com/browse/OCPBUGS-15888


Note You need to log in before you can comment on or make changes to this bug.