Closed ghost closed 4 years ago
Hi @bodemckenna, would you mind adding a response here (or opening a new issue) that fills out the template in https://github.com/terraform-providers/terraform-provider-google/issues/new?template=bug.md? That'll help give us the information we need in order to debug.
{
"provider": {
"google": {
"__DEFAULT__": {
"credentials": "XXXX",
"project": "XXXXX",
"region": "europe-west3"
}
}
},
"resource": {
"google_compute_firewall": {
"firewall-rule0": {
"allow": {
"protocol": "all"
},
"depends_on": [
"google_compute_network.mgmt-vpc"
],
"direction": "INGRESS",
"name": "firewall-rule0",
"network": "mgmt-vpc",
"source_ranges": [
"0.0.0.0/0"
]
}
},
"google_compute_instance": {
"europe-west3-pan-vm0": {
"boot_disk": {
"initialize_params": {
"image": "https://www.googleapis.com/compute/v1/projects/paloaltonetworksgcp-public/global/images/vmseries-byol-810"
}
},
"depends_on": [
"google_compute_subnetwork.mgmt-asia-southeast1",
"google_compute_subnetwork.mgmt-us-east4"
],
"machine_type": "n1-standard-4",
"metadata": {
"mgmt-interface-swap": "enable"
},
"min_cpu_platform": "",
"name": "europe-west3-pan-vm0",
"network_interface": [
{
"access_config": {},
"subnetwork": "europe-west3"
},
{
"access_config": {},
"subnetwork": "mgmt-europe-west3"
},
{
"subnetwork": "zone2-europe-west3"
},
{
"subnetwork": "zone4-europe-west3"
}
],
"zone": "europe-west3-c"
}
},
"google_compute_network": {
"pub-vpc": {
"auto_create_subnetworks": "false",
"description": "",
"name": "pub-vpc",
"routing_mode": ""
},
"mgmt-vpc": {
"auto_create_subnetworks": "false",
"description": "",
"name": "mgmt-vpc",
"routing_mode": ""
},
"zone2-vpc": {
"auto_create_subnetworks": "false",
"description": "",
"name": "zone2-vpc",
"routing_mode": ""
},
"zone4-vpc": {
"auto_create_subnetworks": "false",
"description": "",
"name": "zone4-vpc",
"routing_mode": ""
}
},
"google_compute_subnetwork": {
"pub-asia-southeast1": {
"depends_on": [
"google_compute_network.pub-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "pub-asia-southeast1",
"network": "pub-vpc",
"private_ip_google_access": "",
"project": "",
"region": "asia-southeast1"
},
"europe-west3": {
"depends_on": [
"google_compute_network.pub-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "europe-west3",
"network": "pub-vpc",
"private_ip_google_access": "",
"project": "",
"region": "europe-west3"
},
"pub-us-east4": {
"depends_on": [
"google_compute_network.pub-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "pub-us-east4",
"network": "pub-vpc",
"private_ip_google_access": "",
"project": "",
"region": "us-east4"
},
"mgmt-asia-southeast1": {
"depends_on": [
"google_compute_network.mgmt-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "mgmt-asia-southeast1",
"network": "mgmt-vpc",
"private_ip_google_access": "",
"project": "",
"region": "asia-southeast1"
},
"mgmt-europe-west3": {
"depends_on": [
"google_compute_network.mgmt-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "mgmt-europe-west3",
"network": "mgmt-vpc",
"private_ip_google_access": "",
"project": "",
"region": "europe-west3"
},
"mgmt-us-east4": {
"depends_on": [
"google_compute_network.mgmt-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "mgmt-us-east4",
"network": "mgmt-vpc",
"private_ip_google_access": "",
"project": "",
"region": "us-east4"
},
"zone2-asia-southeast1": {
"depends_on": [
"google_compute_network.zone2-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "zone2-asia-southeast1",
"network": "zone2-vpc",
"private_ip_google_access": "",
"project": "",
"region": "us-east4"
},
"zone2-europe-west3": {
"depends_on": [
"google_compute_network.zone2-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "zone2-europe-west3",
"network": "zone2-vpc",
"private_ip_google_access": "",
"project": "",
"region": "europe-west3"
},
"zone2-us-east4": {
"depends_on": [
"google_compute_network.zone2-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "zone2-us-east4",
"network": "zone2-vpc",
"private_ip_google_access": "",
"project": "",
"region": "us-east4"
},
"zone4-asia-southeast1": {
"depends_on": [
"google_compute_network.zone4-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "XX",
"name": "zone4-asia-southeast1",
"network": "zone4-vpc",
"private_ip_google_access": "",
"project": "",
"region": "asia-southeast1"
},
"zone4-europe-west3": {
"depends_on": [
"google_compute_network.zone4-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "xx",
"name": "zone4-europe-west3",
"network": "zone4-vpc",
"private_ip_google_access": "",
"project": "",
"region": "europe-west3"
},
"zone4-us-east4": {
"depends_on": [
"google_compute_network.zone4-vpc"
],
"description": "",
"enable_flow_logs": "",
"ip_cidr_range": "xxxx",
"name": "zone4-us-east4",
"network": "zone4-vpc",
"private_ip_google_access": "",
"project": "",
"region": "us-east4"
}
}
}
I hope this helps. Let me know if you need anything else.
@bodemckenna Can you repro the issue again? If yes, could you please attach the full debug log, and the plan? The versions of your terraform and provider are pretty old. Can you upgrade them and try again to see if you can repro the issue?
@bodemckenna I am closing this issue. Please feel free to reopen it if you still see an issue about it. Thanks
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error π€ π , please reach out to my human friends π hashibot-feedback@hashicorp.com. Thanks!
This issue was originally opened by @bodemckenna as hashicorp/terraform#21362. It was migrated here as a result of the provider split. The original body of the issue is below.
When trying to destroy a Palo Alto instance I get the following error. It appears that the instance is taking a longer than expect time to remove. What is the expect time to remove an instance?
When trying to remove the subnet from the VPC it fails because the instance resource hasn't fully been deleted.
2 error(s) occurred:
google_compute_subnetwork.tdc-zone4-europe-west3 (destroy): 1 error(s) occurred:
google_compute_subnetwork.tdc-zone4-europe-west3: Error reading Subnetwork: googleapi: Error 400: The subnetwork resource 'projects/sap-mce-devnetops-test-jenkins/regions/europe-west3/subnetworks/tdc-zone4-europe-west3' is already being used by 'projects/sap-mce-devnetops-test-jenkins/zones/europe-west3-c/instances/tdc-frontdoor-europe-west3-pan-vm0', resourceInUseByAnotherResource
google_compute_subnetwork.tdc-zone2-europe-west3 (destroy): 1 error(s) occurred:
google_compute_subnetwork.tdc-zone2-europe-west3: Error reading Subnetwork: googleapi: Error 400: The subnetwork resource 'projects/sap-mce-devnetops-test-jenkins/regions/europe-west3/subnetworks/tdc-zone2-europe-west3' is already being used by 'projects/sap-mce-devnetops-test-jenkins/zones/europe-west3-c/instances/tdc-frontdoor-europe-west3-pan-vm0', resourceInUseByAnotherResource
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.[0m