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:
Environment
Platform9 Managed Kubernetes- 5.7.0 and higher.
Procedure
The workaround steps to be followed are:
Using network plugin CRD, first disable the networks that are not needed.
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.
Delete the '- teardownPlugins' under finalizers and run the below delete:
And remove multus folders and conf file under /etc/cni/net.d/ on all the nodes:
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.
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.
