Skip to content

Instantly share code, notes, and snippets.

@rafaldutko-ig
Created April 30, 2020 10:31
Show Gist options
  • Save rafaldutko-ig/2465e7f1c382a772a05a94b7f2889cec to your computer and use it in GitHub Desktop.
Save rafaldutko-ig/2465e7f1c382a772a05a94b7f2889cec to your computer and use it in GitHub Desktop.
[XXXXXXXXXXXX@jumpbox terraform]$ ./terraform apply
data.nutanix_clusters.clusters: Refreshing state...
nutanix_subnet.next-iac-managed: Refreshing state... [id=573c5ff6-3825-4113-8860-13beefecae72]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# nutanix_subnet.next-iac-managed will be updated in-place
~ resource "nutanix_subnet" "next-iac-managed" {
api_version = "3.1"
availability_zone_reference = {}
cluster_name = "LAB-NTX-F01"
cluster_uuid = "0005853d-930a-e85f-26d6-7cd30ada5638"
dhcp_domain_name_server_list = []
dhcp_domain_search_list = []
dhcp_options = {}
dhcp_server_address = {}
dhcp_server_address_port = 0
id = "573c5ff6-3825-4113-8860-13beefecae72"
ip_config_pool_list_ranges = []
metadata = {
"creation_time" = "2020-04-29 14:19:04 +0000 UTC"
"last_update_time" = "2020-04-29 14:19:07 +0000 UTC"
"name" = ""
"spec_hash" = ""
"spec_version" = "1"
"uuid" = "573c5ff6-3825-4113-8860-13beefecae72"
}
~ name = "next-iac-managed-example" -> "next-iac-managed-kotki"
network_function_chain_reference = {}
owner_reference = {
"kind" = "user"
"name" = "XXXXXXXXXXXXXXX"
"uuid" = "bf159162-ccee-582f-a41d-e3d69997e1d3"
}
prefix_length = 0
project_reference = {}
state = "COMPLETE"
subnet_type = "VLAN"
vlan_id = 101
vswitch_name = "br0"
}
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
nutanix_subnet.next-iac-managed: Modifying... [id=573c5ff6-3825-4113-8860-13beefecae72]
Error: rpc error: code = Unavailable desc = transport is closing
panic: runtime error: invalid memory address or nil pointer dereference
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xdbe9f3]
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4:
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: goroutine 98 [running]:
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: github.com/terraform-providers/terraform-provider-nutanix/nutanix.resourceNutanixSubnetUpdate(0xc000322770, 0xe538c0, 0xc0001b65f0, 0x24, 0x1ab7c40)
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/nutanix/resource_nutanix_subnet.go:629 +0x7d3
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: github.com/terraform-providers/terraform-provider-nutanix/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc0005fa380, 0xc000658dc0, 0xc0003ef680, 0xe538c0, 0xc0001b65f0, 0xeda001, 0xc0005a3840, 0xc00068ced0)
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:292 +0x262
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: github.com/terraform-providers/terraform-provider-nutanix/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc0005faf00, 0xc0005a3a00, 0xc000658dc0, 0xc0003ef680, 0xc0003e94c8, 0xc0001d4aa0, 0xedbf00)
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:285 +0x9c
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: github.com/terraform-providers/terraform-provider-nutanix/vendor/github.com/hashicorp/terraform/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc0005c2028, 0x120c8a0, 0xc0001f9a40, 0xc0001bd980, 0xc0005c2028, 0xc0001f99b0, 0xefd440)
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/vendor/github.com/hashicorp/terraform/helper/plugin/grpc_provider.go:889 +0x97d
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: github.com/terraform-providers/terraform-provider-nutanix/vendor/github.com/hashicorp/terraform/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x1005f40, 0xc0005c2028, 0x120c8a0, 0xc0001f9a40, 0xc000658b40, 0x0, 0x0, 0x0, 0xc0006bcd00, 0x84d)
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/vendor/github.com/hashicorp/terraform/internal/tfplugin5/tfplugin5.pb.go:3217 +0x23e
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: github.com/terraform-providers/terraform-provider-nutanix/vendor/google.golang.org/grpc.(*Server).processUnaryRPC(0xc0005af800, 0x1212b00, 0xc0005da780, 0xc00054c600, 0xc0005fcb40, 0x1a8b9a0, 0x0, 0x0, 0x0)
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/vendor/google.golang.org/grpc/server.go:966 +0x4a2
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: github.com/terraform-providers/terraform-provider-nutanix/vendor/google.golang.org/grpc.(*Server).handleStream(0xc0005af800, 0x1212b00, 0xc0005da780, 0xc00054c600, 0x0)
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/vendor/google.golang.org/grpc/server.go:1245 +0xd61
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: github.com/terraform-providers/terraform-provider-nutanix/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc000034260, 0xc0005af800, 0x1212b00, 0xc0005da780, 0xc00054c600)
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/vendor/google.golang.org/grpc/server.go:685 +0x9f
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: created by github.com/terraform-providers/terraform-provider-nutanix/vendor/google.golang.org/grpc.(*Server).serveStreams.func1
2020-04-30T11:01:15.669+0100 [DEBUG] plugin.terraform-provider-nutanix_v1.0.2_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-nutanix/vendor/google.golang.org/grpc/server.go:683 +0xa1
2020-04-30T11:01:15.671+0100 [DEBUG] plugin: plugin process exited: path=/home/XXXXXXXXXX/terraform/.terraform/plugins/linux_amd64/terraform-provider-nutanix_v1.0.2_x4 pid=57142 error="exit status 2"
2020/04/30 11:01:15 [DEBUG] nutanix_subnet.next-iac-managed: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalMaybeTainted
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalWriteState
2020/04/30 11:01:15 [TRACE] EvalWriteState: recording 0 dependencies for nutanix_subnet.next-iac-managed
2020/04/30 11:01:15 [TRACE] EvalWriteState: writing current state object for nutanix_subnet.next-iac-managed
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalApplyProvisioners
2020/04/30 11:01:15 [TRACE] EvalApplyProvisioners: nutanix_subnet.next-iac-managed is not freshly-created, so no provisioning is required
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalMaybeTainted
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalWriteState
2020/04/30 11:01:15 [TRACE] EvalWriteState: recording 0 dependencies for nutanix_subnet.next-iac-managed
2020/04/30 11:01:15 [TRACE] EvalWriteState: writing current state object for nutanix_subnet.next-iac-managed
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalIf
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalIf
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalWriteDiff
2020/04/30 11:01:15 [TRACE] <root>: eval: *terraform.EvalApplyPost
2020/04/30 11:01:15 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2020/04/30 11:01:15 [ERROR] <root>: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2020/04/30 11:01:15 [TRACE] [walkApply] Exiting eval tree: nutanix_subnet.next-iac-managed
2020/04/30 11:01:15 [TRACE] vertex "nutanix_subnet.next-iac-managed": visit complete
2020/04/30 11:01:15 [TRACE] dag/walk: upstream of "provider.nutanix (close)" errored, so skipping
2020/04/30 11:01:15 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
2020/04/30 11:01:15 [TRACE] dag/walk: upstream of "root" errored, so skipping
2020/04/30 11:01:15 [TRACE] statemgr.Filesystem: creating backup snapshot at terraform.tfstate.backup
2020/04/30 11:01:15 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 11
2020/04/30 11:01:15 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate
2020/04/30 11:01:15 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2020/04/30 11:01:15 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
2020-04-30T11:01:15.675+0100 [DEBUG] plugin: plugin exited
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
SECURITY WARNING: the "crash.log" file that was created may contain
sensitive information that must be redacted before it is safe to share
on the issue tracker.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment