k8snetworkplumbingwg / whereabouts

A CNI IPAM plugin that assigns IP addresses cluster-wide
Apache License 2.0
273 stars 120 forks source link

[BUG] "config file not found" when used in net-attach-def with KubeVirt and multus #476

Open e3b0c442 opened 1 month ago

e3b0c442 commented 1 month ago

Describe the bug When uses as a network-attachment-definition with KubeVirt and multus, trying to launch a VM throws a config file not found error with the launcher pod stuck in ContainerCreating

Expected behavior The launcher pod (and VM) launch successfully

To Reproduce Steps to reproduce the behavior:

  1. Add a network-attachment-definition using multus
  2. Add a KubeVirt VirtualMachine with a network config using the referenced network-attachment-definition
  3. Try to boot VM and virt-launcher pod stuck in ContainerCreating with FailedCreatePodSandbox events in kubectl describe pod

Environment:

Additional info / context Kubevirt manifest (abridged):

apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
  name: example
  namespace: vms
spec:
# ...stuff...
  template:
  # ...stuff...
    spec:
    # ...stuff...
      devices:
      # ...stuff...
        interfaces:
          - name: default
            bridge: {}
            macAddress: aa:aa:aa:aaaa:aa
      networks:
        - name: default
          multus:
            default: true
            networkName: vms/br-multus

kubectl describe pod event:

  Warning  FailedCreatePodSandBox  60s (x402 over 89m)  kubelet  (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "ab9ff4ccbc8b189e27c3742f73c9e7138f518c1d7554970a2f30be0207121a31": plugin type="multus" failed (add): [vms/virt-launcher-example-nqq4f/2f4cd204-37c0-46f1-b667-9eeb165abb94:br-multus]: error adding container to network "br-multus": config file not found
reski-rukmantiyo commented 3 weeks ago

anyone have clue how to solve this?