有人可以帮我解决这个问题。我正在通过 terraform 使用声明式入职部署一组 F5 负载均衡器。我已经部署了负载均衡器,没有任何问题。但是突然间,当我尝试运行 terraform plan 或应用它时,它在许可模块的状态更新期间开始崩溃。以下是错误,
错误:插件没有响应││使用 bigip_common_license_manage_bigiq.license_do_lbr01,│在 main.tf 第 38 行,资源“bigip_common_license_manage_bigiq”“license_do_lbr01”:│38:资源“bigip_common_license_manage_bigiq”“license_do_lbr01”{││插件遇到错误,未能响应插件。(*GRPCProvider).ReadResource 调用。插件日志可能包含更多详细信息。╵ ╷ │ 错误:插件没有响应 │ │ 使用 bigip_common_license_manage_bigiq.license_do_lbr02,│ 在 main.tf 第 48 行,资源“bigip_common_license_manage_bigiq” “license_do_lbr02”: │ 48:资源“bigip_common_license_manage_bigiq” │ 插件遇到an错误,无法响应插件。(*GRPCProvider)。读取资源调用。插件日志可能包含更多详细信息。
这是之前按预期工作的许可模块,
'resource "bigip_common_license_manage_bigiq" "license_do_lbr01" {
bigiq_address = var.bigiq_hostname
bigiq_user = var.bigiq_username
bigiq_password = var.bigiq_password
license_poolname = "GLOBAL-EVAL"
assignment_type = "MANAGED"
provider = bigip.lbr01
depends_on = [null_resource.bigip_adding_do_lbr01]
}'
这是显示的错误日志,
Stack trace from the terraform-provider-bigip_v1.12.1 plugin:
panic: interface conversion: interface {} is nil, not string
goroutine 41 [running]:
github.com/f5devcentral/go-bigip.(*BigIP).GetLicenseStatus(0xc000358a10, 0xc0000381e0, 0x24, 0xc000038300, 0x24, 0x0)
github.com/f5devcentral/go-bigip@v0.0.0-20211208144806-c9b2472e4619/bigiq.go:158 +0x3f9
github.com/F5Networks/terraform-provider-bigip/bigip.resourceBigiqLicenseManageRead(0xc000358690, 0x1025100, 0xc0003580e0, 0xc000358690, 0x0)
github.com/F5Networks/terraform-provider-bigip/bigip/resource_bigiq_regkey_license_manage.go:268 +0x465
github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0005ee400, 0xc00033e640, 0x1025100, 0xc0003580e0, 0xc0000a42b0, 0x0, 0x0) github.com/hashicorp/terraform-plugin-sdk@v1.1.0/helper/schema/resource.go:455 +0x12e
github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ReadResource(0xc00012aa18, 0x11b8c30, 0xc0004ee6f0, 0xc00033e460, 0xc00012aa18, 0xc0004ee6f0, 0xc00064ca50)
github.com/hashicorp/terraform-plugin-sdk@v1.1.0/internal/helper/plugin/grpc_provider.go:525 +0x3dd
github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ReadResource_Handler(0xfe3f80, 0xc00012aa18, 0x11b8c30, 0xc0004ee6f0, 0xc00012c840, 0x0, 0x11b8c30, 0xc0004ee6f0, 0xc0006e8000, 0x17d)
github.com/hashicorp/terraform-plugin-sdk@v1.1.0/internal/tfplugin5/tfplugin5.pb.go:3153 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00015e160, 0x11c13d8, 0xc00012f980, 0xc0004b1500, 0xc00009c540, 0x171dc70, 0x0, 0x0, 0x0)
google.golang.org/grpc@v1.23.0/server.go:995 +0x482
google.golang.org/grpc.(*Server).handleStream(0xc00015e160, 0x11c13d8, 0xc00012f980, 0xc0004b1500, 0x0)
google.golang.org/grpc@v1.23.0/server.go:1275 +0xd2c
google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc0003fc240, 0xc00015e160, 0x11c13d8, 0xc00012f980, 0xc0004b1500)
google.golang.org/grpc@v1.23.0/server.go:710 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.23.0/server.go:708 +0xa5
panic: interface conversion: interface {} is nil, not string
goroutine 41 [running]:
github.com/f5devcentral/go-bigip.(*BigIP).GetLicenseStatus(0xc0005928c0, 0xc0000a4180, 0x24, 0xc0001f48a0, 0x24, 0x0)
github.com/f5devcentral/go-bigip@v0.0.0-20211208144806-c9b2472e4619/bigiq.go:158 +0x3f9
github.com/F5Networks/terraform-provider-bigip/bigip.resourceBigiqLicenseManageRead(0xc000592540, 0x1025100, 0xc00063c150, 0xc000592540, 0x0)
github.com/F5Networks/terraform-provider-bigip/bigip/resource_bigiq_regkey_license_manage.go:268 +0x465
github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc000504400, 0xc0005823c0, 0x1025100, 0xc00063c150, 0xc0000ac2b8, 0x0, 0x0) github.com/hashicorp/terraform-plugin-sdk@v1.1.0/helper/schema/resource.go:455 +0x12e
github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ReadResource(0xc0004881c8, 0x11b8c30, 0xc0001ea810, 0xc0005821e0, 0xc0004881c8, 0xc0001ea810, 0xc000561a50)
github.com/hashicorp/terraform-plugin-sdk@v1.1.0/internal/helper/plugin/grpc_provider.go:525 +0x3dd
github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ReadResource_Handler(0xfe3f80, 0xc0004881c8, 0x11b8c30, 0xc0001ea810, 0xc000400b40, 0x0, 0x11b8c30, 0xc0001ea810, 0xc0000e8480, 0x17d)
github.com/hashicorp/terraform-plugin-sdk@v1.1.0/internal/tfplugin5/tfplugin5.pb.go:3153 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000142160, 0x11c13d8, 0xc000001e00, 0xc0000b0200, 0xc0003bf110, 0x171dc70, 0x0, 0x0, 0x0)
google.golang.org/grpc@v1.23.0/server.go:995 +0x482
google.golang.org/grpc.(*Server).handleStream(0xc000142160, 0x11c13d8, 0xc000001e00, 0xc0000b0200, 0x0)
google.golang.org/grpc@v1.23.0/server.go:1275 +0xd2c
google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc0003ce1e0, 0xc000142160, 0x11c13d8, 0xc000001e00, 0xc0000b0200)
google.golang.org/grpc@v1.23.0/server.go:710 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.23.0/server.go:708 +0xa5
Error: The terraform-provider-bigip_v1.12.1 plugin crashed!
这始终表明插件中存在错误。如果您可以与插件的维护人员报告崩溃以便修复它,那将非常有帮助。上面的输出应该有助于诊断问题。
有人可以帮我解决这个问题吗?