[
https://issues.apache.org/jira/browse/JCLOUDS-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16784652#comment-16784652
]
Simone commented on JCLOUDS-1490:
---------------------------------
{noformat}
org.jclouds.azurecompute.arm.handlers.AzureComputeErrorHandler in handleError
at line 50
org.jclouds.http.handlers.DelegatingErrorHandler in handleError at line 65
org.jclouds.http.internal.BaseHttpCommandExecutorService in shouldContinue at
line 138
org.jclouds.http.internal.BaseHttpCommandExecutorService in invoke at line 107
org.jclouds.rest.internal.InvokeHttpMethod in invoke at line 91
org.jclouds.rest.internal.InvokeHttpMethod in apply at line 74
org.jclouds.rest.internal.InvokeHttpMethod in apply at line 45
org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler in
handleInvocation at line 117
com.google.common.reflect.AbstractInvocationHandler in invoke at line 84
com.sun.proxy.$Proxy265 in delete
org.jclouds.azurecompute.arm.compute.strategy.CleanupResources in
cleanupVirtualMachineNICs at line 113
org.jclouds.azurecompute.arm.compute.strategy.CleanupResources in cleanupNode
at line 96
org.jclouds.azurecompute.arm.compute.AzureComputeServiceAdapter in destroyNode
at line 330
org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies in
destroyNode at line 182
org.jclouds.compute.internal.BaseComputeService in doDestroyNode at line 290
org.jclouds.compute.internal.BaseComputeService in destroyNode at line 246
{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 probably related to:
> {noformat}
> CleanupResources -> public boolean cleanupVirtualMachineNICs(VirtualMachine
> virtualMachine)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)