How to Clean Luigi and Kubevirt Stale Entries After disabling the Luigin Plugins

Problem

After disabling the Luigin plugins, stale network erslated entries are present, which results in pod creation failures with below errors:

Pod describe
Copy

Environment

  • Platform9 Managed Kubernetes- 5.7.0 and higher.

Procedure

The workaround steps to be followed are:

  1. Using network plugin CRD, first disable the networks that are not needed.
edit
Copy
  1. Comment out the plugins that are not needed and save the CRD. Check for those plugin pods and daemonsets to be deleted automatically.

Note- Delete the network plugin CRD for unwanted plugins.

yaml
Copy
  1. Delete the '- teardownPlugins' under finalizers and run the below delete:
yaml
Copy
  1. And remove multus folders and conf file under /etc/cni/net.d/ on all the nodes:
Multus removal
Copy
  1. After all the plugins are commented out and are been deleted, disable the Luigi add-on from UI.

Wait for the add-on to be removed.

Verify
Copy
  1. Re-enabling the luigi addon works fine after this.

Additional Information

An internal jira- PMK-6521 has been file to automate this process. And the fix will be available in upcoming PMK-5.11 version.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard