[ICN-614] Network config cannot be renamed when deploying ovn4nfv as a secondary CNI with Multus Created: 19/Oct/21 Updated: 28/Oct/21 |
|
| Status: | In Progress |
| Project: | Integrated Cloud Native NFV |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | High |
| Reporter: | Palaniappan Ram | Assignee: | Kuralamudhan Ramakrishnan |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Kubernetes v1.21.0 |
||
| Description |
|
The ovn4nfv is deployed as a secondary CNI along with multus. The steps used and the issue observed are as follows,
The ovn4nfv network conf is installed (alphabetically) before the flannel network configuration and the multus has the configuration of ovn4nfv (instead of flannel). Due to this issue, the new pods are assigned the IP address from the ovn4nfv subnet as below, $ kubectl get pods -A -o wide
The issue seems to be with the "entrypoint" file where the filename for the network.conf is fixed to 00-network.conf OVN4NFV_NET_CONF_FILE="/tmp/ovn4nfv-cni/00-network.conf" CNI_CONF_DIR="/host/etc/cni/net.d" cp -f $OVN4NFV_NET_CONF_FILE $CNI_CONF_DIR |
| Comments |
| Comment by Palaniappan Ram [ 28/Oct/21 ] |
|
I have tested the fix and the nodus as the secondary CNI works fine. But the network config file is always created with the name "20-network.conf". It is preferred if this file name is configurable from the deployment yaml files. |
| Comment by Palaniappan Ram [ 20/Oct/21 ] |
|
I will test this fix and update. |
| Comment by Kuralamudhan Ramakrishnan [ 19/Oct/21 ] |
|
palaniap Updated the fix in the master. Please use the nodus yaml file here - https://github.com/akraino-edge-stack/icn-nodus/blob/master/deploy/ovn4nfv-k8s-plugin.yaml |
| Comment by Kuralamudhan Ramakrishnan [ 19/Oct/21 ] |
|
Thanks palaniap . I will provide the fix by creating a config map variable, where user can specify the name of the file to customize with their deployment. |