diff --git a/sunbeam-python/sunbeam/commands/prepare_node.py b/sunbeam-python/sunbeam/commands/prepare_node.py index 6009f3598..95f53accc 100644 --- a/sunbeam-python/sunbeam/commands/prepare_node.py +++ b/sunbeam-python/sunbeam/commands/prepare_node.py @@ -96,6 +96,14 @@ /etc/environment done fi + +# Ensure there is no existing/leftover multus config in /etc/cni +# from testing amphora loadbalancer +# These will prevent k8s starting the k8s load balancer if present +if [[ $(sudo find /etc/cni -name '*multus*') ]]; then + echo 'ERROR: existing CNI config detected in /etc/cni' + exit 1 +fi """ COMMON_TEMPLATE = f"""