Skip to content

Instantly share code, notes, and snippets.

@bernadinm
Last active August 30, 2017 22:01
Show Gist options
  • Save bernadinm/f53338cc89296fd8af0cd431429ca68a to your computer and use it in GitHub Desktop.
Save bernadinm/f53338cc89296fd8af0cd431429ca68a to your computer and use it in GitHub Desktop.
[PANIC] Azure LoadBalancer Cannot Be Destroyed Dependency
Error applying plan:
4 error(s) occurred:
* azurerm_lb_rule.public_load_balancer_https_rule (destroy): 1 error(s) occurred:
* azurerm_lb_rule.public_load_balancer_https_rule: Error Creating/Updating LoadBalancer network.LoadBalancersClient#CreateOrUpdate: Failure responding to request: StatusCode=429 -- Original Error: autorest/azure: Service returned an error. Status=429 Code="RetryableError" Message="A retryable error occurred." Details=[{"code":"ReferencedResourceNotProvisioned","message":"Cannot proceed with operation because resource /subscriptions/<subscriptions_id>/resourceGroups/dcos-mbernadin-tfb701/providers/Microsoft.Compute/availabilitySets/mbernadin-tfb701-master-avset used by resource mbernadin-tfb701-pub-mas-elb is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is InternalOperation."}]
* azurerm_lb_rule.private_load_balancer_https_rule (destroy): 1 error(s) occurred:
* azurerm_lb_rule.private_load_balancer_https_rule: Error Creating/Updating LoadBalancer network.LoadBalancersClient#CreateOrUpdate: Failure responding to request: StatusCode=429 -- Original Error: autorest/azure: Service returned an error. Status=429 Code="RetryableError" Message="A retryable error occurred." Details=[{"code":"ReferencedResourceNotProvisioned","message":"Cannot proceed with operation because resource /subscriptions/<subscriptions_id>/resourceGroups/dcos-mbernadin-tfb701/providers/Microsoft.Compute/availabilitySets/mbernadin-tfb701-master-avset used by resource mbernadin-tfb701-int-master-elb is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is InternalOperation."}]
* azurerm_public_ip.master_public_ip[2] (destroy): 1 error(s) occurred:
2017-08-30T14:49:23.475-0700 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2017/08/30 14:49:23 [DEBUG] plugin: waiting for all plugin processes to complete...
2017-08-30T14:49:23.475-0700 [DEBUG] plugin.terraform: file-provisioner (internal) 2017/08/30 14:49:23 [DEBUG] plugin: waiting for all plugin processes to complete...
* azurerm_public_ip.master_public_ip.2: network.PublicIPAddressesClient#Delete: Failure sending request: StatusCode=0 -- Original Error: Delete https://management.azure.com/subscriptions/<subscriptions_id>/resourceGroups/dcos-mbernadin-tfb701/providers/Microsoft.Network/publicIPAddresses/mbernadin-tfb701-master-pub-ip-3?api-version=2017-03-01: read tcp 10.0.88.100:51719->157.56.31.170:443: read: operation timed out
* azurerm_lb_rule.private_load_balancer_exhibitor_http_rule (destroy): 1 error(s) occurred:
* azurerm_lb_rule.private_load_balancer_exhibitor_http_rule: Error Creating/Updating LoadBalancer network.LoadBalancersClient#CreateOrUpdate: Failure responding to request: StatusCode=429 -- Original Error: autorest/azure: Service returned an error. Status=429 Code="RetryableError" Message="A retryable error occurred." Details=[{"code":"ReferencedResourceNotProvisioned","message":"Cannot proceed with operation because resource /subscriptions/<subscriptions_id>/resourceGroups/dcos-mbernadin-tfb701/providers/Microsoft.Compute/availabilitySets/mbernadin-tfb701-master-avset used by resource mbernadin-tfb701-int-master-elb is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is InternalOperation."}]
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment