Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
2.1.2
-
None
Description
I had this error once undeploying a VM on Azure:
IllegalArgumentException: { "error": { "code": "NicInUse", "message": "Network Interface /subscriptions/XXX/resourceGroups/XXX/providers/Microsoft.Network/networkInterfaces/jclouds-XXX is used by existing resource /subscriptions/XXX/XXX/providers/Microsoft.Compute/virtualMachines/XXX.", "details": [] } }
Looks like the machine was not yet undeployed.
The stacktrace points to
computeService.destroyNode( instanceId );
And it is related to:
CleanupResources -> public boolean cleanupVirtualMachineNICs(VirtualMachine virtualMachine)