-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google_compute_instance_group_manager fails with stateful_external_ip and stateful_internal_ip #13735
google_compute_instance_group_manager fails with stateful_external_ip and stateful_internal_ip #13735
Comments
@amit-dube-b24 help me to understand why the failure is linked to
|
I remember seeing in the design doc that the default value for interface_name should be "nic0". If that solves your problem we should probably update the doc. |
@amit-dube-b24 using below config, it is fine with me. Can't repro your issue. Can you try? resource "google_compute_target_pool" "igm-basic" {
description = "Resource created for Terraform acceptance testing"
name = "issue13961"
session_affinity = "CLIENT_IP_PROTO"
}
resource "google_compute_instance_group_manager" "igm-basic" {
description = "Terraform test instance group manager"
name = "issue13961"
version {
instance_template = google_compute_instance_template.igm-basic.self_link
name = "prod"
}
target_pools = [google_compute_target_pool.igm-basic.self_link]
base_instance_name = "tf-test-igm-basic"
zone = "us-central1-c"
target_size = 2
stateful_disk {
device_name = "my-stateful-disk"
delete_rule = "ON_PERMANENT_INSTANCE_DELETION"
}
stateful_internal_ip {
interface_name = "nic0"
delete_rule = "ON_PERMANENT_INSTANCE_DELETION"
}
stateful_external_ip {
interface_name = "nic0"
delete_rule = "NEVER"
}
} |
I'm going to update the doc for what to put in the |
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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
│ Error: Error updating managed group instances: googleapi: Error 400: Invalid value for field 'resource.versions[0].instanceTemplate': ''. Network interface [default] does not exist in the instance template shop-template., invalid
│
│ with module.mig[0].google_compute_instance_group_manager.mig,
│ on mig/mig.tf line 1, in resource "google_compute_instance_group_manager" "mig":
│ 1: resource "google_compute_instance_group_manager" "mig" {
Panic Output
│ Error: Error updating managed group instances: googleapi: Error 400: Invalid value for field 'resource.versions[0].instanceTemplate': ''. Network interface [default] does not exist in the instance template shop-template., invalid
│
│ with module.mig[0].google_compute_instance_group_manager.mig,
│ on mig/mig.tf line 1, in resource "google_compute_instance_group_manager" "mig":
│ 1: resource "google_compute_instance_group_manager" "mig" {
Expected Behavior
Terraform should apply successfully.
Actual Behavior
│ Error: Error updating managed group instances: googleapi: Error 400: Invalid value for field 'resource.versions[0].instanceTemplate': ''. Network interface [default] does not exist in the instance template shop-template., invalid
│
│ with module.mig[0].google_compute_instance_group_manager.mig,
│ on mig/mig.tf line 1, in resource "google_compute_instance_group_manager" "mig":
│ 1: resource "google_compute_instance_group_manager" "mig" {
Steps to Reproduce
create an instance template and add reference to that instance template.
Important Factoids
References
The text was updated successfully, but these errors were encountered: