Skip to content
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

DNS resolution issue prior to Go v1.20 on MacOS #341

Closed
elidhu opened this issue May 19, 2023 · 0 comments · Fixed by #342
Closed

DNS resolution issue prior to Go v1.20 on MacOS #341

elidhu opened this issue May 19, 2023 · 0 comments · Fixed by #342
Labels
🐛 bug Something isn't working

Comments

@elidhu
Copy link
Contributor

elidhu commented May 19, 2023

Describe the bug
Issue resolving DNS names on MacOS. I have no other DNS issues, the provider was fetched correctly by terraform. It is just within the provider itself that DNS was unable to resolve correctly.

NOTE: I was able to resolve this by building this provider with Go 1.20

I got the idea to upgrade the Go version from here: https://go-review.googlesource.com/c/go/+/446178

To Reproduce
Steps to reproduce the behavior:

  1. Create a resource
resource "proxmox_virtual_environment_file" "ubuntu_cloud_image" {
  content_type = "iso"
  datastore_id = "local"
  node_name    = "proxmox"

  source_file {
    path = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
  }
}
  1. Run
terraform apply
  1. See error
Error: Get "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img": dial tcp: lookup cloud-images.ubuntu.com on 8.8.8.8:53: read udp 192.168.1.101:0->8.8.8.8:53: i/o timeout

Please also provide a minimal Terraform configuration that reproduces the issue.

Single resource above

Expected behavior
DNS should resolve correctly

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

  • Provider version (ideally it should be the latest version): 0.19.1
  • Terraform version: 1.5.0-beta1
  • OS (where you run Terraform from)): MacOS Ventura 13.3.1
  • Debug logs (TF_LOG=DEBUG terraform apply):
2023-05-19T18:08:54.173+0800 [INFO]  Terraform version: 1.5.0 beta1
2023-05-19T18:08:54.174+0800 [DEBUG] using github.com/hashicorp/go-tfe v1.21.0
2023-05-19T18:08:54.174+0800 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2023-05-19T18:08:54.174+0800 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2023-05-19T18:08:54.174+0800 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-05-19T18:08:54.174+0800 [INFO]  Go runtime version: go1.20
2023-05-19T18:08:54.174+0800 [INFO]  CLI args: []string{"/usr/local/Cellar/tfenv/3.0.0/versions/1.5.0-beta1/terraform", "-chdir=terraform/env/prod", "apply"}
2023-05-19T18:08:54.174+0800 [DEBUG] Attempting to open CLI config file: /Users/kevinglasson/.terraformrc
2023-05-19T18:08:54.174+0800 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2023-05-19T18:08:54.177+0800 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-05-19T18:08:54.178+0800 [DEBUG] ignoring non-existing provider search directory /Users/kevinglasson/.terraform.d/plugins
2023-05-19T18:08:54.178+0800 [DEBUG] ignoring non-existing provider search directory /Users/kevinglasson/Library/Application Support/io.terraform/plugins
2023-05-19T18:08:54.178+0800 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2023-05-19T18:08:54.181+0800 [INFO]  CLI command args: []string{"apply"}
2023-05-19T18:08:54.287+0800 [DEBUG] checking for provisioner in "."
2023-05-19T18:08:54.288+0800 [DEBUG] checking for provisioner in "/usr/local/Cellar/tfenv/3.0.0/versions/1.5.0-beta1"
2023-05-19T18:08:54.290+0800 [INFO]  backend/local: starting Apply operation
2023-05-19T18:08:54.310+0800 [DEBUG] created provider logger: level=debug
2023-05-19T18:08:54.311+0800 [INFO]  provider: configuring client automatic mTLS
2023-05-19T18:08:54.349+0800 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 args=[.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1]
2023-05-19T18:08:54.362+0800 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 pid=75354
2023-05-19T18:08:54.363+0800 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1
2023-05-19T18:08:54.675+0800 [INFO]  provider.terraform-provider-proxmox_v0.19.1: configuring server automatic mTLS: timestamp=2023-05-19T18:08:54.674+0800
2023-05-19T18:08:54.711+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: plugin address: network=unix address=/var/folders/dm/rn10j6nx2ts7z28qb1f5y8ym0000gp/T/plugin136663536 timestamp=2023-05-19T18:08:54.711+0800
2023-05-19T18:08:54.711+0800 [DEBUG] provider: using plugin: version=5
2023-05-19T18:08:54.749+0800 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-05-19T18:08:54.751+0800 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 pid=75354
2023-05-19T18:08:54.751+0800 [DEBUG] provider: plugin exited
2023-05-19T18:08:54.751+0800 [DEBUG] Building and walking validate graph
2023-05-19T18:08:54.751+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:54.752+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all" references: []
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "var.proxmox_url" references: []
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "var.proxmox_username" references: []
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "var.proxmox_password" references: []
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.var.cluster_name (expand)" references: []
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.output.vms (expand)" references: [module.microk8s_cluster.data.proxmox_virtual_environment_vms.all]
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/bpg/proxmox\"]" references: [var.proxmox_username var.proxmox_url var.proxmox_insecure var.proxmox_password]
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster (expand)" references: []
2023-05-19T18:08:54.752+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster (close)" references: []
2023-05-19T18:08:54.753+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image" references: []
2023-05-19T18:08:54.753+0800 [DEBUG] ReferenceTransformer: "var.proxmox_insecure" references: []
2023-05-19T18:08:54.756+0800 [DEBUG] Starting graph walk: walkValidate
2023-05-19T18:08:54.759+0800 [DEBUG] created provider logger: level=debug
2023-05-19T18:08:54.759+0800 [INFO]  provider: configuring client automatic mTLS
2023-05-19T18:08:54.777+0800 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 args=[.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1]
2023-05-19T18:08:54.786+0800 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 pid=75355
2023-05-19T18:08:54.786+0800 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1
2023-05-19T18:08:54.828+0800 [INFO]  provider.terraform-provider-proxmox_v0.19.1: configuring server automatic mTLS: timestamp=2023-05-19T18:08:54.826+0800
2023-05-19T18:08:54.883+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: plugin address: address=/var/folders/dm/rn10j6nx2ts7z28qb1f5y8ym0000gp/T/plugin877569225 network=unix timestamp=2023-05-19T18:08:54.883+0800
2023-05-19T18:08:54.883+0800 [DEBUG] provider: using plugin: version=5
2023-05-19T18:08:54.962+0800 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-05-19T18:08:54.967+0800 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 pid=75355
2023-05-19T18:08:54.968+0800 [DEBUG] provider: plugin exited
2023-05-19T18:08:54.968+0800 [INFO]  backend/local: apply calling Plan
2023-05-19T18:08:54.969+0800 [DEBUG] Building and walking plan graph for NormalMode
2023-05-19T18:08:54.972+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:54.972+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:54.973+0800 [DEBUG] ReferenceTransformer: "var.proxmox_username" references: []
2023-05-19T18:08:54.973+0800 [DEBUG] ReferenceTransformer: "var.proxmox_password" references: []
2023-05-19T18:08:54.973+0800 [DEBUG] ReferenceTransformer: "var.proxmox_url" references: []
2023-05-19T18:08:54.974+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.var.cluster_name (expand)" references: []
2023-05-19T18:08:54.974+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster (expand)" references: []
2023-05-19T18:08:54.974+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster (close)" references: []
2023-05-19T18:08:54.974+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image (expand)" references: []
2023-05-19T18:08:54.974+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)" references: []
2023-05-19T18:08:54.974+0800 [DEBUG] ReferenceTransformer: "var.proxmox_insecure" references: []
2023-05-19T18:08:54.974+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.output.vms (expand)" references: [module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)]
2023-05-19T18:08:54.974+0800 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/bpg/proxmox\"]" references: [var.proxmox_username var.proxmox_url var.proxmox_insecure var.proxmox_password]
2023-05-19T18:08:54.982+0800 [DEBUG] Starting graph walk: walkPlan
2023-05-19T18:08:54.988+0800 [DEBUG] created provider logger: level=debug
2023-05-19T18:08:54.990+0800 [INFO]  provider: configuring client automatic mTLS
2023-05-19T18:08:55.019+0800 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 args=[.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1]
2023-05-19T18:08:55.027+0800 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 pid=75357
2023-05-19T18:08:55.028+0800 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1
2023-05-19T18:08:55.090+0800 [INFO]  provider.terraform-provider-proxmox_v0.19.1: configuring server automatic mTLS: timestamp=2023-05-19T18:08:55.089+0800
2023-05-19T18:08:55.155+0800 [DEBUG] provider: using plugin: version=5
2023-05-19T18:08:55.155+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: plugin address: network=unix address=/var/folders/dm/rn10j6nx2ts7z28qb1f5y8ym0000gp/T/plugin2956623601 timestamp=2023-05-19T18:08:55.154+0800
2023-05-19T18:08:55.210+0800 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/bpg/proxmox\"]" changed the config value, but that value is unused
2023-05-19T18:08:55.213+0800 [DEBUG] Resource instance state not found for node "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image", instance module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image
2023-05-19T18:08:55.213+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image" references: []
2023-05-19T18:08:55.214+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all" references: []
2023-05-19T18:08:55.215+0800 [DEBUG] refresh: module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image: no state, so not refreshing
module.microk8s_cluster.data.proxmox_virtual_environment_vms.all: Reading...
2023-05-19T18:08:55.224+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: sending authentication request: path=/api2/json/access/ticket tf_rpc=ReadDataSource @caller=github.com/bpg/terraform-provider-proxmox/proxmox/virtual_environment_authentication.go:59 tf_req_id=c67c9021-cf89-8a86-4bce-d1af7bb29b26 @module=proxmox tf_data_source_type=proxmox_virtual_environment_vms tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp=2023-05-19T18:08:55.224+0800
2023-05-19T18:08:55.226+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: Sending HTTP Request: @module=proxmox Accept-Encoding=gzip tf_http_req_body=username=root%40pam&password=Small+bear+science. tf_http_req_uri=/api2/json/access/ticket tf_req_id=c67c9021-cf89-8a86-4bce-d1af7bb29b26 tf_rpc=ReadDataSource Content-Type=application/x-www-form-urlencoded tf_http_req_version=HTTP/1.1 tf_http_trans_id=26b63747-1320-8dda-1818-42749f7ea1fe tf_data_source_type=proxmox_virtual_environment_vms tf_http_op_type=request tf_http_req_method=POST tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.26.1/helper/logging/logging_http_transport.go:159 Content-Length=48 Host=192.168.1.50:8006 User-Agent=Go-http-client/1.1 timestamp=2023-05-19T18:08:55.225+0800
2023-05-19T18:08:55.228+0800 [WARN]  Provider "registry.terraform.io/bpg/proxmox" produced an invalid plan for module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .source_file[0].changed: planned value cty.False for a non-computed attribute
      - .source_file[0].insecure: planned value cty.False for a non-computed attribute
2023-05-19T18:08:55.352+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: Received HTTP Response: @module=proxmox Date="Fri, 19 May 2023 10:08:55 GMT" tf_data_source_type=proxmox_virtual_environment_vms tf_http_res_status_code=200 tf_provider_addr=registry.terraform.io/bpg/proxmox Expires="Fri, 19 May 2023 10:08:55 GMT" tf_http_res_body={"data":{"cap":{"dc":{"Sys.Audit":1,"SDN.Allocate":1,"SDN.Audit":1},"storage":{"Permissions.Modify":1,"Datastore.AllocateSpace":1,"Datastore.Audit":1,"Datastore.Allocate":1,"Datastore.AllocateTemplate":1},"sdn":{"SDN.Audit":1,"Permissions.Modify":1,"SDN.Allocate":1},"vms":{"VM.Clone":1,"VM.Monitor":1,"VM.Config.Network":1,"VM.Config.HWType":1,"VM.Snapshot":1,"VM.Config.CPU":1,"VM.Config.Options":1,"VM.Config.CDROM":1,"VM.Config.Memory":1,"VM.Audit":1,"VM.Backup":1,"VM.Allocate":1,"VM.Migrate":1,"VM.Snapshot.Rollback":1,"VM.Console":1,"VM.Config.Cloudinit":1,"VM.PowerMgmt":1,"VM.Config.Disk":1,"Permissions.Modify":1},"nodes":{"Sys.Modify":1,"Sys.Console":1,"Sys.Incoming":1,"Sys.Audit":1,"Sys.PowerMgmt":1,"Permissions.Modify":1,"Sys.Syslog":1},"access":{"User.Modify":1,"Permissions.Modify":1,"Group.Allocate":1}},"username":"root@pam","CSRFPreventionToken":"64674AB7:HDlTV+akkbr0xmNeQYPsirtriCJ6zOBv65fYRcyz3mg","ticket":"PVE:root@pam:64674AB7::ALWb8wzendm8Su/KZuqTpbVtiKfO7UZqTbYQJ7Em7T/avSXZE7rODUsrIJEQGUEdKZIvafWeKXEzcHmzpCyy6M293jznoQZamdQ6pF2/TJXmc3XPZzCAUn4ty3jmJKdjolxkbGhOy4MT5t/LMw6JVhCuxcQe1TjRz71843/GOKC1RCOy3mpIigVtzdzFI1pHAiyLyDoemiXE0ZXdt7KrNjfR3/KE2aNBJ4yO4X0dpxq1ro4tlr971Nj0+4ouOozSE1C90XtOcZfsYq3XmKLvqS6KN3LVtenoTbwEBBNzVuRqrrFKRQT+YTKG0jzzz3GgdqiizZSgVDU8s0rSRU8yxA=="}} @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.26.1/helper/logging/logging_http_transport.go:159 Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 Pragma=no-cache Server=pve-api-daemon/3.0 tf_req_id=c67c9021-cf89-8a86-4bce-d1af7bb29b26 tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_http_trans_id=26b63747-1320-8dda-1818-42749f7ea1fe tf_rpc=ReadDataSource tf_http_op_type=response timestamp=2023-05-19T18:08:55.350+0800
2023-05-19T18:08:55.355+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: Sending HTTP Request: Accept-Encoding=gzip User-Agent=Go-http-client/1.1 tf_http_op_type=request tf_req_id=c67c9021-cf89-8a86-4bce-d1af7bb29b26 @module=proxmox Cookie=PVEAuthCookie=PVE:root@pam:64674AB7::ALWb8wzendm8Su/KZuqTpbVtiKfO7UZqTbYQJ7Em7T/avSXZE7rODUsrIJEQGUEdKZIvafWeKXEzcHmzpCyy6M293jznoQZamdQ6pF2/TJXmc3XPZzCAUn4ty3jmJKdjolxkbGhOy4MT5t/LMw6JVhCuxcQe1TjRz71843/GOKC1RCOy3mpIigVtzdzFI1pHAiyLyDoemiXE0ZXdt7KrNjfR3/KE2aNBJ4yO4X0dpxq1ro4tlr971Nj0+4ouOozSE1C90XtOcZfsYq3XmKLvqS6KN3LVtenoTbwEBBNzVuRqrrFKRQT+YTKG0jzzz3GgdqiizZSgVDU8s0rSRU8yxA== tf_data_source_type=proxmox_virtual_environment_vms tf_http_req_uri=/api2/json/nodes/proxmox/qemu tf_http_trans_id=e31f500e-a2ef-e5c3-d1d0-ff9a5098ae07 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ReadDataSource @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.26.1/helper/logging/logging_http_transport.go:159 tf_http_req_body= Host=192.168.1.50:8006 Accept=application/json tf_http_req_method=GET tf_http_req_version=HTTP/1.1 timestamp=2023-05-19T18:08:55.353+0800
2023-05-19T18:08:55.413+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: Received HTTP Response: tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=c67c9021-cf89-8a86-4bce-d1af7bb29b26 tf_rpc=ReadDataSource @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.26.1/helper/logging/logging_http_transport.go:159 Cache-Control=max-age=0 Pragma=no-cache Server=pve-api-daemon/3.0 tf_http_res_body={"data":[{"diskread":0,"pid":3470,"netin":828818994159,"netout":739491029664,"cpu":0.0947525172830318,"maxmem":17179869184,"uptime":891270,"mem":8890358907,"diskwrite":0,"status":"running","name":"k8s-worker-2","cpus":2,"maxdisk":53687091200,"disk":0,"vmid":502},{"balloon_min":8489271296,"maxdisk":2226940542976,"disk":0,"vmid":300,"diskwrite":0,"mem":8893192615,"status":"running","name":"nfs","cpus":2,"cpu":0.0159456130325451,"maxmem":12884901888,"uptime":891288,"diskread":0,"pid":2857,"netin":764468018154,"shares":1000,"netout":493074967860},{"disk":0,"vmid":100,"template":1,"maxdisk":53687091200,"name":"microk8s-template","status":"stopped","cpus":2,"mem":0,"diskwrite":0,"maxmem":17179869184,"uptime":0,"cpu":0,"netin":0,"netout":0,"diskread":0},{"mem":16139901803,"diskwrite":0,"cpus":2,"name":"k8s-worker-0","status":"running","maxdisk":53687091200,"disk":0,"vmid":503,"pid":3660,"diskread":0,"netout":38015410117,"netin":38979465843,"cpu":0.110936361585983,"uptime":891263,"maxmem":17179869184},{"mem":7223115519,"diskwrite":0,"status":"running","name":"k8s-worker-1","cpus":2,"maxdisk":53687091200,"vmid":501,"disk":0,"diskread":0,"pid":3353,"netin":16841748664,"netout":12986358603,"cpu":0.135283597421533,"maxmem":17179869184,"uptime":891276},{"diskwrite":0,"mem":6397795803,"name":"k8s-ctrlr-0","status":"running","cpus":2,"maxdisk":53687091200,"disk":0,"vmid":500,"pid":3204,"diskread":0,"netin":46841902343,"netout":39281874909,"cpu":0.264881408522696,"maxmem":17179869184,"uptime":891282}]} Connection=[Keep-Alive, Keep-Alive] tf_http_res_version=HTTP/1.1 tf_data_source_type=proxmox_virtual_environment_vms tf_http_res_status_code=200 tf_http_trans_id=e31f500e-a2ef-e5c3-d1d0-ff9a5098ae07 @module=proxmox Content-Type=application/json;charset=UTF-8 Date="Fri, 19 May 2023 10:08:55 GMT" Expires="Fri, 19 May 2023 10:08:55 GMT" tf_http_op_type=response tf_http_res_status_reason="200 OK" timestamp=2023-05-19T18:08:55.412+0800
module.microk8s_cluster.data.proxmox_virtual_environment_vms.all: Read complete after 0s [id=bbdee9fd-aa96-4064-bfc4-9a4a0a7be247]
2023-05-19T18:08:55.428+0800 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-05-19T18:08:55.433+0800 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 pid=75357
2023-05-19T18:08:55.433+0800 [DEBUG] provider: plugin exited
2023-05-19T18:08:55.434+0800 [DEBUG] building apply graph to check for errors
2023-05-19T18:08:55.436+0800 [DEBUG] Resource state not found for node "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image", instance module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image
2023-05-19T18:08:55.438+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:55.438+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:55.438+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:55.441+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster (expand)" references: []
2023-05-19T18:08:55.441+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)" references: []
2023-05-19T18:08:55.441+0800 [DEBUG] ReferenceTransformer: "var.proxmox_username" references: []
2023-05-19T18:08:55.441+0800 [DEBUG] ReferenceTransformer: "var.proxmox_password" references: []
2023-05-19T18:08:55.441+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.var.cluster_name (expand)" references: []
2023-05-19T18:08:55.441+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image" references: []
2023-05-19T18:08:55.442+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster (close)" references: []
2023-05-19T18:08:55.442+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image (expand)" references: []
2023-05-19T18:08:55.442+0800 [DEBUG] ReferenceTransformer: "var.proxmox_url" references: []
2023-05-19T18:08:55.442+0800 [DEBUG] ReferenceTransformer: "var.proxmox_insecure" references: []
2023-05-19T18:08:55.442+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.output.vms (expand)" references: [module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)]
2023-05-19T18:08:55.442+0800 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/bpg/proxmox\"]" references: [var.proxmox_password var.proxmox_username var.proxmox_url var.proxmox_insecure]
2023-05-19T18:08:55.444+0800 [DEBUG] pruneUnusedNodes: module.microk8s_cluster.var.cluster_name (expand) is no longer needed, removing
2023-05-19T18:08:55.444+0800 [DEBUG] pruneUnusedNodes: module.microk8s_cluster.output.vms (expand) is no longer needed, removing
2023-05-19T18:08:55.444+0800 [DEBUG] pruneUnusedNodes: module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand) is no longer needed, removing

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image will be created
  + resource "proxmox_virtual_environment_file" "ubuntu_cloud_image" {
      + content_type           = "iso"
      + datastore_id           = "local"
      + file_modification_date = (known after apply)
      + file_name              = (known after apply)
      + file_size              = (known after apply)
      + file_tag               = (known after apply)
      + id                     = (known after apply)
      + node_name              = "proxmox"

      + source_file {
          + changed  = false
          + insecure = false
          + path     = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.
2023-05-19T18:08:55.451+0800 [DEBUG] command: asking for input: "\nDo you want to perform these actions?"

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

2023-05-19T18:08:57.423+0800 [INFO]  backend/local: apply calling Apply
2023-05-19T18:08:57.423+0800 [DEBUG] Building and walking apply graph for NormalMode plan
2023-05-19T18:08:57.424+0800 [DEBUG] Resource state not found for node "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image", instance module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image
2023-05-19T18:08:57.424+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:57.424+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:57.424+0800 [DEBUG] ProviderTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/bpg/proxmox"]
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image (expand)" references: []
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)" references: []
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "var.proxmox_url" references: []
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.output.vms (expand)" references: [module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand)]
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster (close)" references: []
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "var.proxmox_username" references: []
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "var.proxmox_password" references: []
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "var.proxmox_insecure" references: []
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.var.cluster_name (expand)" references: []
2023-05-19T18:08:57.424+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image" references: []
2023-05-19T18:08:57.425+0800 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/bpg/proxmox\"]" references: [var.proxmox_password var.proxmox_username var.proxmox_url var.proxmox_insecure]
2023-05-19T18:08:57.425+0800 [DEBUG] ReferenceTransformer: "module.microk8s_cluster (expand)" references: []
2023-05-19T18:08:57.425+0800 [DEBUG] pruneUnusedNodes: module.microk8s_cluster.output.vms (expand) is no longer needed, removing
2023-05-19T18:08:57.425+0800 [DEBUG] pruneUnusedNodes: module.microk8s_cluster.var.cluster_name (expand) is no longer needed, removing
2023-05-19T18:08:57.425+0800 [DEBUG] pruneUnusedNodes: module.microk8s_cluster.data.proxmox_virtual_environment_vms.all (expand) is no longer needed, removing
2023-05-19T18:08:57.425+0800 [DEBUG] Starting graph walk: walkApply
2023-05-19T18:08:57.426+0800 [DEBUG] created provider logger: level=debug
2023-05-19T18:08:57.427+0800 [INFO]  provider: configuring client automatic mTLS
2023-05-19T18:08:57.441+0800 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 args=[.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1]
2023-05-19T18:08:57.450+0800 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 pid=75457
2023-05-19T18:08:57.450+0800 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1
2023-05-19T18:08:57.479+0800 [INFO]  provider.terraform-provider-proxmox_v0.19.1: configuring server automatic mTLS: timestamp=2023-05-19T18:08:57.478+0800
2023-05-19T18:08:57.521+0800 [DEBUG] provider: using plugin: version=5
2023-05-19T18:08:57.521+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: plugin address: address=/var/folders/dm/rn10j6nx2ts7z28qb1f5y8ym0000gp/T/plugin3562308355 network=unix timestamp=2023-05-19T18:08:57.521+0800
2023-05-19T18:08:57.568+0800 [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/bpg/proxmox\"]" changed the config value, but that value is unused
2023-05-19T18:08:57.579+0800 [WARN]  Provider "registry.terraform.io/bpg/proxmox" produced an invalid plan for module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .source_file[0].changed: planned value cty.False for a non-computed attribute
      - .source_file[0].insecure: planned value cty.False for a non-computed attribute
module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image: Creating...
2023-05-19T18:08:57.579+0800 [INFO]  Starting apply for module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image
2023-05-19T18:08:57.579+0800 [DEBUG] module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image: applying the planned Create change
2023-05-19T18:08:57.581+0800 [DEBUG] provider.terraform-provider-proxmox_v0.19.1: Downloading file from URL: tf_provider_addr=registry.terraform.io/bpg/proxmox url=https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img @caller=github.com/bpg/terraform-provider-proxmox/proxmoxtf/resource/file.go:241 @module=proxmox tf_req_id=50d4b60f-9d54-22d5-3234-ae67db000549 tf_resource_type=proxmox_virtual_environment_file tf_rpc=ApplyResourceChange timestamp=2023-05-19T18:08:57.581+0800
module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image: Still creating... [10s elapsed]
module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image: Still creating... [20s elapsed]
2023-05-19T18:09:20.590+0800 [ERROR] provider.terraform-provider-proxmox_v0.19.1: Response contains error diagnostic: @module=sdk.proto diagnostic_detail= tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=50d4b60f-9d54-22d5-3234-ae67db000549 tf_resource_type=proxmox_virtual_environment_file tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_severity=ERROR diagnostic_summary="Get "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img": dial tcp: lookup cloud-images.ubuntu.com on 8.8.8.8:53: read udp 192.168.1.101:0->8.8.8.8:53: i/o timeout" tf_proto_version=5.3 timestamp=2023-05-19T18:09:20.589+0800
2023-05-19T18:09:20.614+0800 [ERROR] vertex "module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image" error: Get "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img": dial tcp: lookup cloud-images.ubuntu.com on 8.8.8.8:53: read udp 192.168.1.101:0->8.8.8.8:53: i/o timeout
╷
│ Error: Get "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img": dial tcp: lookup cloud-images.ubuntu.com on 8.8.8.8:53: read udp 192.168.1.101:0->8.8.8.8:53: i/o timeout
│ 
│   with module.microk8s_cluster.proxmox_virtual_environment_file.ubuntu_cloud_image,
│   on ../../modules/microk8s-cluster/main.tf line 6, in resource "proxmox_virtual_environment_file" "ubuntu_cloud_image":
│    6: resource "proxmox_virtual_environment_file" "ubuntu_cloud_image" {
│ 
╵
2023-05-19T18:09:20.638+0800 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-05-19T18:09:20.641+0800 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.19.1/darwin_amd64/terraform-provider-proxmox_v0.19.1 pid=75457
2023-05-19T18:09:20.641+0800 [DEBUG] provider: plugin exited
@elidhu elidhu added the 🐛 bug Something isn't working label May 19, 2023
elidhu added a commit to elidhu/terraform-provider-proxmox that referenced this issue May 19, 2023
Bumping the go version ensures that MacOS DNS is resolved correctly as
per https://go-review.googlesource.com/c/go/+/446178.

Resolves: bpg#341
@bpg bpg closed this as completed in #342 May 19, 2023
bpg added a commit that referenced this issue May 19, 2023
* feat: bump the go version

Bumping the go version ensures that MacOS DNS is resolved correctly as
per https://go-review.googlesource.com/c/go/+/446178.

Resolves: #341

* bump go version in /tools and in readme

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant