canonical / sdcore-upf-k8s-operator

Kubernetes Charm for the SD-Core User Plane Function (UPF).
https://charmhub.io/sdcore-upf-k8s
Apache License 2.0
0 stars 2 forks source link

Scaling UPF down to 0 then back to 1 results in failure #54

Closed markbeierl closed 9 months ago

markbeierl commented 11 months ago

If the UPF needs to be stopped, for example to conserve CPU resources when not in use, it cannot be scaled back up to 1 unit as Multus errors seem to occur. The following is observed on describing the pod after scaling back to 1 unit:

  Warning  NoNetworkFound          10s   multus             cannot find a network-attachment-definition (access-net) in namespace (core): network-attachment-definitions.k8s.cni.cncf.io "access-net" not found
  Warning  FailedCreatePodSandBox  10s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "b6d1bb486054a040c13ad71fa794b362e810f89221ef0ac66682096241f9cd0b": plugin type="multus" name="multus-cni-network" failed (add): Multus: [core/upf-0/581b7566-b041-4324-a337-7e1a50307ed4]: error loading k8s delegates k8s args: TryLoadPodDelegates: error in getting k8s network for pod: GetNetworkDelegates: failed getting the delegate: getKubernetesDelegate: cannot find a network-attachment-definition (access-net) in namespace (core): network-attachment-definitions.k8s.cni.cncf.io "access-net" not found
markbeierl commented 10 months ago

Confirmed this is still present

markbeierl commented 10 months ago
  Warning  NoNetworkFound          38s                multus             cannot find a network-attachment-definition (access-net) in namespace (user-plane): network-attachment-definitions.k8s.cni.cncf.io "access-net" not found
  Warning  FailedCreatePodSandBox  38s                kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "d8bed800ec33957467f19548105d2a677bd8e74d17771de75e9913d07e868dd1": plugin type="multus" name="multus-cni-network" failed (add): Multus: [user-plane/upf-0/84b62bdf-4c70-4265-a9a3-16a742e50a23]: error loading k8s delegates k8s args: TryLoadPodDelegates: error in getting k8s network for pod: GetNetworkDelegates: failed getting the delegate: getKubernetesDelegate: cannot find a network-attachment-definition (access-net) in namespace (user-plane): network-attachment-definitions.k8s.cni.cncf.io "access-net" not found
  Warning  NoNetworkFound          26s                multus             cannot find a network-attachment-definition (access-net) in namespace (user-plane): network-attachment-definitions.k8s.cni.cncf.io "access-net" not found
  Warning  NoNetworkFound          11s                multus             cannot find a network-attachment-definition (access-net) in namespace (user-plane): network-attachment-definitions.k8s.cni.cncf.io "access-net" not found
  Warning  FailedCreatePodSandBox  11s (x2 over 26s)  kubelet            (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "24cccc2c019b338b44056801816dbd71d68ae8f8d14dede1b7b80033c4cd4d3e": plugin type="multus" name="multus-cni-network" failed (add): Multus: [user-plane/upf-0/84b62bdf-4c70-4265-a9a3-16a742e50a23]: error loading k8s delegates k8s args: TryLoadPodDelegates: error in getting k8s network for pod: GetNetworkDelegates: failed getting the delegate: getKubernetesDelegate: cannot find a network-attachment-definition (access-net) in namespace (user-plane): network-attachment-definitions.k8s.cni.cncf.io "access-net" not found

No messages in juju debug-log