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

Azure destroyNode try to delete a NIC in use

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 2.1.2
    • None
    • 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

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

            Dates

              Created:
              Updated: