You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Simone (JIRA)" <ji...@apache.org> on 2019/03/05 17:00:02 UTC

[jira] [Updated] (JCLOUDS-1490) Azure destroyNode try to delete a NIC in use

     [ https://issues.apache.org/jira/browse/JCLOUDS-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone updated JCLOUDS-1490:
----------------------------
    Description: 
I had this error once undeploying a VM on Azure:
{noformat}
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": []
  }
}
{noformat}

Looks like the machine was not yet undeployed.
The stacktrace points to
{noformat}
computeService.destroyNode( instanceId );
{noformat}

 And it is related to:
{noformat}
CleanupResources -> public boolean cleanupVirtualMachineNICs(VirtualMachine virtualMachine)
{noformat}

  was:
I had this error once undeploying a VM on Azure:
{noformat}
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": []
  }
}
{noformat}

Looks like the machine was not yet undeployed.
The stacktrace points to
{noformat}
computeService.destroyNode( instanceId );
{noformat}

 And it is probably related to:
{noformat}
CleanupResources -> public boolean cleanupVirtualMachineNICs(VirtualMachine virtualMachine)
{noformat}


> Azure destroyNode try to delete a NIC in use 
> ---------------------------------------------
>
>                 Key: JCLOUDS-1490
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1490
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 2.1.2
>            Reporter: Simone
>            Priority: Trivial
>              Labels: azurecompute-arm
>
> I had this error once undeploying a VM on Azure:
> {noformat}
> 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": []
>   }
> }
> {noformat}
> Looks like the machine was not yet undeployed.
> The stacktrace points to
> {noformat}
> computeService.destroyNode( instanceId );
> {noformat}
>  And it is related to:
> {noformat}
> CleanupResources -> public boolean cleanupVirtualMachineNICs(VirtualMachine virtualMachine)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)