You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Client Error
│
│ with module.microk8s.juju_application.microk8s-control,
│ on ../../modules/microk8s-cluster/main.tf line 3, in resource "juju_application" "microk8s-control":
│ 3: resource "juju_application" "microk8s-control" {
│
│ Unable to create application, got error: model "controller" not found
The provided "model" on the resource block is correct and it's not "controller".
Downgrading juju provider version is the current workaround.
2024-01-03T19:16:15.489Z [INFO] Terraform version: 1.5.7
2024-01-03T19:16:15.489Z [DEBUG] using github.com/hashicorp/go-tfe v1.26.0
2024-01-03T19:16:15.489Z [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2024-01-03T19:16:15.489Z [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2024-01-03T19:16:15.489Z [DEBUG] using github.com/zclconf/go-cty v1.12.2
2024-01-03T19:16:15.489Z [INFO] Go runtime version: go1.21.0
2024-01-03T19:16:15.489Z [INFO] CLI args: []string{"/snap/terraform/547/terraform", "init"}
2024-01-03T19:16:15.490Z [DEBUG] Attempting to open CLI config file: /home/stg-is-testing-microk8s-aas/.terraformrc
2024-01-03T19:16:15.490Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-01-03T19:16:15.490Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-01-03T19:16:15.490Z [DEBUG] ignoring non-existing provider search directory /home/stg-is-testing-microk8s-aas/.terraform.d/plugins
2024-01-03T19:16:15.490Z [DEBUG] ignoring non-existing provider search directory /home/stg-is-testing-microk8s-aas/.local/share/terraform/plugins
2024-01-03T19:16:15.490Z [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2024-01-03T19:16:15.490Z [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2024-01-03T19:16:15.490Z [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2024-01-03T19:16:15.490Z [INFO] CLI command args: []string{"init"}
2024-01-03T19:16:15.491Z [DEBUG] New state was assigned lineage "418470d6-c40b-1e38-20c0-70d5c3e6c595"
2024-01-03T19:16:15.541Z [DEBUG] checking forprovisionerin"."
2024-01-03T19:16:15.541Z [DEBUG] checking forprovisionerin"/snap/terraform/547"
2024-01-03T19:16:15.542Z [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2024-01-03T19:16:15.637Z [DEBUG] GET https://registry.terraform.io/v1/providers/juju/juju/versions
2024-01-03T19:16:22.676Z [INFO] Terraform version: 1.5.7
2024-01-03T19:16:22.676Z [DEBUG] using github.com/hashicorp/go-tfe v1.26.0
2024-01-03T19:16:22.676Z [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2024-01-03T19:16:22.676Z [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2024-01-03T19:16:22.676Z [DEBUG] using github.com/zclconf/go-cty v1.12.2
2024-01-03T19:16:22.676Z [INFO] Go runtime version: go1.21.0
2024-01-03T19:16:22.676Z [INFO] CLI args: []string{"/snap/terraform/547/terraform", "apply", "-auto-approve"}
2024-01-03T19:16:22.676Z [DEBUG] Attempting to open CLI config file: /home/stg-is-testing-microk8s-aas/.terraformrc
2024-01-03T19:16:22.676Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-01-03T19:16:22.676Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-01-03T19:16:22.676Z [DEBUG] ignoring non-existing provider search directory /home/stg-is-testing-microk8s-aas/.terraform.d/plugins
2024-01-03T19:16:22.676Z [DEBUG] ignoring non-existing provider search directory /home/stg-is-testing-microk8s-aas/.local/share/terraform/plugins
2024-01-03T19:16:22.676Z [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2024-01-03T19:16:22.676Z [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2024-01-03T19:16:22.676Z [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2024-01-03T19:16:22.676Z [INFO] CLI command args: []string{"apply", "-auto-approve"}
2024-01-03T19:16:22.677Z [DEBUG] New state was assigned lineage "c6771e20-9bba-cbdf-be67-4dfd7ce1d311"
2024-01-03T19:16:22.726Z [DEBUG] checking forprovisionerin"."
2024-01-03T19:16:22.726Z [DEBUG] checking forprovisionerin"/snap/terraform/547"
2024-01-03T19:16:22.727Z [INFO] backend/local: starting Apply operation
2024-01-03T19:16:22.728Z [DEBUG] created provider logger: level=debug
2024-01-03T19:16:22.728Z [INFO] provider: configuring client automatic mTLS
2024-01-03T19:16:22.743Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 args=[.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0]
2024-01-03T19:16:22.744Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 pid=1001075
2024-01-03T19:16:22.744Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0
2024-01-03T19:16:22.770Z [INFO] provider.terraform-provider-juju_v0.10.0: configuring server automatic mTLS: timestamp=2024-01-03T19:16:22.770Z
2024-01-03T19:16:22.794Z [DEBUG] provider: using plugin: version=6
2024-01-03T19:16:22.794Z [DEBUG] provider.terraform-provider-juju_v0.10.0: plugin address: address=/tmp/plugin824382869 network=unix timestamp=2024-01-03T19:16:22.794Z
2024-01-03T19:16:22.815Z [DEBUG] No provider meta schema returned
2024-01-03T19:16:22.818Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-01-03T19:16:22.821Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 pid=1001075
2024-01-03T19:16:22.821Z [DEBUG] provider: plugin exited
2024-01-03T19:16:22.821Z [DEBUG] Building and walking validate graph
2024-01-03T19:16:22.821Z [DEBUG] ProviderTransformer: "juju_application.microk8s-control" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:22.821Z [DEBUG] ProviderTransformer: "juju_application.microk8s-worker" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:22.821Z [DEBUG] ProviderTransformer: "juju_integration.microk8s_control_worker" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:22.822Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/juju/juju\"]" references: []
2024-01-03T19:16:22.822Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-worker" references: []
2024-01-03T19:16:22.822Z [DEBUG] ReferenceTransformer: "juju_integration.microk8s_control_worker" references: [juju_application.microk8s-control juju_application.microk8s-worker]
2024-01-03T19:16:22.822Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-control" references: []
2024-01-03T19:16:22.822Z [DEBUG] Starting graph walk: walkValidate
2024-01-03T19:16:22.823Z [DEBUG] created provider logger: level=debug
2024-01-03T19:16:22.823Z [INFO] provider: configuring client automatic mTLS
2024-01-03T19:16:22.828Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 args=[.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0]
2024-01-03T19:16:22.829Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 pid=1001087
2024-01-03T19:16:22.829Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0
2024-01-03T19:16:22.855Z [INFO] provider.terraform-provider-juju_v0.10.0: configuring server automatic mTLS: timestamp=2024-01-03T19:16:22.855Z
2024-01-03T19:16:22.886Z [DEBUG] provider.terraform-provider-juju_v0.10.0: plugin address: address=/tmp/plugin2734485452 network=unix timestamp=2024-01-03T19:16:22.886Z
2024-01-03T19:16:22.886Z [DEBUG] provider: using plugin: version=6
2024-01-03T19:16:22.902Z [DEBUG] No provider meta schema returned
2024-01-03T19:16:22.909Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-01-03T19:16:22.912Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 pid=1001087
2024-01-03T19:16:22.912Z [DEBUG] provider: plugin exited
2024-01-03T19:16:22.912Z [INFO] backend/local: apply calling Plan
2024-01-03T19:16:22.912Z [DEBUG] Building and walking plan graph for NormalMode
2024-01-03T19:16:22.912Z [DEBUG] ProviderTransformer: "juju_application.microk8s-control (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:22.912Z [DEBUG] ProviderTransformer: "juju_application.microk8s-worker (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:22.912Z [DEBUG] ProviderTransformer: "juju_integration.microk8s_control_worker (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:22.913Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/juju/juju\"]" references: []
2024-01-03T19:16:22.913Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-control (expand)" references: []
2024-01-03T19:16:22.913Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-worker (expand)" references: []
2024-01-03T19:16:22.913Z [DEBUG] ReferenceTransformer: "juju_integration.microk8s_control_worker (expand)" references: [juju_application.microk8s-control (expand) juju_application.microk8s-worker (expand)]
2024-01-03T19:16:22.913Z [DEBUG] Starting graph walk: walkPlan
2024-01-03T19:16:22.913Z [DEBUG] created provider logger: level=debug
2024-01-03T19:16:22.913Z [INFO] provider: configuring client automatic mTLS
2024-01-03T19:16:22.919Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 args=[.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0]
2024-01-03T19:16:22.919Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 pid=1001099
2024-01-03T19:16:22.919Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0
2024-01-03T19:16:22.946Z [INFO] provider.terraform-provider-juju_v0.10.0: configuring server automatic mTLS: timestamp=2024-01-03T19:16:22.946Z
2024-01-03T19:16:22.972Z [DEBUG] provider: using plugin: version=6
2024-01-03T19:16:22.972Z [DEBUG] provider.terraform-provider-juju_v0.10.0: plugin address: network=unix address=/tmp/plugin387395883 timestamp=2024-01-03T19:16:22.972Z
2024-01-03T19:16:22.991Z [DEBUG] No provider meta schema returned
2024-01-03T19:16:23.660Z [DEBUG] Resource instance state not found for node "juju_application.microk8s-worker", instance juju_application.microk8s-worker
2024-01-03T19:16:23.660Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-worker" references: []
2024-01-03T19:16:23.660Z [DEBUG] Resource instance state not found for node "juju_application.microk8s-control", instance juju_application.microk8s-control
2024-01-03T19:16:23.660Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-control" references: []
2024-01-03T19:16:23.660Z [DEBUG] refresh: juju_application.microk8s-control: no state, so not refreshing
2024-01-03T19:16:23.660Z [DEBUG] refresh: juju_application.microk8s-worker: no state, so not refreshing
2024-01-03T19:16:23.670Z [DEBUG] provider.terraform-provider-juju_v0.10.0: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: tf_resource_type=juju_application tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:195 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=0dfbda36-f69c-2451-9900-5f6bf9c5dcce timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.670Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=0dfbda36-f69c-2451-9900-5f6bf9c5dcce @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_attribute_path=AttributeName("placement") tf_resource_type=juju_application tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.670Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=0dfbda36-f69c-2451-9900-5f6bf9c5dcce tf_resource_type=juju_application @module=sdk.framework tf_attribute_path=AttributeName("principal") tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.670Z [DEBUG] provider.terraform-provider-juju_v0.10.0: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: tf_req_id=3e264874-6b50-f4c4-3dbc-d8f3748556cc tf_resource_type=juju_application tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:195 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.671Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_req_id=3e264874-6b50-f4c4-3dbc-d8f3748556cc tf_resource_type=juju_application @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_attribute_path=AttributeName("id") tf_provider_addr=registry.terraform.io/juju/juju tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.671Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_resource_type=juju_application @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_attribute_path=AttributeName("placement") tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=3e264874-6b50-f4c4-3dbc-d8f3748556cc tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.671Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("principal") tf_req_id=3e264874-6b50-f4c4-3dbc-d8f3748556cc tf_resource_type=juju_application @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_provider_addr=registry.terraform.io/juju/juju tf_rpc=PlanResourceChange @module=sdk.framework timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.671Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/juju/juju tf_attribute_path=AttributeName("constraints") @module=sdk.framework tf_req_id=3e264874-6b50-f4c4-3dbc-d8f3748556cc tf_resource_type=juju_application tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.671Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_provider_addr=registry.terraform.io/juju/juju tf_rpc=PlanResourceChange @module=sdk.framework tf_attribute_path=AttributeName("charm").ElementKeyInt(0).AttributeName("base") tf_req_id=3e264874-6b50-f4c4-3dbc-d8f3748556cc tf_resource_type=juju_application timestamp=2024-01-03T19:16:23.670Z
2024-01-03T19:16:23.671Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_resource_type=juju_application tf_attribute_path=AttributeName("charm").ElementKeyInt(0).AttributeName("series") tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=3e264874-6b50-f4c4-3dbc-d8f3748556cc tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:23.671Z
2024-01-03T19:16:23.674Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path=AttributeName("charm").ElementKeyInt(0).AttributeName("series") tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=0dfbda36-f69c-2451-9900-5f6bf9c5dcce tf_resource_type=juju_application timestamp=2024-01-03T19:16:23.674Z
2024-01-03T19:16:23.674Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=0dfbda36-f69c-2451-9900-5f6bf9c5dcce tf_resource_type=juju_application @module=sdk.framework tf_attribute_path=AttributeName("charm").ElementKeyInt(0).AttributeName("base") tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:23.674Z
2024-01-03T19:16:23.674Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("id") tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=0dfbda36-f69c-2451-9900-5f6bf9c5dcce tf_resource_type=juju_application @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:23.674Z
2024-01-03T19:16:23.675Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("constraints") tf_resource_type=juju_application @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=0dfbda36-f69c-2451-9900-5f6bf9c5dcce tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 timestamp=2024-01-03T19:16:23.674Z
2024-01-03T19:16:23.678Z [DEBUG] Resource instance state not found for node "juju_integration.microk8s_control_worker", instance juju_integration.microk8s_control_worker
2024-01-03T19:16:23.678Z [DEBUG] ReferenceTransformer: "juju_integration.microk8s_control_worker" references: []
2024-01-03T19:16:23.678Z [DEBUG] refresh: juju_integration.microk8s_control_worker: no state, so not refreshing
2024-01-03T19:16:23.682Z [DEBUG] provider.terraform-provider-juju_v0.10.0: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: @module=sdk.framework tf_req_id=92fb8fe5-5aa7-1b0f-458f-e693223ff062 tf_resource_type=juju_integration @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:195 tf_provider_addr=registry.terraform.io/juju/juju tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:23.682Z
2024-01-03T19:16:23.683Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=92fb8fe5-5aa7-1b0f-458f-e693223ff062 tf_resource_type=juju_integration tf_rpc=PlanResourceChange tf_attribute_path=AttributeName("id") timestamp=2024-01-03T19:16:23.683Z
2024-01-03T19:16:23.685Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-01-03T19:16:23.687Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 pid=1001099
2024-01-03T19:16:23.688Z [DEBUG] provider: plugin exited
2024-01-03T19:16:23.688Z [DEBUG] building apply graph to check for errors
2024-01-03T19:16:23.688Z [DEBUG] Resource state not found for node "juju_application.microk8s-control", instance juju_application.microk8s-control
2024-01-03T19:16:23.688Z [DEBUG] Resource state not found for node "juju_application.microk8s-worker", instance juju_application.microk8s-worker
2024-01-03T19:16:23.688Z [DEBUG] Resource state not found for node "juju_integration.microk8s_control_worker", instance juju_integration.microk8s_control_worker
2024-01-03T19:16:23.688Z [DEBUG] ProviderTransformer: "juju_application.microk8s-worker" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.688Z [DEBUG] ProviderTransformer: "juju_integration.microk8s_control_worker" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.688Z [DEBUG] ProviderTransformer: "juju_application.microk8s-control (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.688Z [DEBUG] ProviderTransformer: "juju_application.microk8s-worker (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.688Z [DEBUG] ProviderTransformer: "juju_integration.microk8s_control_worker (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.688Z [DEBUG] ProviderTransformer: "juju_application.microk8s-control" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.689Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/juju/juju\"]" references: []
2024-01-03T19:16:23.689Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-control (expand)" references: []
2024-01-03T19:16:23.689Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-worker (expand)" references: []
2024-01-03T19:16:23.689Z [DEBUG] ReferenceTransformer: "juju_integration.microk8s_control_worker (expand)" references: []
2024-01-03T19:16:23.689Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-control" references: []
2024-01-03T19:16:23.689Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-worker" references: []
2024-01-03T19:16:23.689Z [DEBUG] ReferenceTransformer: "juju_integration.microk8s_control_worker" references: [juju_application.microk8s-control (expand) juju_application.microk8s-control juju_application.microk8s-control juju_application.microk8s-worker (expand) juju_application.microk8s-worker juju_application.microk8s-worker]
2024-01-03T19:16:23.690Z [INFO] backend/local: apply calling Apply
2024-01-03T19:16:23.690Z [DEBUG] Building and walking apply graph for NormalMode plan
2024-01-03T19:16:23.691Z [DEBUG] Resource state not found for node "juju_application.microk8s-control", instance juju_application.microk8s-control
2024-01-03T19:16:23.691Z [DEBUG] Resource state not found for node "juju_application.microk8s-worker", instance juju_application.microk8s-worker
2024-01-03T19:16:23.691Z [DEBUG] Resource state not found for node "juju_integration.microk8s_control_worker", instance juju_integration.microk8s_control_worker
2024-01-03T19:16:23.691Z [DEBUG] ProviderTransformer: "juju_integration.microk8s_control_worker (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.691Z [DEBUG] ProviderTransformer: "juju_application.microk8s-control" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.691Z [DEBUG] ProviderTransformer: "juju_application.microk8s-worker" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.691Z [DEBUG] ProviderTransformer: "juju_integration.microk8s_control_worker" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.691Z [DEBUG] ProviderTransformer: "juju_application.microk8s-control (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.691Z [DEBUG] ProviderTransformer: "juju_application.microk8s-worker (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/juju/juju"]
2024-01-03T19:16:23.691Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-control (expand)" references: []
2024-01-03T19:16:23.691Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-worker (expand)" references: []
2024-01-03T19:16:23.691Z [DEBUG] ReferenceTransformer: "juju_integration.microk8s_control_worker (expand)" references: []
2024-01-03T19:16:23.691Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-control" references: []
2024-01-03T19:16:23.691Z [DEBUG] ReferenceTransformer: "juju_application.microk8s-worker" references: []
2024-01-03T19:16:23.691Z [DEBUG] ReferenceTransformer: "juju_integration.microk8s_control_worker" references: [juju_application.microk8s-control (expand) juju_application.microk8s-control juju_application.microk8s-control juju_application.microk8s-worker (expand) juju_application.microk8s-worker juju_application.microk8s-worker]
2024-01-03T19:16:23.691Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/juju/juju\"]" references: []
2024-01-03T19:16:23.692Z [DEBUG] Starting graph walk: walkApply
2024-01-03T19:16:23.692Z [DEBUG] created provider logger: level=debug
2024-01-03T19:16:23.692Z [INFO] provider: configuring client automatic mTLS
2024-01-03T19:16:23.697Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 args=[.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0]
2024-01-03T19:16:23.698Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 pid=1001152
2024-01-03T19:16:23.698Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0
2024-01-03T19:16:23.725Z [INFO] provider.terraform-provider-juju_v0.10.0: configuring server automatic mTLS: timestamp=2024-01-03T19:16:23.725Z
2024-01-03T19:16:23.751Z [DEBUG] provider: using plugin: version=6
2024-01-03T19:16:23.751Z [DEBUG] provider.terraform-provider-juju_v0.10.0: plugin address: address=/tmp/plugin1493598103 network=unix timestamp=2024-01-03T19:16:23.751Z
2024-01-03T19:16:23.768Z [DEBUG] No provider meta schema returned
2024-01-03T19:16:24.359Z [DEBUG] provider.terraform-provider-juju_v0.10.0: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=53741fe2-d659-5702-fb50-00de8e1aa3c7 @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:195 tf_resource_type=juju_application tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:24.359Z
2024-01-03T19:16:24.359Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=53741fe2-d659-5702-fb50-00de8e1aa3c7 tf_resource_type=juju_application @module=sdk.framework tf_attribute_path=AttributeName("charm").ElementKeyInt(0).AttributeName("base") tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:24.359Z
2024-01-03T19:16:24.359Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("charm").ElementKeyInt(0).AttributeName("series") tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=53741fe2-d659-5702-fb50-00de8e1aa3c7 tf_resource_type=juju_application timestamp=2024-01-03T19:16:24.359Z
2024-01-03T19:16:24.359Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path=AttributeName("id") tf_req_id=53741fe2-d659-5702-fb50-00de8e1aa3c7 tf_resource_type=juju_application tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_provider_addr=registry.terraform.io/juju/juju timestamp=2024-01-03T19:16:24.359Z
2024-01-03T19:16:24.360Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("constraints") tf_resource_type=juju_application tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=53741fe2-d659-5702-fb50-00de8e1aa3c7 timestamp=2024-01-03T19:16:24.360Z
2024-01-03T19:16:24.360Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_req_id=53741fe2-d659-5702-fb50-00de8e1aa3c7 tf_resource_type=juju_application tf_rpc=PlanResourceChange tf_attribute_path=AttributeName("placement") tf_provider_addr=registry.terraform.io/juju/juju timestamp=2024-01-03T19:16:24.360Z
2024-01-03T19:16:24.360Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_resource_type=juju_application tf_rpc=PlanResourceChange tf_attribute_path=AttributeName("principal") tf_req_id=53741fe2-d659-5702-fb50-00de8e1aa3c7 timestamp=2024-01-03T19:16:24.360Z
2024-01-03T19:16:24.360Z [DEBUG] provider.terraform-provider-juju_v0.10.0: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: tf_rpc=PlanResourceChange tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=151efff3-9b62-32e3-8f3b-4df8470d4957 tf_resource_type=juju_application @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:195 @module=sdk.framework timestamp=2024-01-03T19:16:24.360Z
2024-01-03T19:16:24.360Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=151efff3-9b62-32e3-8f3b-4df8470d4957 tf_rpc=PlanResourceChange tf_attribute_path=AttributeName("principal") tf_resource_type=juju_application timestamp=2024-01-03T19:16:24.360Z
2024-01-03T19:16:24.360Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("charm").ElementKeyInt(0).AttributeName("series") tf_req_id=151efff3-9b62-32e3-8f3b-4df8470d4957 tf_resource_type=juju_application @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_rpc=PlanResourceChange timestamp=2024-01-03T19:16:24.360Z
2024-01-03T19:16:24.360Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_req_id=151efff3-9b62-32e3-8f3b-4df8470d4957 tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_attribute_path=AttributeName("charm").ElementKeyInt(0).AttributeName("base") tf_provider_addr=registry.terraform.io/juju/juju tf_resource_type=juju_application timestamp=2024-01-03T19:16:24.360Z
2024-01-03T19:16:24.361Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("placement") tf_req_id=151efff3-9b62-32e3-8f3b-4df8470d4957 @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_resource_type=juju_application tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 timestamp=2024-01-03T19:16:24.361Z
2024-01-03T19:16:24.361Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: tf_resource_type=juju_application @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 @module=sdk.framework tf_attribute_path=AttributeName("constraints") tf_provider_addr=registry.terraform.io/juju/juju tf_rpc=PlanResourceChange tf_req_id=151efff3-9b62-32e3-8f3b-4df8470d4957 timestamp=2024-01-03T19:16:24.361Z
2024-01-03T19:16:24.361Z [DEBUG] provider.terraform-provider-juju_v0.10.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_provider_addr=registry.terraform.io/juju/juju tf_resource_type=juju_application tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:399 tf_attribute_path=AttributeName("id") tf_req_id=151efff3-9b62-32e3-8f3b-4df8470d4957 timestamp=2024-01-03T19:16:24.361Z
2024-01-03T19:16:24.366Z [INFO] Starting apply for juju_application.microk8s-worker
2024-01-03T19:16:24.367Z [DEBUG] juju_application.microk8s-worker: applying the planned Create change
2024-01-03T19:16:24.367Z [INFO] Starting apply for juju_application.microk8s-control
2024-01-03T19:16:24.367Z [DEBUG] juju_application.microk8s-control: applying the planned Create change
2024-01-03T19:16:27.369Z [ERROR] provider.terraform-provider-juju_v0.10.0: Response contains error diagnostic: diagnostic_severity=ERROR tf_req_id=98d62196-f8bb-7f1f-9b3d-5cc2475c9188 tf_rpc=ApplyResourceChange diagnostic_detail="Unable to create application, got error: model "controller" not found" diagnostic_summary="Client Error" tf_provider_addr=registry.terraform.io/juju/juju @caller=github.com/hashicorp/[email protected]/tfprotov6/internal/diag/diagnostics.go:58 tf_proto_version=6.3 tf_resource_type=juju_application @module=sdk.proto timestamp=2024-01-03T19:16:27.369Z
2024-01-03T19:16:27.439Z [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2024-01-03T19:16:27.439Z [ERROR] vertex "juju_application.microk8s-worker" error: Client Error
2024-01-03T19:16:28.081Z [ERROR] provider.terraform-provider-juju_v0.10.0: Response contains error diagnostic: @caller=github.com/hashicorp/[email protected]/tfprotov6/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_detail="Unable to create application, got error: model "controller" not found" tf_proto_version=6.3 tf_provider_addr=registry.terraform.io/juju/juju tf_req_id=6121e4bc-5e26-ff71-891b-cc14e9694ce9 diagnostic_severity=ERROR diagnostic_summary="Client Error" tf_resource_type=juju_application tf_rpc=ApplyResourceChange timestamp=2024-01-03T19:16:28.081Z
2024-01-03T19:16:28.087Z [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2024-01-03T19:16:28.087Z [ERROR] vertex "juju_application.microk8s-control" error: Client Error
2024-01-03T19:16:28.097Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-01-03T19:16:28.100Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/juju/juju/0.10.0/linux_amd64/terraform-provider-juju_v0.10.0 pid=1001152
2024-01-03T19:16:28.100Z [DEBUG] provider: plugin exited
Notes & References
Juju is working as expected:
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
stg-is-testing-microk8s-aas prodstack-is-beta prodstack5/prodstack5 2.9.44 unsupported 19:13:33Z
Model "admin/stg-is-testing-microk8s-aas" is empty.
$ echo $JUJU_CONTROLLER $JUJU_MODEL
prodstack-is-beta admin/stg-is-testing-microk8s-aas
The text was updated successfully, but these errors were encountered:
Description
When applying a plan on v0.10.0 we get:
Urgency
Casually reporting
Terraform Juju Provider version
0.10.0
Terraform version
v1.5.7
Terraform Configuration(s)
Reproduce / Test
Debug/Panic Output
Notes & References
Juju is working as expected:
The text was updated successfully, but these errors were encountered: