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

"did not receive expected response code and header" during undeploy request

    XMLWordPrintableJSON

Details

    Description

      11:35:00.727 �[1;31mERROR�[0;39m �[36mUndeployTaskRunnable�[0;39m taskId: 83 ref: 203 - Unable to undeploy [�[32mpool-5-thread-67�[0;39m]
      java.lang.IllegalStateException: did not receive expected response code and header in: {statusCode=202, message=, headers={statusCode=202, message=, headers={..., location=[https://management.azure.com/subscriptions/01c8f3d0-fd9f-42e2-85b3-e566b0e7d073/providers/Microsoft.Compute/locations/northcentralus/operations/5509a0e8-002b-4698-a721-7b0b47881fe2?monitor=true&api-version=2018-06-01], ...}
      	at org.jclouds.azurecompute.arm.functions.URIParser.apply(URIParser.java:38)
      	at org.jclouds.azurecompute.arm.functions.URIParser.apply(URIParser.java:28)
      	at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:91)
      	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:74)
      	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:45)
      	at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
      	at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:86)
      	at com.sun.proxy.$Proxy271.delete(Unknown Source)
      	at org.jclouds.azurecompute.arm.compute.strategy.CleanupResources.deleteVirtualMachine(CleanupResources.java:233)
      	at org.jclouds.azurecompute.arm.compute.strategy.CleanupResources.cleanupNode(CleanupResources.java:91)
      	at org.jclouds.azurecompute.arm.compute.AzureComputeServiceAdapter.destroyNode(AzureComputeServiceAdapter.java:330)
      	at org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.destroyNode(AdaptingComputeServiceStrategies.java:182)
      	at org.jclouds.compute.internal.BaseComputeService.doDestroyNode(BaseComputeService.java:290)
      	at org.jclouds.compute.internal.BaseComputeService.destroyNode(BaseComputeService.java:246)
      

      looks like the bug is 'location' wrote lowercase: https://github.com/apache/jclouds/blob/master/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/functions/URIParser.java

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: