Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1490

Azure destroyNode try to delete a NIC in use

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2
    • Fix Version/s: None
    • Component/s: jclouds-compute

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pimuzzo Simone
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: