terraform-provider-proxmox
terraform-provider-proxmox copied to clipboard
Creation of dependent resources (cloned template VMs) in one go fail even though creation of templates were successful
Describe the bug Not sure if that's exactly a bug, but it looks like order of operations is correct:
- cloud images were pushed to datastore
- template VMs were created based on these images
- but creation of an actual production VMs failed becase configs for template VMs weren't found
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [3m10s elapsed]
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Creation complete after 3m14s [id=local:iso/ubuntu-22.04-server-cloudimg-amd64.img]
module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204: Creating...
module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204: Creation complete after 6s [id=1011]
module.proxmox.proxmox_virtual_environment_file.cloud_image_astra_174_base: Still creating... [3m20s elapsed]
module.proxmox.proxmox_virtual_environment_file.cloud_image_astra_174_base: Creation complete after 3m29s [id=local:iso/alse-vanilla-1.7.4-cloud-base.img]
module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base: Creating...
module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base: Creation complete after 6s [id=1001]
╷
│ Error: error cloning VM: received an HTTP 500 response - Reason: unable to find configuration file for VM 1001 on node 'prox-srv1'
│
│ with module.proxmox.proxmox_virtual_environment_vm.base,
│ on ../modules/proxmox-base/main.tf line 24, in resource "proxmox_virtual_environment_vm" "base":
│ 24: resource "proxmox_virtual_environment_vm" "base" {
│
╵
╷
│ Error: error cloning VM: received an HTTP 500 response - Reason: unable to find configuration file for VM 1011 on node 'prox-srv1'
│
│ with module.proxmox.proxmox_virtual_environment_vm.base2,
│ on ../modules/proxmox-base/main.tf line 99, in resource "proxmox_virtual_environment_vm" "base2":
│ 99: resource "proxmox_virtual_environment_vm" "base2" {
│
╵
Dependency chain processed correctly but somehow terraform didn't receive an actual state of template VMs before trying to clone them. It looks like terraform "remembered" before "apply" that there were no configs for template VMs and considering that we created only VM resources (not vm's config resources) it didn't "change it's mind" if i may say so? This happens when i destroy my test environment and create it anew from scratch, 10 resources overall:
- 2 files for cloud-init cloud-configs
- 1 pool
- 3 files for cloud images
- 2 template VMs
- 2 prod VMs
Obviously if I'm running "terraform apply" second time these 2 VMs are being created successfully. I suspect we should build templates before creating actual VMs but it's not an optimal outcome.
Expected behavior Dependent resources (production VMs based on templates) created successfully in one go.
Additional context Add any other context about the problem here.
- Single or clustered Proxmox: 3 node cluster, PVE 8.0.3
- Provider version (ideally it should be the latest version): 0.35.1
- Terraform version: 1.5.7
- OS (where you run Terraform from): Ubuntu 22.04 (WSL2)
Hey @ratiborusx, a quick sanity check -- you do use terrafrom resource when referencing template from a clone, right? Similar to https://github.com/bpg/terraform-provider-proxmox/blob/aeb5e88bc9112686675c7058501fa9378b69af93/example/resource_virtual_environment_vm.tf#L117?
VM resource reads back from PVE at the end, in order to refresh its internal state. So if template VM creation is completed without errors that means the configuration file for this VM was definetely readable at that time.
You're also running in a cluster. Would it be possible that VM template is created on one node and a clone is attempted to be created on another? It is not clear from the provided logs which resource was deployed where, so running with TF_LOG=DEBUG terrafrom applly... might sade some light.
@all-contributors please add @ratiborusx for testing
I'll post a whole my stuff a bit later. But in general yes that's exactly how it is. Also just for testing im creating one VM from template on the same node where templates are located and another VM on 2nd node where there's no templates. But it probably should not have any significance as from what i saw cloned VMs will be created on 1st node (same as where templates are located) and only then migrated to 2nd one.
UPD. Was a bit in a hurry reading this. You're right, i referenced template VMs via fixed 'vm_id' i assigned to them, not through resource identifier. Could it be the reason why it failed? Does it really that significant (because im 100% sure i won't be creating any templates with random VMID)? Also considering i want to implement some iteration in resource with "for_each" and use variables for referencing template VMs "vm_id" later i'm not sure i could use direct referencing like that. I'm using terraform module and locals so there may be some problems with root-child module info exchange but i'll look into it. I'm testing direct referencing to resource like you mentioned above ATM.
UPD2. Direct referencing to resource identifier prevents any errors i mentioned above. It works in one go when i do it like this:
resource "proxmox_virtual_environment_vm" "template_ubuntu_2204" {
name = "template-ubuntu-22.04"
description = "Ubuntu 22.04 template"
tags = sort(["terraform", "templates", "template-ubuntu-22.04"])
pool_id = proxmox_virtual_environment_pool.templates.id
node_name = "prox-srv1"
vm_id = 1011
...
resource "proxmox_virtual_environment_vm" "base2" {
name = "ubuntu-test-vm"
description = "Managed by Terraform"
tags = sort(["terraform", "ubuntu-22.04"])
...
clone {
node_name = "prox-srv1"
retries = 3
vm_id = proxmox_virtual_environment_vm.template_ubuntu_2204.id
}
When i reference template via its "vm_id" resource creation fails as described in the issue. That happens when i create template VMs and production VMs (based on templates, i.e. cloned template VMs) in one go:
resource "proxmox_virtual_environment_vm" "template_ubuntu_2204" {
name = "template-ubuntu-22.04"
description = "Ubuntu 22.04 template"
tags = sort(["terraform", "templates", "template-ubuntu-22.04"])
pool_id = proxmox_virtual_environment_pool.templates.id
node_name = "prox-srv1"
vm_id = 1011
...
resource "proxmox_virtual_environment_vm" "base2" {
name = "ubuntu-test-vm"
description = "Managed by Terraform"
tags = sort(["terraform", "ubuntu-22.04"])
...
clone {
node_name = "prox-srv1"
retries = 3
vm_id = 1011
}
Not sure why there would be any difference because i reference already created resource all the same. Hopefully i'll still manage to implement iteration and human-readable vars/locals with direct referencing but in the worst case i'll be creating template VMs before any production ones based on them.
@bpg
main.tf
terraform {
required_providers {
proxmox = {
source = "bpg/proxmox"
version = ">= 0.35.1"
}
}
required_version = ">= 0.13"
}
# https://github.com/bpg/terraform-provider-proxmox/issues/360#issuecomment-1575894367
# Working with clones is a bit of a mess in the provider. In fact, no disk attributes can be updated other than the size of the disk or its storage.
# The other attribute values are ignored on apply, but kept in the TF state, so terraform then starts complaining about the mismatch on re-apply.
# Another problem is the defaults that we have for disk attributes, like file type (which is qcow2 if not set) et. al.
# Currently all of this is simply ignored, but when we start applying attributes from a cloned VM those default may be incompatible like qcow2 for a block storage, or be simply wrong in the context of clone.
# That's all legacy code, it will take some time to untangle and fix all of this...
data "proxmox_virtual_environment_version" "prox_srv3" {}
resource "proxmox_virtual_environment_vm" "base" {
name = "astra-test-vm"
description = "Managed by Terraform"
tags = sort(["terraform", "astra-1.7.4-base"])
node_name = "prox-srv1"
#vm_id = 4321
migrate = true
on_boot = true
started = true
reboot = true
scsi_hardware = "virtio-scsi-single"
agent {
enabled = true
trim = true
}
clone {
node_name = "prox-srv1"
retries = 3
vm_id = 1001
}
cpu {
architecture = "x86_64"
cores = 2
numa = true
sockets = 2
type = "host"
}
memory {
dedicated = 4096
}
disk {
datastore_id = "vzdata"
discard = "on"
file_format = "qcow2"
interface = "scsi0"
iothread = true
size = 50
ssd = true
}
initialization {
datastore_id = "vzdata"
interface = "ide2"
ip_config {
ipv4 {
address = "dhcp"
}
}
}
network_device {
bridge = "vmbr0"
}
operating_system {
type = "l26"
}
serial_device {
device = "socket"
}
lifecycle {
ignore_changes = [
initialization[0].user_account,
initialization[0].user_data_file_id
]
}
}
resource "proxmox_virtual_environment_vm" "base2" {
name = "ubuntu-test-vm"
description = "Managed by Terraform"
tags = sort(["terraform", "ubuntu-22.04"])
node_name = "prox-srv2"
#vm_id = 4321
migrate = true
on_boot = true
started = true
reboot = true
scsi_hardware = "virtio-scsi-pci"
agent {
enabled = true
trim = true
}
clone {
node_name = "prox-srv1"
retries = 3
vm_id = 1011
}
cpu {
architecture = "x86_64"
cores = 2
numa = true
sockets = 2
type = "host"
}
memory {
dedicated = 4096
}
disk {
datastore_id = "vzdata"
discard = "on"
file_format = "qcow2"
interface = "scsi0"
iothread = true
size = 50
ssd = true
}
initialization {
datastore_id = "vzdata"
interface = "ide2"
ip_config {
ipv4 {
address = "dhcp"
}
}
}
network_device {
bridge = "vmbr0"
}
operating_system {
type = "l26"
}
serial_device {
device = "socket"
}
lifecycle {
ignore_changes = [
initialization[0].user_account,
initialization[0].user_data_file_id
]
}
}
templates.tf
#==================#
# CLOUD-CONFIG #
#==================#
# resource "proxmox_virtual_environment_file" "cloud_config_userdata" {
# for_each = toset(var.proxmox_nodes)
# content_type = "snippets"
# datastore_id = "local"
# node_name = each.value
# source_file {
# path = "../keys/userdata-proxmox.yml"
# }
# }
resource "proxmox_virtual_environment_file" "cloud_config_userdata_raw_file" {
for_each = toset(var.proxmox_nodes)
content_type = "snippets"
datastore_id = "local"
node_name = each.value
source_raw {
data = file("../keys/userdata-proxmox.yml")
file_name = "userdata-proxmox-raw-file.yml"
}
}
#=====================#
# TEMPLATE IMAGES #
#=====================#
resource "proxmox_virtual_environment_file" "cloud_image_ubuntu_2204" {
content_type = "iso"
datastore_id = "local"
node_name = "prox-srv1"
source_file {
path = "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
}
}
resource "proxmox_virtual_environment_file" "cloud_image_debian_12" {
content_type = "iso"
datastore_id = "local"
node_name = "prox-srv1"
source_file {
file_name = "debian-12-generic-amd64.img"
path = "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2"
}
}
resource "proxmox_virtual_environment_file" "cloud_image_astra_174_base" {
content_type = "iso"
datastore_id = "local"
node_name = "prox-srv1"
source_file {
file_name = "alse-vanilla-1.7.4-cloud-base.img"
path = "https://somefile.qcow2"
}
}
#==================#
# TEMPLATE VMs #
#==================#
data "proxmox_virtual_environment_vms" "template_vms" {
tags = ["templates"]
}
resource "proxmox_virtual_environment_pool" "templates" {
comment = "Pool for template VMs, managed by Terraform"
pool_id = "templates"
}
resource "proxmox_virtual_environment_vm" "template_astra_174_base" {
name = "template-astra-1.7.4-base"
description = "Astra Linux 1.7.4 Orel template"
tags = sort(["terraform", "templates", "template-astra-1.7.4-base"])
pool_id = proxmox_virtual_environment_pool.templates.id
node_name = "prox-srv1"
vm_id = 1001
migrate = true
on_boot = false
started = false
template = true
scsi_hardware = "virtio-scsi-single"
agent {
enabled = true
trim = true
}
cpu {
architecture = "x86_64"
cores = 1
numa = true
sockets = 2
type = "host"
}
memory {
dedicated = 2048
}
disk {
datastore_id = "local"
file_id = proxmox_virtual_environment_file.cloud_image_astra_174_base.id
file_format = "qcow2"
interface = "scsi0"
cache = "none"
size = 3
discard = "on"
iothread = true
ssd = true
}
initialization {
datastore_id = "local"
interface = "ide2"
ip_config {
ipv4 {
address = "dhcp"
}
}
user_data_file_id = proxmox_virtual_environment_file.cloud_config_userdata_raw_file["prox-srv1"].id
}
network_device {
bridge = "vmbr0"
}
operating_system {
type = "l26"
}
serial_device {
device = "socket"
}
vga {
enabled = true
memory = 32
type = "serial0"
}
# lifecycle {
# ignore_changes = [
# initialization[0].user_data_file_id
# ]
# }
}
resource "proxmox_virtual_environment_vm" "template_ubuntu_2204" {
name = "template-ubuntu-22.04"
description = "Ubuntu 22.04 template"
tags = sort(["terraform", "templates", "template-ubuntu-22.04"])
pool_id = proxmox_virtual_environment_pool.templates.id
node_name = "prox-srv1"
vm_id = 1011
migrate = true
on_boot = false
started = false
template = true
scsi_hardware = "virtio-scsi-single"
agent {
enabled = true
trim = true
}
cpu {
architecture = "x86_64"
cores = 1
numa = true
sockets = 2
type = "host"
}
memory {
dedicated = 2048
}
disk {
datastore_id = "local"
file_id = proxmox_virtual_environment_file.cloud_image_ubuntu_2204.id
file_format = "qcow2"
interface = "scsi0"
cache = "none"
size = 3
discard = "on"
iothread = true
ssd = true
}
initialization {
datastore_id = "local"
interface = "ide2"
ip_config {
ipv4 {
address = "dhcp"
}
}
user_data_file_id = proxmox_virtual_environment_file.cloud_config_userdata_raw_file["prox-srv1"].id
}
network_device {
bridge = "vmbr0"
}
operating_system {
type = "l26"
}
serial_device {
device = "socket"
}
vga {
enabled = true
memory = 32
type = "serial0"
}
# lifecycle {
# ignore_changes = [
# initialization[0].user_data_file_id
# ]
# }
}
locals.tf in the root module
locals {
proxmox_nodes = ["prox-srv1", "prox-srv2", "prox-srv3"]
}
Partial terraform plan output
ratiborus@HOMEWORLD:~/WORKSPACE/terraform_yandex/proxmox$ TF_LOG=DEBUG terraform apply
...
Plan: 11 to add, 0 to change, 0 to destroy.
-----------------------------------------------------
2023-10-26T18:52:39.741+0300 [DEBUG] [aws-sdk-go]
2023-10-26T18:52:39.751+0300 [WARN] Provider "registry.terraform.io/bpg/proxmox" produced an invalid plan for module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base, 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:
- .reboot: planned value cty.False for a non-computed attribute
- .acpi: planned value cty.True for a non-computed attribute
- .timeout_reboot: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .timeout_migrate: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .timeout_clone: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .tablet_device: planned value cty.True for a non-computed attribute
- .timeout_move_disk: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .timeout_start_vm: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .started: planned value cty.NullVal(cty.Bool) does not match config value cty.False
- .timeout_stop_vm: planned value cty.NumberIntVal(300) for a non-computed attribute
- .timeout_shutdown_vm: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .bios: planned value cty.StringVal("seabios") for a non-computed attribute
- .keyboard_layout: planned value cty.StringVal("en-us") for a non-computed attribute
- .network_device[0].model: planned value cty.StringVal("virtio") for a non-computed attribute
- .network_device[0].mtu: planned value cty.NumberIntVal(0) for a non-computed attribute
- .network_device[0].rate_limit: planned value cty.NumberIntVal(0) for a non-computed attribute
- .network_device[0].vlan_id: planned value cty.NumberIntVal(0) for a non-computed attribute
- .network_device[0].enabled: planned value cty.True for a non-computed attribute
- .network_device[0].firewall: planned value cty.False for a non-computed attribute
- .network_device[0].queues: planned value cty.NumberIntVal(0) for a non-computed attribute
- .agent[0].timeout: planned value cty.StringVal("15m") for a non-computed attribute
- .agent[0].type: planned value cty.StringVal("virtio") for a non-computed attribute
- .memory[0].floating: planned value cty.NumberIntVal(0) for a non-computed attribute
- .memory[0].shared: planned value cty.NumberIntVal(0) for a non-computed attribute
- .cpu[0].hotplugged: planned value cty.NumberIntVal(0) for a non-computed attribute
- .cpu[0].units: planned value cty.NumberIntVal(1024) for a non-computed attribute
module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base: Creating...
2023-10-26T18:52:39.752+0300 [INFO] Starting apply for module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base
2023-10-26T18:52:39.754+0300 [DEBUG] module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base: applying the planned Create change
2023-10-26T18:52:39.755+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: 2023/10/26 18:52:39 [DEBUG] setting computed for "mac_addresses" from ComputedKeys
2023-10-26T18:52:39.756+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: 2023/10/26 18:52:39 [DEBUG] setting computed for "ipv6_addresses" from ComputedKeys
2023-10-26T18:52:39.756+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: 2023/10/26 18:52:39 [DEBUG] setting computed for "ipv4_addresses" from ComputedKeys
2023-10-26T18:52:39.756+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: 2023/10/26 18:52:39 [DEBUG] setting computed for "network_interface_names" from ComputedKeys
2023-10-26T18:52:39.758+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_http_req_uri=/api2/json/nodes/prox-srv1/qemu tf_http_trans_id=5d420039-a916-68ef-cf57-b2b970aec2c3 tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox Accept=application/json Content-Length=664 User-Agent=Go-http-client/1.1 tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Accept-Encoding=gzip Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== tf_http_req_body=acpi=1&agent=enabled%3D1%2Cfstrim_cloned_disks%3D1%2Ctype%3Dvirtio&arch=x86_64&balloon=0&bios=seabios&boot=order%3Dscsi0%3Bnet0&cicustom=user%3Dlocal%3Asnippets%2Fuserdata-proxmox-raw-file.yml&cores=1&cpu=cputype%3Dhost&cpuunits=1024&description=Astra+Linux+1.7.4+Orel+template&ide2=file%3Dlocal%3Acloudinit%2Cmedia%3Dcdrom&ipconfig0=ip%3Ddhcp&keyboard=en-us&memory=2048&name=template-astra-1.7.4-base&net0=model%3Dvirtio%2Cbridge%3Dvmbr0%2Cfirewall%3D0&numa=1&onboot=0&ostype=l26&pool=templates&scsihw=virtio-scsi-single&serial0=socket&sockets=2&tablet=1&tags=template-astra-1.7.4-base%3Btemplates%3Bterraform&template=1&vga=memory%3D32%2Ctype%3Dserial0&vmid=1001 tf_rpc=ApplyResourceChange Csrfpreventiontoken=653A89B3:MDrcplT1GWHHRHsN739dggziVOuvxRyyOaPAO5aBKYg tf_http_req_method=POST tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 Content-Type=application/x-www-form-urlencoded Host=10.177.144.6:8006 tf_http_op_type=request tf_http_req_version=HTTP/1.1 timestamp=2023-10-26T18:52:39.758+0300
2023-10-26T18:52:39.814+0300 [WARN] Provider "provider[\"registry.terraform.io/bpg/proxmox\"]" produced an unexpected new value for module.proxmox.proxmox_virtual_environment_file.cloud_image_debian_12, 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].checksum: was null, but now cty.StringVal("")
module.proxmox.proxmox_virtual_environment_file.cloud_image_debian_12: Creation complete after 6m45s [id=local:iso/debian-12-generic-amd64.img]
2023-10-26T18:52:39.814+0300 [DEBUG] State storage *remote.State declined to persist a state snapshot
2023-10-26T18:52:39.815+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_trans_id=5d420039-a916-68ef-cf57-b2b970aec2c3 tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox Content-Length=76 Date="Thu, 26 Oct 2023 15:52:39 GMT" tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 tf_resource_type=proxmox_virtual_environment_vm Expires="Thu, 26 Oct 2023 15:52:39 GMT" Pragma=no-cache @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 tf_http_res_body={"data":"UPID:prox-srv1:001A3ADE:032FAC40:653A8B47:qmcreate:1001:root@pam:"} tf_http_res_status_reason="200 OK" tf_rpc=ApplyResourceChange Content-Type=application/json;charset=UTF-8 tf_http_res_status_code=200 tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server timestamp=2023-10-26T18:52:39.815+0300
2023-10-26T18:52:39.816+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 Host=10.177.144.6:8006 tf_http_op_type=request tf_http_req_method=GET tf_http_trans_id=3f9b401b-1ae2-e321-5f2c-32e7981b7658 tf_mux_provider=tf5to6server.v5tov6Server Accept-Encoding=gzip tf_rpc=ApplyResourceChange tf_http_req_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 @module=proxmox Accept=application/json tf_http_req_uri=/api2/json/nodes/prox-srv1/tasks/UPID:prox-srv1:001A3ADE:032FAC40:653A8B47:qmcreate:1001:root@pam:/status Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== User-Agent=Go-http-client/1.1 tf_http_req_body= timestamp=2023-10-26T18:52:39.815+0300
2023-10-26T18:52:39.858+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 tf_resource_type=proxmox_virtual_environment_vm tf_http_res_body={"data":{"status":"running","user":"root@pam","pstart":53455936,"upid":"UPID:prox-srv1:001A3ADE:032FAC40:653A8B47:qmcreate:1001:root@pam:","starttime":1698335559,"pid":1719006,"node":"prox-srv1","type":"qmcreate","id":"1001"}} tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox Connection=[Keep-Alive, Keep-Alive] Content-Length=226 Date="Thu, 26 Oct 2023 15:52:39 GMT" Expires="Thu, 26 Oct 2023 15:52:39 GMT" Pragma=no-cache Server=pve-api-daemon/3.0 tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 tf_http_trans_id=3f9b401b-1ae2-e321-5f2c-32e7981b7658 tf_http_op_type=response tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_rpc=ApplyResourceChange Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 timestamp=2023-10-26T18:52:39.857+0300
2023-10-26T18:52:41.059+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== Accept-Encoding=gzip Host=10.177.144.6:8006 tf_http_req_method=GET @module=proxmox tf_http_op_type=request tf_http_trans_id=78d10abf-c792-f177-1172-eda30e749e80 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Accept=application/json tf_http_req_body= tf_http_req_uri=/api2/json/nodes/prox-srv1/tasks/UPID:prox-srv1:001A3ADE:032FAC40:653A8B47:qmcreate:1001:root@pam:/status tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm timestamp=2023-10-26T18:52:41.059+0300
2023-10-26T18:52:41.102+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: tf_http_res_version=HTTP/1.1 tf_rpc=ApplyResourceChange Cache-Control=max-age=0 Expires="Thu, 26 Oct 2023 15:52:41 GMT" Pragma=no-cache Date="Thu, 26 Oct 2023 15:52:41 GMT" Server=pve-api-daemon/3.0 tf_http_op_type=response tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 tf_http_res_status_reason="200 OK" tf_http_trans_id=78d10abf-c792-f177-1172-eda30e749e80 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Content-Length=244 tf_http_res_body={"data":{"node":"prox-srv1","starttime":1698335559,"pid":1719006,"exitstatus":"OK","id":"1001","type":"qmcreate","user":"root@pam","status":"stopped","upid":"UPID:prox-srv1:001A3ADE:032FAC40:653A8B47:qmcreate:1001:root@pam:","pstart":53455936}} tf_http_res_status_code=200 timestamp=2023-10-26T18:52:41.102+0300
2023-10-26T18:52:41.103+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: executing commands on the node using SSH: tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 commands=["set -e", file_id="local:iso/alse-vanilla-1.7.4-cloud-base.img", file_format="qcow2", datastore_id_target="local", disk_options=",iothread=1,ssd=1,discard=on,cache=none", disk_size="3", disk_interface="scsi0", file_path_tmp="/tmp/vm-1001-disk-0.qcow2", vm_id="1001", "source_image=$(pvesm path "$file_id")", "cp "$source_image" "$file_path_tmp"", "qemu-img resize -f "$file_format" "$file_path_tmp" "${disk_size}G"", "imported_disk="$(qm importdisk "$vm_id" "$file_path_tmp" "$datastore_id_target" -format $file_format | grep "unused0" | cut -d ":" -f 3 | cut -d "'" -f 1)"", disk_id="${datastore_id_target}:$imported_disk${disk_options}", "qm set "$vm_id" "-${disk_interface}" "$disk_id"", "rm -f "$file_path_tmp""] node_address=10.177.144.6 node_port=22 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @caller=github.com/bpg/terraform-provider-proxmox/proxmox/ssh/client.go:82 @module=proxmox timestamp=2023-10-26T18:52:41.102+0300
2023-10-26T18:52:41.105+0300 [INFO] provider.terraform-provider-proxmox_v0.35.1: agent is set to true: @caller=github.com/bpg/terraform-provider-proxmox/proxmox/ssh/client.go:278 @module=proxmox tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp=2023-10-26T18:52:41.105+0300
2023-10-26T18:52:41.254+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: SSH connection established: host=10.177.144.6:22 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm user=root @caller=github.com/bpg/terraform-provider-proxmox/proxmox/ssh/client.go:344 @module=proxmox tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 tf_rpc=ApplyResourceChange timestamp=2023-10-26T18:52:41.254+0300
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [6m51s elapsed]
2023-10-26T18:52:46.213+0300 [ERROR] provider.terraform-provider-proxmox_v0.35.1: Failed to close: @module=proxmox error=EOF tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/bpg/terraform-provider-proxmox/utils/io.go:20 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 timestamp=2023-10-26T18:52:46.213+0300
2023-10-26T18:52:46.213+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_http_op_type=request tf_http_req_method=GET tf_http_req_uri=/api2/json/cluster/resources?type=vm tf_http_trans_id=edd9426b-d4f4-9edf-ceb0-309b280113b1 Accept=application/json Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== tf_http_req_body= tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 @module=proxmox User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 Host=10.177.144.6:8006 Accept-Encoding=gzip tf_resource_type=proxmox_virtual_environment_vm timestamp=2023-10-26T18:52:46.213+0300
2023-10-26T18:52:46.250+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_res_status_code=200 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @module=proxmox Expires="Thu, 26 Oct 2023 15:52:46 GMT" Pragma=no-cache tf_http_res_body="{"data":[{"mem":29547404,"name":"100","cpu":0.500410650403239,"maxdisk":2147483648,"maxmem":2147483648,"netin":60,"node":"prox-srv3","status":"running","diskread":2560,"vmid":100,"netout":0,"maxcpu":2,"disk":0,"diskwrite":0,"template":0,"type":"qemu","uptime":1406857,"id":"qemu/100"},{"diskread":0,"status":"stopped","node":"prox-srv1","netin":0,"maxmem":2147483648,"maxdisk":0,"name":"template-astra-1.7.4-base","cpu":0,"mem":0,"id":"qemu/1001","uptime":0,"type":"qemu","template":1,"diskwrite":0,"disk":0,"tags":"template-astra-1.7.4-base;templates;terraform","maxcpu":2,"netout":0,"pool":"templates","vmid":1001},{"maxmem":4294967296,"netin":717795294,"maxdisk":21474836480,"cpu":0.015374360914272,"name":"altrepo","mem":2095976448,"status":"running","diskread":257576226,"node":"prox-srv3","diskwrite":2730358784,"disk":0,"maxcpu":2,"netout":5523845,"vmid":101,"id":"qemu/101","uptime":174165,"type":"qemu","template":0},{"node":"prox-srv3","diskread":228756770,"status":"running","maxdisk":21474836480,"maxmem":4294967296,"netin":996432755,"mem":337125376,"cpu":0.0188459907981398,"name":"tst-102","type":"qemu","uptime":608377,"id":"qemu/102","template":0,"maxcpu":2,"tags":" ","disk":0,"diskwrite":203314176,"vmid":102,"netout":406858},{"vmid":103,"netout":0,"maxcpu":2,"disk":0,"diskwrite":0,"template":0,"type":"qemu","uptime":0,"id":"qemu/103","mem":0,"cpu":0,"name":"103tst","maxdisk":3145728000,"maxmem":80530636800,"netin":0,"node":"prox-srv2","status":"stopped","diskread":0},{"template":0,"id":"qemu/201","type":"qemu","uptime":0,"netout":0,"vmid":201,"diskwrite":0,"maxcpu":16,"disk":0,"status":"stopped","diskread":0,"node":"prox-srv2","cpu":0,"name":"dock-tst-px-01","mem":0,"netin":0,"maxmem":34359738368,"maxdisk":107374182400},{"maxcpu":16,"disk":0,"diskwrite":0,"vmid":202,"netout":0,"type":"qemu","uptime":0,"id":"qemu/202","template":0,"maxdisk":107374182400,"netin":0,"maxmem":34359738368,"mem":0,"name":"dock-tst-px-02","cpu":0,"node":"prox-srv2","status":"stopped","diskread":0},{"id":"qemu/203","uptime":0,"type":"qemu","template":0,"diskwrite":0,"disk":0,"maxcpu":16,"netout":0,"vmid":203,"diskread":0,"status":"stopped","node":"prox-srv2","maxmem":34359738368,"netin":0,"maxdisk":107374182400,"name":"dock-tst-px-03","cpu":0,"mem":0},{"netin":332493011,"maxmem":4294967296,"maxdisk":22548578304,"cpu":0.00571929653067772,"name":"pbg-test-vm-01","mem":616060384,"diskread":235319586,"status":"running","node":"prox-srv1","diskwrite":388026368,"disk":0,"maxcpu":4,"netout":158836,"vmid":2030,"id":"qemu/2030","uptime":188281,"type":"qemu","template":0},{"mem":0,"name":"dock-tst-px-04","cpu":0,"maxdisk":107374182400,"maxmem":34359738368,"netin":0,"node":"prox-srv2","status":"stopped","diskread":0,"vmid":204,"netout":0,"maxcpu":16,"disk":0,"diskwrite":0,"template":0,"type":"qemu","uptime":0,"id":"qemu/204"},{"netin":884050294,"maxmem":8589934592,"maxdisk":21474836480,"name":"tst-telmate-px-01","cpu":0.00571929653067772,"mem":456253440,"diskread":203373346,"status":"running","node":"prox-srv1","diskwrite":133739520,"disk":0,"maxcpu":4,"netout":520448,"vmid":2040,"id":"qemu/2040","uptime":534333,"type":"qemu","template":0},{"template":0,"id":"qemu/2041","uptime":204872,"type":"qemu","netout":254170,"vmid":2041,"diskwrite":246330368,"disk":0,"maxcpu":6,"status":"running","diskread":226190114,"node":"prox-srv1","cpu":0.00364708764275101,"name":"tst-telmate-px-02","mem":456134656,"netin":358206994,"maxmem":8589934592,"maxdisk":37580963840},{"node":"prox-srv1","status":"running","diskread":2299994926,"maxdisk":0,"netin":71509511,"maxmem":2147483648,"mem":1930559488,"cpu":0.00248665066551205,"name":"ya-tst","uptime":34390,"type":"qemu","id":"qemu/2042","template":0,"disk":0,"maxcpu":2,"diskwrite":147456,"vmid":2042,"netout":113979},{"type":"qemu","uptime":169422,"id":"qemu/205","template":0,"maxcpu":16,"disk":0,"diskwrite":2574200102912,"vmid":205,"netout":11494237194,"node":"prox-srv2","status":"running","diskread":297734144,"maxdisk":107374182400,"maxmem":34359738368,"netin":37552767075,"mem":32916221952,"name":"dock-tst-px-05","cpu":0.782078608653158},{"node":"prox-srv2","status":"running","diskread":2441216,"mem":29236150272,"cpu":0.784307811338155,"name":"dock-tst-px-06","maxdisk":107374182400,"maxmem":34359738368,"netin":25547684718,"template":0,"uptime":168776,"type":"qemu","id":"qemu/206","vmid":206,"netout":8111959675,"disk":0,"maxcpu":16,"diskwrite":2365146583040},{"name":"devops-multi8nodes-app-px-01","cpu":0.131027580040387,"mem":3333677056,"maxmem":4294967296,"netin":528367539396,"maxdisk":42949672960,"diskread":272088354,"status":"running","node":"prox-srv2","netout":165045519020,"vmid":207,"diskwrite":8146781184,"disk":0,"maxcpu":4,"template":0,"id":"qemu/207","uptime":723580,"type":"qemu"},{"id":"qemu/208","type":"qemu","uptime":726139,"template":0,"diskwrite":19920372736,"maxcpu":4,"disk":0,"netout":70710413196,"vmid":208,"diskread":251047714,"status":"running","node":"prox-srv2","netin":57994838417,"maxmem":4294967296,"maxdisk":42949672960,"cpu":0.0502809050060463,"name":"devops-multi8nodes-nats-px-01","mem":759685120},{"diskread":251342114,"status":"running","node":"prox-srv2","netin":59886043582,"maxmem":4294967296,"maxdisk":42949672960,"name":"devops-multi8nodes-nats-px-02","cpu":0.0428502293893892,"mem":512671744,"id":"qemu/209","uptime":726141,"type":"qemu","template":0,"diskwrite":635433984,"disk":0,"maxcpu":4,"netout":72186849197,"vmid":209},{"type":"qemu","uptime":726097,"id":"qemu/210","template":0,"maxcpu":4,"disk":0,"diskwrite":669340672,"vmid":210,"netout":224291376110,"node":"prox-srv2","status":"running","diskread":266230562,"maxdisk":42949672960,"netin":212841987986,"maxmem":4294967296,"mem":657264640,"cpu":0.0502809050060463,"name":"devops-multi8nodes-nats-px-03"},{"status":"running","diskread":11590329944,"node":"prox-srv2","name":"devops-multi8nodes-operdb-px-01","cpu":0.315927558301537,"mem":31135223808,"netin":80572878455,"maxmem":34359738368,"maxdisk":128849018880,"template":0,"id":"qemu/211","uptime":726070,"type":"qemu","netout":495918455270,"vmid":211,"diskwrite":586759325696,"disk":0,"maxcpu":16},{"netout":1548062402,"vmid":212,"diskwrite":1046504448,"maxcpu":4,"disk":0,"template":0,"id":"qemu/212","type":"qemu","uptime":726141,"cpu":0.0151090404205361,"name":"devops-multi8nodes-tensordb-px-01","mem":838639616,"netin":1374703477,"maxmem":4294967296,"maxdisk":42949672960,"status":"running","diskread":271051042,"node":"prox-srv2"},{"type":"qemu","uptime":726097,"id":"qemu/213","template":0,"maxcpu":4,"disk":0,"diskwrite":646120448,"vmid":213,"netout":5859738249,"node":"prox-srv2","status":"running","diskread":263106338,"maxdisk":42949672960,"netin":1872969954,"maxmem":4294967296,"mem":535384064,"cpu":0.0160997971694237,"name":"devops-multi8nodes-nginx-px-01"},{"diskread":366603554,"status":"running","node":"prox-srv2","maxmem":4294967296,"netin":587723188458,"maxdisk":42949672960,"name":"devops-multi8nodes-pgbouncer-px-01","cpu":0.0495378374443806,"mem":3991617536,"id":"qemu/214","type":"qemu","uptime":725770,"template":0,"diskwrite":15307269120,"maxcpu":4,"disk":0,"netout":590315095313,"vmid":214},{"type":"qemu","uptime":179364,"id":"qemu/215","template":0,"maxcpu":32,"disk":0,"diskwrite":5375035732992,"vmid":215,"netout":69601880396,"node":"prox-srv1","diskread":3782418323968,"status":"running","maxdisk":536870912000,"netin":213103744604,"maxmem":154618822656,"mem":41106235392,"cpu":0.125358276675126,"name":"qa-bnch-px-01"},{"tags":"gitlab-runner","maxcpu":12,"disk":0,"diskwrite":119049328128,"vmid":306,"netout":802817245,"type":"qemu","uptime":951065,"id":"qemu/306","template":0,"maxdisk":161061273600,"netin":23382603066,"maxmem":17179869184,"mem":2702327808,"name":"gitlab-runner-px-06","cpu":0.000661262835022451,"node":"prox-srv3","diskread":568681570,"status":"running"},{"template":0,"uptime":114692,"type":"qemu","id":"qemu/307","vmid":307,"netout":365230173,"disk":0,"maxcpu":8,"tags":" ","diskwrite":7871237632,"node":"prox-srv3","status":"running","diskread":2587589034,"mem":7115010048,"name":"xd-host-px-01","cpu":0.0267811448184092,"maxdisk":32212254720,"maxmem":17179869184,"netin":1420262289},{"cpu":0.0271531051631094,"name":"xd-host-px-02","mem":7079538688,"netin":1270517152,"maxmem":17179869184,"maxdisk":32212254720,"diskread":2051070600,"status":"running","node":"prox-srv3","netout":126058945,"vmid":308,"diskwrite":6176487424,"disk":0,"maxcpu":8,"template":0,"id":"qemu/308","uptime":119177,"type":"qemu"},{"diskread":2063543432,"status":"running","node":"prox-srv3","maxmem":17179869184,"netin":1256723740,"maxdisk":32212254720,"cpu":0.00694325976773573,"name":"xd-host-px-03","mem":7067602944,"id":"qemu/309","uptime":118982,"type":"qemu","template":0,"diskwrite":6333149184,"disk":0,"maxcpu":8,"netout":126101881,"vmid":309},{"id":"qemu/310","type":"qemu","uptime":118674,"template":0,"diskwrite":3738549248,"maxcpu":8,"disk":0,"netout":812870365,"vmid":310,"status":"running","diskread":1431524710,"node":"prox-srv3","netin":785897125,"maxmem":17179869184,"maxdisk":128849018880,"cpu":0.0091750218359365,"name":"xd-mgmt-px-01","mem":6346158080},{"diskread":606787772,"status":"running","node":"prox-srv3","netin":515851534,"maxmem":4294967296,"maxdisk":128849018880,"cpu":0.0247973563133419,"name":"xd-storage-px-01","mem":660672512,"id":"qemu/311","type":"qemu","uptime":118671,"template":0,"diskwrite":4265457664,"maxcpu":2,"disk":0,"netout":187235916,"vmid":311},{"template":0,"type":"qemu","uptime":118668,"id":"qemu/312","vmid":312,"netout":168736809,"maxcpu":2,"disk":0,"diskwrite":3818182656,"node":"prox-srv3","diskread":607923900,"status":"running","mem":592306176,"name":"xd-storage-px-02","cpu":0.0252933034396087,"maxdisk":128849018880,"maxmem":4294967296,"netin":477737843},{"disk":0,"maxcpu":4,"diskwrite":19119756288,"vmid":314,"netout":36226635,"uptime":26334,"type":"qemu","id":"qemu/314","template":0,"maxdisk":118111600640,"maxmem":12884901888,"netin":69067582,"mem":7388069888,"cpu":0.199618718322402,"name":"xd-dcim-px-01","node":"prox-srv3","diskread":3158097678,"status":"running"},{"uptime":48486,"type":"qemu","id":"qemu/315","template":0,"disk":0,"maxcpu":4,"diskwrite":64961536,"vmid":315,"netout":514867,"node":"prox-srv3","diskread":979635168,"status":"running","maxdisk":118111600640,"maxmem":8589934592,"netin":100880243,"mem":317329408,"cpu":0.00967096896220334,"name":"xd-dcil-px-01"},{"diskwrite":155010073600,"disk":0,"maxcpu":8,"netout":7396450483,"vmid":902,"id":"qemu/902","uptime":1164287,"type":"qemu","template":0,"netin":11930682889,"maxmem":17179869184,"maxdisk":85899345920,"name":"vm-alse-tst1","cpu":0.00458751091796825,"mem":2995810304,"status":"running","diskread":1230365474,"node":"prox-srv3"},{"node":"prox-srv3","status":"running","diskread":270824226,"mem":707825664,"name":"vm-aste-tst2","cpu":0.00458751091796825,"maxdisk":85899345920,"maxmem":17179869184,"netin":9449648174,"template":0,"uptime":1164320,"type":"qemu","id":"qemu/903","vmid":903,"netout":9835524112,"disk":0,"maxcpu":8,"diskwrite":1825833984},{"status":"stopped","diskread":0,"node":"prox-srv1","cpu":0,"name":"alse-1.7.4uu1-cloud-base-template","mem":0,"maxmem":2147483648,"netin":0,"maxdisk":3145728000,"template":1,"id":"qemu/906","uptime":0,"type":"qemu","netout":0,"vmid":906,"diskwrite":0,"disk":0,"maxcpu":4},{"name":"astra1.7.4-base-template-pve-agent-cloud-init","cpu":0,"mem":0,"netin":0,"maxmem":4294967296,"maxdisk":21474836480,"status":"stopped","diskread":0,"node":"prox-srv3","netout":0,"vmid":907,"diskwrite":0,"tags":" ","maxcpu":2,"disk":0,"template":1,"id":"qemu/907","type":"qemu","uptime":0},{"diskwrite":0,"maxcpu":2,"disk":0,"netout":0,"vmid":908,"id":"qemu/908","type":"qemu","uptime":0,"template":1,"maxmem":2147483648,"netin":0,"maxdisk":2147483648,"cpu":0,"name":"debian12-cloud-init-template","mem":0,"diskread":0,"status":"stopped","node":"prox-srv3"},{"vmid":909,"netout":0,"disk":0,"maxcpu":2,"tags":" ","diskwrite":0,"template":1,"uptime":0,"type":"qemu","id":"qemu/909","mem":0,"cpu":0,"name":"alse1.7.4-base-template-3disks-cloud-init","maxdisk":21474836480,"maxmem":4294967296,"netin":0,"node":"prox-srv3","status":"stopped","diskread":0},{"maxdisk":21474836480,"netin":0,"maxmem":4294967296,"mem":0,"cpu":0,"name":"astra1.7.4-base-template","node":"prox-srv2","diskread":0,"status":"stopped","disk":0,"maxcpu":2,"tags":" ","diskwrite":0,"vmid":910,"netout":0,"uptime":0,"type":"qemu","id":"qemu/910","template":1},{"template":1,"uptime":0,"type":"qemu","id":"qemu/911","vmid":911,"netout":0,"disk":0,"maxcpu":2,"diskwrite":0,"node":"prox-srv3","diskread":0,"status":"stopped","mem":0,"name":"template-alse-vanilla-1.7.4-cloud-base-mg11.3.0","cpu":0,"maxdisk":3145728000,"maxmem":4294967296,"netin":0}]}" tf_http_trans_id=edd9426b-d4f4-9edf-ceb0-309b280113b1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 Date="Thu, 26 Oct 2023 15:52:46 GMT" tf_mux_provider=tf5to6server.v5tov6Server Cache-Control=max-age=0 Connection=Keep-Alive tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 timestamp=2023-10-26T18:52:46.249+0300
2023-10-26T18:52:46.250+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: Accept-Encoding=gzip tf_http_req_uri=/api2/json/nodes/prox-srv1/qemu/1001/config Host=10.177.144.6:8006 @module=proxmox Accept=application/json User-Agent=Go-http-client/1.1 tf_http_req_method=GET tf_http_req_version=HTTP/1.1 tf_http_trans_id=7cee486b-9eee-d96a-5b11-8dd059caa471 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== tf_http_op_type=request tf_http_req_body= tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange timestamp=2023-10-26T18:52:46.250+0300
2023-10-26T18:52:46.262+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: tf_rpc=ApplyResourceChange Date="Thu, 26 Oct 2023 15:52:46 GMT" Pragma=no-cache tf_http_trans_id=7cee486b-9eee-d96a-5b11-8dd059caa471 tf_provider_addr=registry.terraform.io/bpg/proxmox Cache-Control=max-age=0 tf_http_res_body="{"data":{"ipconfig0":"ip=dhcp","net0":"virtio=9E:18:D8:18:DB:01,bridge=vmbr0,firewall=0","vmgenid":"cba38b8c-7dbc-47c5-95ed-4747d4d9dfbc","cpuunits":1024,"arch":"x86_64","cores":1,"memory":2048,"balloon":0,"template":1,"sockets":2,"tags":"template-astra-1.7.4-base;templates;terraform","vga":"memory=32,type=serial0","ide2":"local:1001/vm-1001-cloudinit.qcow2,media=cdrom","meta":"creation-qemu=8.0.2,ctime=1698335559","smbios1":"uuid=8db7cf90-bcc6-4b29-9481-1b794f3446df","tablet":1,"description":"Astra Linux 1.7.4 Orel template","keyboard":"en-us","scsihw":"virtio-scsi-single","cpu":"cputype=host","cicustom":"user=local:snippets/userdata-proxmox-raw-file.yml","name":"template-astra-1.7.4-base","digest":"bc74a9cce1dfc30db0e01d98c8c003aac3d457f8","scsi0":"local:1001/vm-1001-disk-0.qcow2,cache=none,discard=on,iothread=1,size=3G,ssd=1","onboot":0,"serial0":"socket","agent":"enabled=1,fstrim_cloned_disks=1,type=virtio","bios":"seabios","numa":1,"boot":"order=scsi0;net0","ostype":"l26","acpi":1}}" tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Content-Length=1002 Content-Type=application/json;charset=UTF-8 Server=pve-api-daemon/3.0 tf_http_op_type=response tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Connection=Keep-Alive Expires="Thu, 26 Oct 2023 15:52:46 GMT" tf_http_res_version=HTTP/1.1 timestamp=2023-10-26T18:52:46.262+0300
2023-10-26T18:52:46.263+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_http_req_version=HTTP/1.1 tf_http_trans_id=d248022e-366e-0f27-e99e-960874a64b8b tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 Accept=application/json Host=10.177.144.6:8006 tf_http_op_type=request tf_http_req_body= User-Agent=Go-http-client/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 tf_http_req_uri=/api2/json/nodes/prox-srv1/qemu/1001/status/current tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox Accept-Encoding=gzip Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== tf_http_req_method=GET tf_rpc=ApplyResourceChange timestamp=2023-10-26T18:52:46.262+0300
2023-10-26T18:52:46.312+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: Date="Thu, 26 Oct 2023 15:52:46 GMT" Pragma=no-cache Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] Content-Length=340 tf_http_res_body={"data":{"cpu":0,"diskread":0,"ha":{"managed":0},"template":1,"vmid":1001,"mem":0,"agent":1,"maxmem":2147483648,"diskwrite":0,"netin":0,"qmpstatus":"stopped","tags":"template-astra-1.7.4-base;templates;terraform","netout":0,"maxdisk":3221225472,"disk":0,"serial":1,"cpus":2,"status":"stopped","name":"template-astra-1.7.4-base","uptime":0}} tf_http_res_status_code=200 tf_http_trans_id=d248022e-366e-0f27-e99e-960874a64b8b tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Server=pve-api-daemon/3.0 tf_http_op_type=response tf_rpc=ApplyResourceChange tf_provider_addr=registry.terraform.io/bpg/proxmox tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=f2e98020-7aeb-1abf-a399-1812e053c4a6 @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 Expires="Thu, 26 Oct 2023 15:52:46 GMT" timestamp=2023-10-26T18:52:46.311+0300
2023-10-26T18:52:46.313+0300 [WARN] Provider "provider[\"registry.terraform.io/bpg/proxmox\"]" produced an unexpected new value for module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base, 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:
- .machine: was null, but now cty.StringVal("")
- .kvm_arguments: was null, but now cty.StringVal("")
- .initialization[0].vendor_data_file_id: was null, but now cty.StringVal("")
- .initialization[0].meta_data_file_id: was null, but now cty.StringVal("")
- .initialization[0].network_data_file_id: was null, but now cty.StringVal("")
- .initialization[0].type: was null, but now cty.StringVal("")
- .initialization[0].ip_config[0].ipv4[0].gateway: was null, but now cty.StringVal("")
module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base: Creation complete after 6s [id=1001]
2023-10-26T18:52:46.313+0300 [DEBUG] State storage *remote.State declined to persist a state snapshot
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [7m1s elapsed]
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [7m11s elapsed]
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [7m21s elapsed]
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [7m31s elapsed]
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [7m41s elapsed]
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [7m51s elapsed]
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Still creating... [8m1s elapsed]
2023-10-26T18:53:57.507+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: Expires="Thu, 26 Oct 2023 15:53:57 GMT" tf_http_op_type=response tf_http_res_body={"data":"UPID:prox-srv1:001A3C1F:032FCA9A:653A8B95:imgcopy::root@pam:"} tf_http_res_status_code=200 tf_provider_addr=registry.terraform.io/bpg/proxmox Cache-Control=max-age=0 Date="Thu, 26 Oct 2023 15:53:57 GMT" tf_rpc=ApplyResourceChange @module=proxmox Pragma=no-cache tf_resource_type=proxmox_virtual_environment_file tf_http_res_status_reason="200 OK" @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 Server=pve-api-daemon/3.0 tf_http_res_version=HTTP/1.1 tf_http_trans_id=15278303-6a0b-63b4-cd1a-68f53244cdf1 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=b0aadb2c-11e0-f64a-d9a7-14fe045f2ebd Content-Length=71 timestamp=2023-10-26T18:53:57.507+0300
2023-10-26T18:53:57.508+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: Accept=application/json tf_req_id=b0aadb2c-11e0-f64a-d9a7-14fe045f2ebd @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== User-Agent=Go-http-client/1.1 tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox tf_http_req_method=GET tf_http_req_uri=/api2/json/nodes/prox-srv1/tasks/UPID:prox-srv1:001A3C1F:032FCA9A:653A8B95:imgcopy::root@pam:/status tf_http_req_version=HTTP/1.1 tf_http_trans_id=e55623eb-2b9c-595e-ebd9-c4681c93e364 tf_resource_type=proxmox_virtual_environment_file tf_rpc=ApplyResourceChange Accept-Encoding=gzip Host=10.177.144.6:8006 tf_http_op_type=request tf_http_req_body= tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp=2023-10-26T18:53:57.508+0300
2023-10-26T18:53:57.570+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: Expires="Thu, 26 Oct 2023 15:53:57 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_reason="200 OK" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange Cache-Control=max-age=0 Date="Thu, 26 Oct 2023 15:53:57 GMT" Pragma=no-cache tf_http_op_type=response tf_http_res_status_code=200 tf_http_res_version=HTTP/1.1 tf_http_trans_id=e55623eb-2b9c-595e-ebd9-c4681c93e364 @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Content-Length=216 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_file Connection=[Keep-Alive, Keep-Alive] tf_http_res_body={"data":{"upid":"UPID:prox-srv1:001A3C1F:032FCA9A:653A8B95:imgcopy::root@pam:","pstart":53463706,"user":"root@pam","status":"running","id":"","type":"imgcopy","node":"prox-srv1","pid":1719327,"starttime":1698335637}} @module=proxmox tf_req_id=b0aadb2c-11e0-f64a-d9a7-14fe045f2ebd Content-Type=application/json;charset=UTF-8 timestamp=2023-10-26T18:53:57.570+0300
2023-10-26T18:54:02.580+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: @module=proxmox Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== tf_http_req_uri=/api2/json/nodes/prox-srv1/tasks/UPID:prox-srv1:001A3C1F:032FCA9A:653A8B95:imgcopy::root@pam:/status tf_http_req_version=HTTP/1.1 tf_http_trans_id=2d5284f1-8cf5-5e12-c2ff-24191423d780 tf_mux_provider=tf5to6server.v5tov6Server Accept=application/json Host=10.177.144.6:8006 tf_http_req_method=GET tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Accept-Encoding=gzip tf_http_op_type=request tf_req_id=b0aadb2c-11e0-f64a-d9a7-14fe045f2ebd User-Agent=Go-http-client/1.1 tf_http_req_body= tf_resource_type=proxmox_virtual_environment_file tf_rpc=ApplyResourceChange timestamp=2023-10-26T18:54:02.580+0300
2023-10-26T18:54:02.643+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: @module=proxmox Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 tf_http_op_type=response tf_http_res_body={"data":{"upid":"UPID:prox-srv1:001A3C1F:032FCA9A:653A8B95:imgcopy::root@pam:","pstart":53463706,"user":"root@pam","status":"stopped","id":"","type":"imgcopy","exitstatus":"OK","node":"prox-srv1","pid":1719327,"starttime":1698335637}} tf_http_trans_id=2d5284f1-8cf5-5e12-c2ff-24191423d780 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=b0aadb2c-11e0-f64a-d9a7-14fe045f2ebd tf_resource_type=proxmox_virtual_environment_file tf_rpc=ApplyResourceChange tf_http_res_version=HTTP/1.1 Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_mux_provider=tf5to6server.v5tov6Server Content-Length=234 Date="Thu, 26 Oct 2023 15:54:02 GMT" Expires="Thu, 26 Oct 2023 15:54:02 GMT" Pragma=no-cache @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 timestamp=2023-10-26T18:54:02.643+0300
2023-10-26T18:54:02.643+0300 [ERROR] provider.terraform-provider-proxmox_v0.35.1: failed to close file reader: @caller=github.com/bpg/terraform-provider-proxmox/proxmox/nodes/storage.go:244 tf_rpc=ApplyResourceChange tf_req_id=b0aadb2c-11e0-f64a-d9a7-14fe045f2ebd tf_resource_type=proxmox_virtual_environment_file @module=proxmox error="close /tmp/multipart3578160347: file already closed" tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp=2023-10-26T18:54:02.643+0300
2023-10-26T18:54:02.663+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_file tf_rpc=ApplyResourceChange Accept-Encoding=gzip Host=10.177.144.6:8006 tf_http_req_body= tf_http_req_version=HTTP/1.1 tf_req_id=b0aadb2c-11e0-f64a-d9a7-14fe045f2ebd @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 tf_http_op_type=request Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== User-Agent=Go-http-client/1.1 tf_http_trans_id=8f9f1eed-7f9f-c9d6-610d-df222a37466c @module=proxmox Accept=application/json tf_mux_provider=tf5to6server.v5tov6Server tf_http_req_method=GET tf_http_req_uri=/api2/json/nodes/prox-srv1/storage/local/content timestamp=2023-10-26T18:54:02.662+0300
2023-10-26T18:54:02.764+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: Content-Type=application/json;charset=UTF-8 tf_http_op_type=response tf_http_trans_id=8f9f1eed-7f9f-c9d6-610d-df222a37466c tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox Cache-Control=max-age=0 tf_req_id=b0aadb2c-11e0-f64a-d9a7-14fe045f2ebd tf_http_res_body={"data":[{"volid":"local:1001/vm-1001-cloudinit.qcow2","parent":null,"ctime":1698335559,"content":"images","vmid":1001,"format":"qcow2","used":266240,"size":4194304},{"format":"qcow2","vmid":1001,"content":"images","ctime":1698335565,"size":3221225472,"used":1581596672,"volid":"local:1001/vm-1001-disk-0.qcow2","parent":null},{"size":498993664,"format":"iso","volid":"local:iso/alse-vanilla-1.7.4-cloud-base.img","ctime":1698335460,"content":"iso"},{"size":379256832,"format":"iso","volid":"local:iso/debian-12-generic-amd64.img","content":"iso","ctime":1698335321},{"ctime":1698335638,"content":"iso","volid":"local:iso/ubuntu-22.04-server-cloudimg-amd64.img","format":"iso","size":672268288},{"size":2133391360,"format":"iso","volid":"local:iso/ubuntu-22.04.3-live-server-amd64.iso","content":"iso","ctime":1698300974},{"size":1213,"ctime":1698335155,"content":"snippets","volid":"local:snippets/userdata-proxmox-raw-file.yml","format":"snippet"}]} tf_http_res_status_reason="200 OK" tf_http_res_status_code=200 tf_resource_type=proxmox_virtual_environment_file tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Content-Length=951 Pragma=no-cache tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server Connection=[Keep-Alive, Keep-Alive] Date="Thu, 26 Oct 2023 15:54:02 GMT" Expires="Thu, 26 Oct 2023 15:54:02 GMT" Server=pve-api-daemon/3.0 timestamp=2023-10-26T18:54:02.764+0300
2023-10-26T18:54:03.031+0300 [WARN] Provider "provider[\"registry.terraform.io/bpg/proxmox\"]" produced an unexpected new value for module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204, 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].checksum: was null, but now cty.StringVal("")
- .source_file[0].file_name: was null, but now cty.StringVal("")
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Creation complete after 8m8s [id=local:iso/ubuntu-22.04-server-cloudimg-amd64.img]
2023-10-26T18:54:03.032+0300 [DEBUG] states/remote: state read serial is: 230; serial is: 230
2023-10-26T18:54:03.032+0300 [DEBUG] states/remote: state read lineage is: 0fea1ec8-feff-c8bc-a52f-150499d0c828; lineage is: 0fea1ec8-feff-c8bc-a52f-150499d0c828
2023-10-26T18:54:03.032+0300 [DEBUG] Uploading remote state to S3: {
Body: buffer(0xc0015d6f90),
Bucket: "tf-bucket",
ContentLength: 16649,
ContentType: "application/json",
Key: "proxmox/terraform.tfstate"
}
2023-10-26T18:54:03.033+0300 [DEBUG] [aws-sdk-go] DEBUG: Request s3/PutObject Details:
---[ REQUEST POST-SIGN ]-----------------------------
PUT /proxmox/terraform.tfstate HTTP/1.1
Host: NUH-UH
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.5.7 aws-sdk-go/1.44.122 (go1.20.7; linux; amd64)
Content-Length: 16649
Authorization: NUH-UH
Content-Md5: cofhDShDA0L/PvUOqdd8nw==
Content-Type: application/json
X-Amz-Content-Sha256: 3708e0a4050b56c6f57857f5447ffae26abcd801ab0eff7a0648a544518b9452
X-Amz-Date: 20231026T155403Z
Accept-Encoding: gzip
{
"version": 4,
"terraform_version": "1.5.7",
"serial": 231,
"lineage": "0fea1ec8-feff-c8bc-a52f-150499d0c828",
"outputs": {},
"resources": [
{
"module": "module.proxmox",
"mode": "data",
"type": "proxmox_virtual_environment_vms",
"name": "template_vms",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "17cddcf7-e88c-4958-b23a-ab836b8b3809",
"node_name": null,
"tags": [
"templates"
],
"vms": []
},
"sensitive_attributes": []
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_file",
"name": "cloud_config_userdata_raw_file",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"index_key": "prox-srv1",
"schema_version": 0,
"attributes": {
"content_type": "snippets",
"datastore_id": "local",
"file_modification_date": null,
"file_name": "userdata-proxmox-raw-file.yml",
"file_size": null,
"file_tag": null,
"id": "local:snippets/userdata-proxmox-raw-file.yml",
"node_name": "prox-srv1",
"overwrite": true,
"source_file": [],
"source_raw": [
{
"data": "#cloud-config\nhostname: px-cloud-config-applied\nusers:\n - name: tf\n groups: adm,sudo\n shell: /bin/bash\n sudo: ['ALL=(ALL) NOPASSWD:ALL']\n ssh-authorized-keys:\n - ssh-rsa AAAABkey== tf\n\npackages:\n- qemu-guest-agent\npackage_upgrade: true\n\nruncmd:\n - systemctl enable --now qemu-guest-agent\n - echo \"done\" \u003e /tmp/user-cloud-init-done\n\nfinal_message: |\n cloud-init has finished\n version: $version\n timestamp: $timestamp\n datasource: $datasource\n uptime: $uptime\n Ratiborus was here...\n",
"file_name": "userdata-proxmox-raw-file.yml",
"resize": 0
}
],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
},
{
"index_key": "prox-srv2",
"schema_version": 0,
"attributes": {
"content_type": "snippets",
"datastore_id": "local",
"file_modification_date": null,
"file_name": "userdata-proxmox-raw-file.yml",
"file_size": null,
"file_tag": null,
"id": "local:snippets/userdata-proxmox-raw-file.yml",
"node_name": "prox-srv2",
"overwrite": true,
"source_file": [],
"source_raw": [
{
"data": "#cloud-config\nhostname: px-cloud-config-applied\nusers:\n - name: tf\n groups: adm,sudo\n shell: /bin/bash\n sudo: ['ALL=(ALL) NOPASSWD:ALL']\n ssh-authorized-keys:\n - ssh-rsa AAAABkey== tf\n\npackages:\n- qemu-guest-agent\npackage_upgrade: true\n\nruncmd:\n - systemctl enable --now qemu-guest-agent\n - echo \"done\" \u003e /tmp/user-cloud-init-done\n\nfinal_message: |\n cloud-init has finished\n version: $version\n timestamp: $timestamp\n datasource: $datasource\n uptime: $uptime\n Ratiborus was here...\n",
"file_name": "userdata-proxmox-raw-file.yml",
"resize": 0
}
],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
},
{
"index_key": "prox-srv3",
"schema_version": 0,
"attributes": {
"content_type": "snippets",
"datastore_id": "local",
"file_modification_date": null,
"file_name": "userdata-proxmox-raw-file.yml",
"file_size": null,
"file_tag": null,
"id": "local:snippets/userdata-proxmox-raw-file.yml",
"node_name": "prox-srv3",
"overwrite": true,
"source_file": [],
"source_raw": [
{
"data": "#cloud-config\nhostname: px-cloud-config-applied\nusers:\n - name: tf\n groups: adm,sudo\n shell: /bin/bash\n sudo: ['ALL=(ALL) NOPASSWD:ALL']\n ssh-authorized-keys:\n - ssh-rsa AAAABkey== tf\n\npackages:\n- qemu-guest-agent\npackage_upgrade: true\n\nruncmd:\n - systemctl enable --now qemu-guest-agent\n - echo \"done\" \u003e /tmp/user-cloud-init-done\n\nfinal_message: |\n cloud-init has finished\n version: $version\n timestamp: $timestamp\n datasource: $datasource\n uptime: $uptime\n Ratiborus was here...\n",
"file_name": "userdata-proxmox-raw-file.yml",
"resize": 0
}
],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_file",
"name": "cloud_image_astra_174_base",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"content_type": "iso",
"datastore_id": "local",
"file_modification_date": "2023-09-21T16:54:48Z",
"file_name": "alse-vanilla-1.7.4-cloud-base.img",
"file_size": 498993664,
"file_tag": "",
"id": "local:iso/alse-vanilla-1.7.4-cloud-base.img",
"node_name": "prox-srv1",
"overwrite": true,
"source_file": [
{
"changed": false,
"checksum": "",
"file_name": "alse-vanilla-1.7.4-cloud-base.img",
"insecure": false,
"path": "https://dl.astralinux.ru/artifactory/mg-generic/alse/cloud/alse-vanilla-1.7.4uu1-cloud-base-mg11.3.0.qcow2"
}
],
"source_raw": [],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_file",
"name": "cloud_image_debian_12",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"content_type": "iso",
"datastore_id": "local",
"file_modification_date": "2023-10-13T16:39:44Z",
"file_name": "debian-12-generic-amd64.img",
"file_size": 379256832,
"file_tag": "",
"id": "local:iso/debian-12-generic-amd64.img",
"node_name": "prox-srv1",
"overwrite": true,
"source_file": [
{
"changed": false,
"checksum": "",
"file_name": "debian-12-generic-amd64.img",
"insecure": false,
"path": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2"
}
],
"source_raw": [],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_file",
"name": "cloud_image_ubuntu_2204",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"content_type": "iso",
"datastore_id": "local",
"file_modification_date": "2023-10-26T09:11:20Z",
"file_name": "ubuntu-22.04-server-cloudimg-amd64.img",
"file_size": 672268288,
"file_tag": "28120000-6089af48735b1",
"id": "local:iso/ubuntu-22.04-server-cloudimg-amd64.img",
"node_name": "prox-srv1",
"overwrite": true,
"source_file": [
{
"changed": false,
"checksum": "",
"file_name": "",
"insecure": false,
"path": "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
}
],
"source_raw": [],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_pool",
"name": "templates",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"comment": "Pool for template VMs, managed by Terraform",
"id": "templates",
"members": [],
"pool_id": "templates"
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_vm",
"name": "template_astra_174_base",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"acpi": true,
"agent": [
{
"enabled": true,
"timeout": "15m",
"trim": true,
"type": "virtio"
}
],
"audio_device": [],
"bios": "seabios",
"boot_order": null,
"cdrom": [],
"clone": [],
"cpu": [
{
"architecture": "x86_64",
"cores": 1,
"flags": null,
"hotplugged": 0,
"numa": true,
"sockets": 2,
"type": "host",
"units": 1024
}
],
"description": "Astra Linux 1.7.4 Orel template",
"disk": [
{
"cache": "none",
"datastore_id": "local",
"discard": "on",
"file_format": "qcow2",
"file_id": "local:iso/alse-vanilla-1.7.4-cloud-base.img",
"interface": "scsi0",
"iothread": true,
"path_in_datastore": "1001/vm-1001-disk-0.qcow2",
"size": 3,
"speed": [],
"ssd": true
}
],
"efi_disk": [],
"hostpci": [],
"id": "1001",
"initialization": [
{
"datastore_id": "local",
"dns": [],
"interface": "ide2",
"ip_config": [
{
"ipv4": [
{
"address": "dhcp",
"gateway": ""
}
],
"ipv6": []
}
],
"meta_data_file_id": "",
"network_data_file_id": "",
"type": "",
"user_account": [],
"user_data_file_id": "local:snippets/userdata-proxmox-raw-file.yml",
"vendor_data_file_id": ""
}
],
"ipv4_addresses": [],
"ipv6_addresses": [],
"keyboard_layout": "en-us",
"kvm_arguments": "",
"mac_addresses": [
"9E:18:D8:18:DB:01"
],
"machine": "",
"memory": [
{
"dedicated": 2048,
"floating": 0,
"shared": 0
}
],
"migrate": true,
"name": "template-astra-1.7.4-base",
"network_device": [
{
"bridge": "vmbr0",
"enabled": true,
"firewall": false,
"mac_address": "9E:18:D8:18:DB:01",
"model": "virtio",
"mtu": 0,
"queues": 0,
"rate_limit": 0,
"vlan_id": 0
}
],
"network_interface_names": [],
"node_name": "prox-srv1",
"on_boot": false,
"operating_system": [
{
"type": "l26"
}
],
"pool_id": "templates",
"reboot": false,
"scsi_hardware": "virtio-scsi-single",
"serial_device": [
{
"device": "socket"
}
],
"smbios": [],
"started": null,
"startup": [],
"tablet_device": true,
"tags": [
"template-astra-1.7.4-base",
"templates",
"terraform"
],
"template": true,
"timeout_clone": 1800,
"timeout_migrate": 1800,
"timeout_move_disk": 1800,
"timeout_reboot": 1800,
"timeout_shutdown_vm": 1800,
"timeout_start_vm": 1800,
"timeout_stop_vm": 300,
"vga": [
{
"enabled": true,
"memory": 32,
"type": "serial0"
}
],
"vm_id": 1001
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file",
"module.proxmox.proxmox_virtual_environment_file.cloud_image_astra_174_base",
"module.proxmox.proxmox_virtual_environment_pool.templates"
]
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_vm",
"name": "template_ubuntu_2204",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": []
}
],
"check_results": null
}
-----------------------------------------------------
2023-10-26T18:54:03.081+0300 [DEBUG] [aws-sdk-go] DEBUG: Response s3/PutObject Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Connection: close
Content-Type: application/octet-stream
Date: Thu, 26 Oct 2023 15:54:03 GMT
Etag: "7287e10d28430342ff3ef50ea9d77c9f"
Server: nginx
X-Amz-Request-Id: a6fe4e4628c1c726
X-Amz-Version-Id: 000608A094B7BC64
-----------------------------------------------------
2023-10-26T18:54:03.081+0300 [DEBUG] [aws-sdk-go]
2023-10-26T18:54:03.094+0300 [WARN] Provider "registry.terraform.io/bpg/proxmox" produced an invalid plan for module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204, 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:
- .timeout_clone: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .tablet_device: planned value cty.True for a non-computed attribute
- .timeout_move_disk: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .timeout_start_vm: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .timeout_stop_vm: planned value cty.NumberIntVal(300) for a non-computed attribute
- .started: planned value cty.NullVal(cty.Bool) does not match config value cty.False
- .timeout_shutdown_vm: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .bios: planned value cty.StringVal("seabios") for a non-computed attribute
- .keyboard_layout: planned value cty.StringVal("en-us") for a non-computed attribute
- .reboot: planned value cty.False for a non-computed attribute
- .acpi: planned value cty.True for a non-computed attribute
- .timeout_migrate: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .timeout_reboot: planned value cty.NumberIntVal(1800) for a non-computed attribute
- .agent[0].timeout: planned value cty.StringVal("15m") for a non-computed attribute
- .agent[0].type: planned value cty.StringVal("virtio") for a non-computed attribute
- .memory[0].floating: planned value cty.NumberIntVal(0) for a non-computed attribute
- .memory[0].shared: planned value cty.NumberIntVal(0) for a non-computed attribute
- .cpu[0].hotplugged: planned value cty.NumberIntVal(0) for a non-computed attribute
- .cpu[0].units: planned value cty.NumberIntVal(1024) for a non-computed attribute
- .network_device[0].rate_limit: planned value cty.NumberIntVal(0) for a non-computed attribute
- .network_device[0].vlan_id: planned value cty.NumberIntVal(0) for a non-computed attribute
- .network_device[0].model: planned value cty.StringVal("virtio") for a non-computed attribute
- .network_device[0].mtu: planned value cty.NumberIntVal(0) for a non-computed attribute
- .network_device[0].queues: planned value cty.NumberIntVal(0) for a non-computed attribute
- .network_device[0].enabled: planned value cty.True for a non-computed attribute
- .network_device[0].firewall: planned value cty.False for a non-computed attribute
module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204: Creating...
2023-10-26T18:54:03.094+0300 [INFO] Starting apply for module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204
2023-10-26T18:54:03.095+0300 [DEBUG] module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204: applying the planned Create change
2023-10-26T18:54:03.096+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: 2023/10/26 18:54:03 [DEBUG] setting computed for "ipv4_addresses" from ComputedKeys
2023-10-26T18:54:03.096+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: 2023/10/26 18:54:03 [DEBUG] setting computed for "mac_addresses" from ComputedKeys
2023-10-26T18:54:03.096+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: 2023/10/26 18:54:03 [DEBUG] setting computed for "ipv6_addresses" from ComputedKeys
2023-10-26T18:54:03.096+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: 2023/10/26 18:54:03 [DEBUG] setting computed for "network_interface_names" from ComputedKeys
2023-10-26T18:54:03.097+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_http_req_version=HTTP/1.1 tf_http_trans_id=d8320d49-892b-8384-4a61-88331973655c Csrfpreventiontoken=653A89B3:MDrcplT1GWHHRHsN739dggziVOuvxRyyOaPAO5aBKYg Content-Type=application/x-www-form-urlencoded Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== tf_http_req_method=POST tf_http_req_uri=/api2/json/nodes/prox-srv1/qemu tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Accept=application/json Host=10.177.144.6:8006 tf_http_op_type=request tf_http_req_body=acpi=1&agent=enabled%3D1%2Cfstrim_cloned_disks%3D1%2Ctype%3Dvirtio&arch=x86_64&balloon=0&bios=seabios&boot=order%3Dscsi0%3Bnet0&cicustom=user%3Dlocal%3Asnippets%2Fuserdata-proxmox-raw-file.yml&cores=1&cpu=cputype%3Dhost&cpuunits=1024&description=Ubuntu+22.04+template&ide2=file%3Dlocal%3Acloudinit%2Cmedia%3Dcdrom&ipconfig0=ip%3Ddhcp&keyboard=en-us&memory=2048&name=template-ubuntu-22.04&net0=model%3Dvirtio%2Cbridge%3Dvmbr0%2Cfirewall%3D0&numa=1&onboot=0&ostype=l26&pool=templates&scsihw=virtio-scsi-single&serial0=socket&sockets=2&tablet=1&tags=template-ubuntu-22.04%3Btemplates%3Bterraform&template=1&vga=memory%3D32%2Ctype%3Dserial0&vmid=1011 Content-Length=646 Accept-Encoding=gzip User-Agent=Go-http-client/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a tf_resource_type=proxmox_virtual_environment_vm @module=proxmox timestamp=2023-10-26T18:54:03.097+0300
2023-10-26T18:54:03.159+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Content-Type=application/json;charset=UTF-8 tf_http_op_type=response tf_http_res_status_reason="200 OK" tf_mux_provider=tf5to6server.v5tov6Server Cache-Control=max-age=0 tf_http_res_body={"data":"UPID:prox-srv1:001A3C41:032FCCCF:653A8B9B:qmcreate:1011:root@pam:"} Pragma=no-cache tf_http_res_version=HTTP/1.1 Date="Thu, 26 Oct 2023 15:54:03 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_trans_id=d8320d49-892b-8384-4a61-88331973655c tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 @module=proxmox Content-Length=76 Expires="Thu, 26 Oct 2023 15:54:03 GMT" tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a timestamp=2023-10-26T18:54:03.159+0300
2023-10-26T18:54:03.159+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== User-Agent=Go-http-client/1.1 tf_http_req_body= tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a tf_http_op_type=request tf_http_req_uri=/api2/json/nodes/prox-srv1/tasks/UPID:prox-srv1:001A3C41:032FCCCF:653A8B9B:qmcreate:1011:root@pam:/status tf_http_req_version=HTTP/1.1 tf_http_trans_id=0151edb5-46a6-8908-c815-54d533b433f5 @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 @module=proxmox Accept=application/json tf_http_req_method=GET tf_rpc=ApplyResourceChange Accept-Encoding=gzip Host=10.177.144.6:8006 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm timestamp=2023-10-26T18:54:03.159+0300
2023-10-26T18:54:03.221+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 Date="Thu, 26 Oct 2023 15:54:03 GMT" Server=pve-api-daemon/3.0 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Pragma=no-cache tf_http_res_body={"data":{"pid":1719361,"starttime":1698335643,"node":"prox-srv1","type":"qmcreate","id":"1011","status":"running","user":"root@pam","pstart":53464271,"upid":"UPID:prox-srv1:001A3C41:032FCCCF:653A8B9B:qmcreate:1011:root@pam:"}} tf_rpc=ApplyResourceChange Content-Length=226 tf_http_op_type=response tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 Expires="Thu, 26 Oct 2023 15:54:03 GMT" tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_http_trans_id=0151edb5-46a6-8908-c815-54d533b433f5 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a timestamp=2023-10-26T18:54:03.221+0300
2023-10-26T18:54:04.423+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Accept=application/json Accept-Encoding=gzip tf_http_op_type=request tf_http_req_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox tf_http_req_uri=/api2/json/nodes/prox-srv1/tasks/UPID:prox-srv1:001A3C41:032FCCCF:653A8B9B:qmcreate:1011:root@pam:/status tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== User-Agent=Go-http-client/1.1 tf_http_trans_id=5d267684-ef2f-6813-751e-e137a9db40e7 Host=10.177.144.6:8006 tf_http_req_body= tf_http_req_method=GET timestamp=2023-10-26T18:54:04.423+0300
2023-10-26T18:54:04.485+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_res_status_reason="200 OK" tf_resource_type=proxmox_virtual_environment_vm Content-Length=244 Date="Thu, 26 Oct 2023 15:54:04 GMT" tf_http_res_version=HTTP/1.1 tf_rpc=ApplyResourceChange @module=proxmox Expires="Thu, 26 Oct 2023 15:54:04 GMT" Pragma=no-cache tf_http_res_body={"data":{"node":"prox-srv1","starttime":1698335643,"pid":1719361,"exitstatus":"OK","id":"1011","type":"qmcreate","user":"root@pam","status":"stopped","upid":"UPID:prox-srv1:001A3C41:032FCCCF:653A8B9B:qmcreate:1011:root@pam:","pstart":53464271}} tf_http_res_status_code=200 tf_http_trans_id=5d267684-ef2f-6813-751e-e137a9db40e7 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a timestamp=2023-10-26T18:54:04.484+0300
2023-10-26T18:54:04.485+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: executing commands on the node using SSH: @caller=github.com/bpg/terraform-provider-proxmox/proxmox/ssh/client.go:82 @module=proxmox node_port=22 tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange commands=["set -e", file_id="local:iso/ubuntu-22.04-server-cloudimg-amd64.img", file_format="qcow2", datastore_id_target="local", disk_options=",iothread=1,ssd=1,discard=on,cache=none", disk_size="3", disk_interface="scsi0", file_path_tmp="/tmp/vm-1011-disk-0.qcow2", vm_id="1011", "source_image=$(pvesm path "$file_id")", "cp "$source_image" "$file_path_tmp"", "qemu-img resize -f "$file_format" "$file_path_tmp" "${disk_size}G"", "imported_disk="$(qm importdisk "$vm_id" "$file_path_tmp" "$datastore_id_target" -format $file_format | grep "unused0" | cut -d ":" -f 3 | cut -d "'" -f 1)"", disk_id="${datastore_id_target}:$imported_disk${disk_options}", "qm set "$vm_id" "-${disk_interface}" "$disk_id"", "rm -f "$file_path_tmp""] node_address=10.177.144.6 tf_mux_provider=tf5to6server.v5tov6Server timestamp=2023-10-26T18:54:04.485+0300
2023-10-26T18:54:04.486+0300 [INFO] provider.terraform-provider-proxmox_v0.35.1: agent is set to true: tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @caller=github.com/bpg/terraform-provider-proxmox/proxmox/ssh/client.go:278 @module=proxmox timestamp=2023-10-26T18:54:04.486+0300
2023-10-26T18:54:04.605+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: SSH connection established: tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a tf_resource_type=proxmox_virtual_environment_vm user=root @caller=github.com/bpg/terraform-provider-proxmox/proxmox/ssh/client.go:344 tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox host=10.177.144.6:22 tf_rpc=ApplyResourceChange timestamp=2023-10-26T18:54:04.604+0300
2023-10-26T18:54:09.887+0300 [ERROR] provider.terraform-provider-proxmox_v0.35.1: Failed to close: @caller=github.com/bpg/terraform-provider-proxmox/utils/io.go:20 @module=proxmox error=EOF tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a tf_rpc=ApplyResourceChange tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm timestamp=2023-10-26T18:54:09.886+0300
2023-10-26T18:54:09.887+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_rpc=ApplyResourceChange @module=proxmox tf_http_req_uri=/api2/json/cluster/resources?type=vm tf_http_trans_id=cd59389b-8483-1a74-05d0-e892780e9c0b tf_resource_type=proxmox_virtual_environment_vm tf_http_req_version=HTTP/1.1 Accept=application/json Host=10.177.144.6:8006 User-Agent=Go-http-client/1.1 tf_http_req_body= tf_http_req_method=GET tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Accept-Encoding=gzip Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== tf_http_op_type=request tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a timestamp=2023-10-26T18:54:09.887+0300
2023-10-26T18:54:09.912+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: tf_rpc=ApplyResourceChange Pragma=no-cache tf_http_op_type=response tf_http_res_status_reason="200 OK" tf_http_trans_id=cd59389b-8483-1a74-05d0-e892780e9c0b @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 Connection=Keep-Alive tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_http_res_status_code=200 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a @module=proxmox Date="Thu, 26 Oct 2023 15:54:09 GMT" Expires="Thu, 26 Oct 2023 15:54:09 GMT" tf_http_res_body="{"data":[{"template":0,"uptime":1406947,"type":"qemu","id":"qemu/100","vmid":100,"netout":0,"disk":0,"maxcpu":2,"diskwrite":0,"node":"prox-srv3","status":"running","diskread":2560,"mem":29547404,"cpu":0.500477308438193,"name":"100","maxdisk":2147483648,"netin":60,"maxmem":2147483648},{"netin":0,"maxmem":2147483648,"maxdisk":3221225472,"name":"template-astra-1.7.4-base","cpu":0,"mem":0,"status":"stopped","diskread":0,"node":"prox-srv1","diskwrite":0,"tags":"template-astra-1.7.4-base;templates;terraform","maxcpu":2,"disk":0,"pool":"templates","netout":0,"vmid":1001,"id":"qemu/1001","type":"qemu","uptime":0,"template":1},{"template":0,"id":"qemu/101","type":"qemu","uptime":174255,"netout":5523845,"vmid":101,"diskwrite":2730358784,"maxcpu":2,"disk":0,"diskread":257576226,"status":"running","node":"prox-srv3","name":"altrepo","cpu":0.029760791383837,"mem":2095718400,"netin":717946361,"maxmem":4294967296,"maxdisk":21474836480},{"vmid":1011,"pool":"templates","tags":"template-ubuntu-22.04;templates;terraform","node":"prox-srv1","status":"unknown","type":"qemu","id":"qemu/1011"},{"node":"prox-srv3","status":"running","diskread":228756770,"mem":338669568,"cpu":0.0257926858659921,"name":"tst-102","maxdisk":21474836480,"netin":996584224,"maxmem":4294967296,"template":0,"type":"qemu","uptime":608467,"id":"qemu/102","vmid":102,"netout":407242,"maxcpu":2,"tags":" ","disk":0,"diskwrite":203437056},{"id":"qemu/103","type":"qemu","uptime":0,"template":0,"diskwrite":0,"maxcpu":2,"disk":0,"netout":0,"vmid":103,"status":"stopped","diskread":0,"node":"prox-srv2","maxmem":80530636800,"netin":0,"maxdisk":3145728000,"name":"103tst","cpu":0,"mem":0},{"status":"stopped","diskread":0,"node":"prox-srv2","cpu":0,"name":"dock-tst-px-01","mem":0,"netin":0,"maxmem":34359738368,"maxdisk":107374182400,"template":0,"id":"qemu/201","uptime":0,"type":"qemu","netout":0,"vmid":201,"diskwrite":0,"disk":0,"maxcpu":16},{"diskread":0,"status":"stopped","node":"prox-srv2","cpu":0,"name":"dock-tst-px-02","mem":0,"netin":0,"maxmem":34359738368,"maxdisk":107374182400,"template":0,"id":"qemu/202","type":"qemu","uptime":0,"netout":0,"vmid":202,"diskwrite":0,"maxcpu":16,"disk":0},{"status":"stopped","diskread":0,"node":"prox-srv2","maxmem":34359738368,"netin":0,"maxdisk":107374182400,"cpu":0,"name":"dock-tst-px-03","mem":0,"id":"qemu/203","type":"qemu","uptime":0,"template":0,"diskwrite":0,"maxcpu":16,"disk":0,"netout":0,"vmid":203},{"diskread":235319586,"status":"running","node":"prox-srv1","name":"pbg-test-vm-01","cpu":0.00546728159073826,"mem":616060384,"maxmem":4294967296,"netin":332628658,"maxdisk":22548578304,"template":0,"id":"qemu/2030","type":"qemu","uptime":188361,"netout":158836,"vmid":2030,"diskwrite":388026368,"maxcpu":4,"disk":0},{"diskread":0,"status":"stopped","node":"prox-srv2","cpu":0,"name":"dock-tst-px-04","mem":0,"netin":0,"maxmem":34359738368,"maxdisk":107374182400,"template":0,"id":"qemu/204","uptime":0,"type":"qemu","netout":0,"vmid":204,"diskwrite":0,"disk":0,"maxcpu":16},{"maxmem":8589934592,"netin":884186343,"maxdisk":21474836480,"name":"tst-telmate-px-01","cpu":0.00546728159073826,"mem":456966144,"status":"running","diskread":203373346,"node":"prox-srv1","diskwrite":133866496,"maxcpu":4,"disk":0,"netout":520832,"vmid":2040,"id":"qemu/2040","type":"qemu","uptime":534413,"template":0},{"netout":254170,"vmid":2041,"diskwrite":246330368,"maxcpu":6,"disk":0,"template":0,"id":"qemu/2041","type":"qemu","uptime":204952,"cpu":0.0036448543938255,"name":"tst-telmate-px-02","mem":456134656,"netin":358342641,"maxmem":8589934592,"maxdisk":37580963840,"diskread":226190114,"status":"running","node":"prox-srv1"},{"vmid":2042,"netout":113979,"disk":0,"maxcpu":2,"diskwrite":147456,"template":0,"uptime":34470,"type":"qemu","id":"qemu/2042","mem":1930559488,"name":"ya-tst","cpu":0.00248512799579012,"maxdisk":0,"netin":71645158,"maxmem":2147483648,"node":"prox-srv1","diskread":2299994926,"status":"running"},{"mem":33009029120,"name":"dock-tst-px-05","cpu":0.64331479405346,"maxdisk":107374182400,"netin":37570058240,"maxmem":34359738368,"node":"prox-srv2","diskread":297795584,"status":"running","vmid":205,"netout":11499294016,"disk":0,"maxcpu":16,"diskwrite":2575802720256,"template":0,"uptime":169502,"type":"qemu","id":"qemu/205"},{"type":"qemu","uptime":168857,"id":"qemu/206","template":0,"maxcpu":16,"disk":0,"diskwrite":2366714834944,"vmid":206,"netout":8115550538,"node":"prox-srv2","status":"running","diskread":2441216,"maxdisk":107374182400,"netin":25559168583,"maxmem":34359738368,"mem":29301272576,"cpu":0.722986285580289,"name":"dock-tst-px-06"},{"uptime":723661,"type":"qemu","id":"qemu/207","template":0,"disk":0,"maxcpu":4,"diskwrite":8147063808,"vmid":207,"netout":165067382588,"node":"prox-srv2","status":"running","diskread":272088354,"maxdisk":42949672960,"netin":528442781959,"maxmem":4294967296,"mem":3338801152,"cpu":0.0713143420659725,"name":"devops-multi8nodes-app-px-01"},{"node":"prox-srv2","diskread":251047714,"status":"running","mem":768753664,"cpu":0.0406095558986788,"name":"devops-multi8nodes-nats-px-01","maxdisk":42949672960,"netin":58002489738,"maxmem":4294967296,"template":0,"type":"qemu","uptime":726220,"id":"qemu/208","vmid":208,"netout":70719780581,"maxcpu":4,"disk":0,"diskwrite":19923813376},{"cpu":0.0383809827091171,"name":"devops-multi8nodes-nats-px-02","mem":516849664,"maxmem":4294967296,"netin":59894166867,"maxdisk":42949672960,"diskread":251342114,"status":"running","node":"prox-srv2","netout":72196585604,"vmid":209,"diskwrite":635433984,"maxcpu":4,"disk":0,"template":0,"id":"qemu/209","type":"qemu","uptime":726222},{"maxdisk":42949672960,"netin":212871128540,"maxmem":4294967296,"mem":660721664,"name":"devops-multi8nodes-nats-px-03","cpu":0.039123840438971,"node":"prox-srv2","status":"running","diskread":266230562,"maxcpu":4,"disk":0,"diskwrite":669340672,"vmid":210,"netout":224322056116,"type":"qemu","uptime":726177,"id":"qemu/210","template":0},{"maxcpu":16,"disk":0,"diskwrite":586837256192,"vmid":211,"netout":495989878653,"type":"qemu","uptime":726151,"id":"qemu/211","template":0,"maxdisk":128849018880,"maxmem":34359738368,"netin":80582770772,"mem":31178964992,"name":"devops-multi8nodes-operdb-px-01","cpu":0.0355952662221651,"node":"prox-srv2","diskread":11590329944,"status":"running"},{"maxdisk":42949672960,"netin":1374854565,"maxmem":4294967296,"mem":838279168,"cpu":0.0153523930836469,"name":"devops-multi8nodes-tensordb-px-01","node":"prox-srv2","status":"running","diskread":271051042,"disk":0,"maxcpu":4,"diskwrite":1046504448,"vmid":212,"netout":1548274511,"uptime":726221,"type":"qemu","id":"qemu/212","template":0},{"diskread":263106338,"status":"running","node":"prox-srv2","cpu":0.0118857236776621,"name":"devops-multi8nodes-nginx-px-01","mem":535986176,"netin":1873175178,"maxmem":4294967296,"maxdisk":42949672960,"template":0,"id":"qemu/213","uptime":726178,"type":"qemu","netout":5859978031,"vmid":213,"diskwrite":646120448,"disk":0,"maxcpu":4},{"diskwrite":15309255680,"disk":0,"maxcpu":4,"netout":590398179643,"vmid":214,"id":"qemu/214","uptime":725851,"type":"qemu","template":0,"netin":587805890242,"maxmem":4294967296,"maxdisk":42949672960,"cpu":0.022533351138901,"name":"devops-multi8nodes-pgbouncer-px-01","mem":3993108480,"status":"running","diskread":366603554,"node":"prox-srv2"},{"status":"running","diskread":3782418323968,"node":"prox-srv1","name":"qa-bnch-px-01","cpu":0.126027053486506,"mem":41501417472,"netin":213103893959,"maxmem":154618822656,"maxdisk":536870912000,"template":0,"id":"qemu/215","uptime":179445,"type":"qemu","netout":69601899503,"vmid":215,"diskwrite":5375700665344,"disk":0,"maxcpu":32},{"vmid":306,"netout":802879500,"disk":0,"tags":"gitlab-runner","maxcpu":12,"diskwrite":119049328128,"template":0,"uptime":951155,"type":"qemu","id":"qemu/306","mem":2702843904,"name":"gitlab-runner-px-06","cpu":0.000826688649551029,"maxdisk":161061273600,"netin":23382793976,"maxmem":17179869184,"node":"prox-srv3","status":"running","diskread":568681570},{"node":"prox-srv3","diskread":2587589034,"status":"running","mem":7112527872,"name":"xd-host-px-01","cpu":0.0255446792711268,"maxdisk":32212254720,"maxmem":17179869184,"netin":1420713615,"template":0,"uptime":114781,"type":"qemu","id":"qemu/307","vmid":307,"netout":365346939,"disk":0,"maxcpu":8,"tags":" ","diskwrite":7872491008},{"diskwrite":6177855488,"disk":0,"maxcpu":8,"netout":126173491,"vmid":308,"id":"qemu/308","uptime":119266,"type":"qemu","template":0,"maxmem":17179869184,"netin":1270971577,"maxdisk":32212254720,"name":"xd-host-px-02","cpu":0.0262886990557227,"mem":7077654528,"status":"running","diskread":2051070600,"node":"prox-srv3"},{"maxdisk":32212254720,"maxmem":17179869184,"netin":1257173704,"mem":7070982144,"name":"xd-host-px-03","cpu":0.0114083033638042,"node":"prox-srv3","diskread":2063543432,"status":"running","disk":0,"maxcpu":8,"diskwrite":6334337024,"vmid":309,"netout":126213947,"uptime":119071,"type":"qemu","id":"qemu/309","template":0},{"node":"prox-srv3","status":"running","diskread":1431876966,"maxdisk":128849018880,"netin":786615343,"maxmem":17179869184,"mem":6345695232,"cpu":0.0120283198509675,"name":"xd-mgmt-px-01","uptime":118764,"type":"qemu","id":"qemu/310","template":0,"disk":0,"maxcpu":8,"diskwrite":3738864640,"vmid":310,"netout":813651613},{"node":"prox-srv3","status":"running","diskread":606787772,"mem":660865024,"name":"xd-storage-px-01","cpu":0.0376970024195269,"maxdisk":128849018880,"netin":516393760,"maxmem":4294967296,"template":0,"type":"qemu","uptime":118761,"id":"qemu/311","vmid":311,"netout":187756767,"maxcpu":2,"disk":0,"diskwrite":4265457664},{"node":"prox-srv3","diskread":607923900,"status":"running","mem":592764928,"cpu":0.0307528177632983,"name":"xd-storage-px-02","maxdisk":128849018880,"netin":478286689,"maxmem":4294967296,"template":0,"uptime":118758,"type":"qemu","id":"qemu/312","vmid":312,"netout":169315669,"disk":0,"maxcpu":2,"diskwrite":3818182656},{"maxcpu":4,"disk":0,"diskwrite":19193218048,"vmid":314,"netout":36271178,"type":"qemu","uptime":26424,"id":"qemu/314","template":0,"maxdisk":118111600640,"netin":69229172,"maxmem":12884901888,"mem":7370584064,"cpu":0.193693150589806,"name":"xd-dcim-px-01","node":"prox-srv3","diskread":3158097678,"status":"running"},{"uptime":48576,"type":"qemu","id":"qemu/315","template":0,"disk":0,"maxcpu":4,"diskwrite":64977920,"vmid":315,"netout":514867,"node":"prox-srv3","diskread":979635168,"status":"running","maxdisk":118111600640,"maxmem":8589934592,"netin":101031310,"mem":317329408,"name":"xd-dcil-px-01","cpu":0.0126483363381307},{"maxmem":17179869184,"netin":11930833956,"maxdisk":85899345920,"name":"vm-alse-tst1","cpu":0.00644817146649803,"mem":2995290112,"status":"running","diskread":1230365474,"node":"prox-srv3","diskwrite":155010073600,"disk":0,"maxcpu":8,"netout":7396450483,"vmid":902,"id":"qemu/902","uptime":1164376,"type":"qemu","template":0},{"netin":9449799643,"maxmem":17179869184,"maxdisk":85899345920,"name":"vm-aste-tst2","cpu":0.00657217476393068,"mem":708079616,"status":"running","diskread":270824226,"node":"prox-srv3","diskwrite":1825977344,"maxcpu":8,"disk":0,"netout":9835524496,"vmid":903,"id":"qemu/903","type":"qemu","uptime":1164410,"template":0},{"diskwrite":0,"disk":0,"maxcpu":4,"netout":0,"vmid":906,"id":"qemu/906","uptime":0,"type":"qemu","template":1,"netin":0,"maxmem":2147483648,"maxdisk":3145728000,"name":"alse-1.7.4uu1-cloud-base-template","cpu":0,"mem":0,"diskread":0,"status":"stopped","node":"prox-srv1"},{"uptime":0,"type":"qemu","id":"qemu/907","template":1,"disk":0,"tags":" ","maxcpu":2,"diskwrite":0,"vmid":907,"netout":0,"node":"prox-srv3","status":"stopped","diskread":0,"maxdisk":21474836480,"maxmem":4294967296,"netin":0,"mem":0,"name":"astra1.7.4-base-template-pve-agent-cloud-init","cpu":0},{"uptime":0,"type":"qemu","id":"qemu/908","template":1,"disk":0,"maxcpu":2,"diskwrite":0,"vmid":908,"netout":0,"node":"prox-srv3","status":"stopped","diskread":0,"maxdisk":2147483648,"netin":0,"maxmem":2147483648,"mem":0,"cpu":0,"name":"debian12-cloud-init-template"},{"disk":0,"tags":" ","maxcpu":2,"diskwrite":0,"vmid":909,"netout":0,"uptime":0,"type":"qemu","id":"qemu/909","template":1,"maxdisk":21474836480,"netin":0,"maxmem":4294967296,"mem":0,"name":"alse1.7.4-base-template-3disks-cloud-init","cpu":0,"node":"prox-srv3","status":"stopped","diskread":0},{"template":1,"type":"qemu","uptime":0,"id":"qemu/910","vmid":910,"netout":0,"maxcpu":2,"tags":" ","disk":0,"diskwrite":0,"node":"prox-srv2","diskread":0,"status":"stopped","mem":0,"cpu":0,"name":"astra1.7.4-base-template","maxdisk":21474836480,"netin":0,"maxmem":4294967296},{"netin":0,"maxmem":4294967296,"maxdisk":3145728000,"name":"template-alse-vanilla-1.7.4-cloud-base-mg11.3.0","cpu":0,"mem":0,"status":"stopped","diskread":0,"node":"prox-srv3","diskwrite":0,"maxcpu":2,"disk":0,"netout":0,"vmid":911,"id":"qemu/911","type":"qemu","uptime":0,"template":1}]}" Content-Type=application/json;charset=UTF-8 Server=pve-api-daemon/3.0 tf_http_res_version=HTTP/1.1 timestamp=2023-10-26T18:54:09.912+0300
2023-10-26T18:54:09.912+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== Host=10.177.144.6:8006 tf_http_op_type=request tf_http_req_method=GET tf_http_trans_id=91564e60-b0d2-6356-a919-3d87b98686f8 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Accept=application/json Accept-Encoding=gzip tf_http_req_body= tf_http_req_uri=/api2/json/nodes/prox-srv1/qemu/1011/config tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 timestamp=2023-10-26T18:54:09.912+0300
2023-10-26T18:54:09.920+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: Pragma=no-cache tf_http_res_status_reason="200 OK" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange Date="Thu, 26 Oct 2023 15:54:09 GMT" Expires="Thu, 26 Oct 2023 15:54:09 GMT" tf_http_op_type=response tf_http_res_status_code=200 @module=proxmox Content-Length=984 tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a Connection=Keep-Alive tf_http_res_body="{"data":{"cpuunits":1024,"arch":"x86_64","cores":1,"net0":"virtio=E6:61:1A:E7:F3:25,bridge=vmbr0,firewall=0","ipconfig0":"ip=dhcp","vmgenid":"dfb33a41-4410-46e6-a62d-7bf061c01b2c","vga":"memory=32,type=serial0","ide2":"local:1011/vm-1011-cloudinit.qcow2,media=cdrom","meta":"creation-qemu=8.0.2,ctime=1698335643","tags":"template-ubuntu-22.04;templates;terraform","memory":2048,"balloon":0,"template":1,"sockets":2,"cpu":"cputype=host","cicustom":"user=local:snippets/userdata-proxmox-raw-file.yml","name":"template-ubuntu-22.04","digest":"15571afb7002608d16cc244bd565c687f164108a","scsi0":"local:1011/vm-1011-disk-0.qcow2,cache=none,discard=on,iothread=1,size=3G,ssd=1","onboot":0,"keyboard":"en-us","description":"Ubuntu 22.04 template","scsihw":"virtio-scsi-single","smbios1":"uuid=c206176d-f881-4226-b8b2-87d1e6c1cdf7","tablet":1,"ostype":"l26","acpi":1,"boot":"order=scsi0;net0","numa":1,"agent":"enabled=1,fstrim_cloned_disks=1,type=virtio","bios":"seabios","serial0":"socket"}}" Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 Server=pve-api-daemon/3.0 tf_http_trans_id=91564e60-b0d2-6356-a919-3d87b98686f8 tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 timestamp=2023-10-26T18:54:09.920+0300
2023-10-26T18:54:09.920+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Sending HTTP Request: tf_http_req_method=GET tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a Cookie=PVEAuthCookie=PVE:root@pam:653A89B3::XEU9A/tAuZ5d9KiDJuXqUAAHP7Ou2hBJ7ZS9m4bqyB/E2/+KB6ORq30dJfe0BuQl8QeQCjMfiv5Jmdx7fi90kD4HcC/xNikJN4KRuEREC8Cl+DMd8jRQHRDqmsvh/MofVAe4EtJPPo9k6Az96VT6fD005Ih63QC2K4IPeLOOt5P4I/M/MBqueQSg6l+ECtLZNlOVCnuig67hGVJdENXKPPzgexbZC1iyAvcm8O0ILucY/I9SGz6ZsqfgH9++vzi9avziiIrP6nvwSmq6a/l7TXltdfqwkFP4Dnnpco9YbkT7UxLf+Q5cQXOysVaFmjEKK7/qsr2COD5dBpvvBLqAww== User-Agent=Go-http-client/1.1 tf_http_op_type=request tf_http_req_body= tf_http_req_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange @module=proxmox Accept=application/json tf_http_req_uri=/api2/json/nodes/prox-srv1/qemu/1011/status/current tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Host=10.177.144.6:8006 tf_http_trans_id=d398f906-4f9d-7934-4f91-681b0cf83ac7 tf_mux_provider=tf5to6server.v5tov6Server Accept-Encoding=gzip timestamp=2023-10-26T18:54:09.920+0300
2023-10-26T18:54:09.964+0300 [DEBUG] provider.terraform-provider-proxmox_v0.35.1: Received HTTP Response: tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox Content-Length=332 Pragma=no-cache tf_http_op_type=response tf_http_trans_id=d398f906-4f9d-7934-4f91-681b0cf83ac7 Expires="Thu, 26 Oct 2023 15:54:10 GMT" tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_resource_type=proxmox_virtual_environment_vm Connection=[Keep-Alive, Keep-Alive] tf_req_id=073c89d2-32cf-ee21-fb5f-9a1020fac38a tf_rpc=ApplyResourceChange tf_http_res_body={"data":{"cpu":0,"diskread":0,"ha":{"managed":0},"template":1,"vmid":1011,"mem":0,"agent":1,"diskwrite":0,"maxmem":2147483648,"netin":0,"netout":0,"qmpstatus":"stopped","tags":"template-ubuntu-22.04;templates;terraform","maxdisk":3221225472,"disk":0,"serial":1,"cpus":2,"status":"stopped","name":"template-ubuntu-22.04","uptime":0}} tf_http_res_version=HTTP/1.1 @caller=github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 Date="Thu, 26 Oct 2023 15:54:10 GMT" Server=pve-api-daemon/3.0 tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp=2023-10-26T18:54:09.964+0300
2023-10-26T18:54:09.965+0300 [WARN] Provider "provider[\"registry.terraform.io/bpg/proxmox\"]" produced an unexpected new value for module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204, 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:
- .kvm_arguments: was null, but now cty.StringVal("")
- .machine: was null, but now cty.StringVal("")
- .initialization[0].meta_data_file_id: was null, but now cty.StringVal("")
- .initialization[0].network_data_file_id: was null, but now cty.StringVal("")
- .initialization[0].type: was null, but now cty.StringVal("")
- .initialization[0].vendor_data_file_id: was null, but now cty.StringVal("")
- .initialization[0].ip_config[0].ipv4[0].gateway: was null, but now cty.StringVal("")
module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204: Creation complete after 7s [id=1011]
2023-10-26T18:54:09.965+0300 [DEBUG] State storage *remote.State declined to persist a state snapshot
2023-10-26T18:54:09.967+0300 [DEBUG] states/remote: state read serial is: 231; serial is: 231
2023-10-26T18:54:09.967+0300 [DEBUG] states/remote: state read lineage is: 0fea1ec8-feff-c8bc-a52f-150499d0c828; lineage is: 0fea1ec8-feff-c8bc-a52f-150499d0c828
2023-10-26T18:54:09.967+0300 [DEBUG] Uploading remote state to S3: {
Body: buffer(0xc000e79ad0),
Bucket: "tf-bucket",
ContentLength: 21271,
ContentType: "application/json",
Key: "proxmox/terraform.tfstate"
}
2023-10-26T18:54:09.968+0300 [DEBUG] [aws-sdk-go] DEBUG: Request s3/PutObject Details:
---[ REQUEST POST-SIGN ]-----------------------------
PUT /proxmox/terraform.tfstate HTTP/1.1
Host: NUH-UH
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.5.7 aws-sdk-go/1.44.122 (go1.20.7; linux; amd64)
Content-Length: 21271
Authorization: NUH-UH
Content-Md5: eQetHRAfspm2ujqJksvVKA==
Content-Type: application/json
X-Amz-Content-Sha256: 8f390ed09bee188a63778be477b370c74366dc9c9df43cdd3f3913aaea437278
X-Amz-Date: 20231026T155409Z
Accept-Encoding: gzip
{
"version": 4,
"terraform_version": "1.5.7",
"serial": 232,
"lineage": "0fea1ec8-feff-c8bc-a52f-150499d0c828",
"outputs": {},
"resources": [
{
"module": "module.proxmox",
"mode": "data",
"type": "proxmox_virtual_environment_vms",
"name": "template_vms",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "17cddcf7-e88c-4958-b23a-ab836b8b3809",
"node_name": null,
"tags": [
"templates"
],
"vms": []
},
"sensitive_attributes": []
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_file",
"name": "cloud_config_userdata_raw_file",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"index_key": "prox-srv1",
"schema_version": 0,
"attributes": {
"content_type": "snippets",
"datastore_id": "local",
"file_modification_date": null,
"file_name": "userdata-proxmox-raw-file.yml",
"file_size": null,
"file_tag": null,
"id": "local:snippets/userdata-proxmox-raw-file.yml",
"node_name": "prox-srv1",
"overwrite": true,
"source_file": [],
"source_raw": [
{
"data": "#cloud-config\nhostname: px-cloud-config-applied\nusers:\n - name: tf\n groups: adm,sudo\n shell: /bin/bash\n sudo: ['ALL=(ALL) NOPASSWD:ALL']\n ssh-authorized-keys:\n - ssh-rsa AAAABkey== tf\n\npackages:\n- qemu-guest-agent\npackage_upgrade: true\n\nruncmd:\n - systemctl enable --now qemu-guest-agent\n - echo \"done\" \u003e /tmp/user-cloud-init-done\n\nfinal_message: |\n cloud-init has finished\n version: $version\n timestamp: $timestamp\n datasource: $datasource\n uptime: $uptime\n Ratiborus was here...\n",
"file_name": "userdata-proxmox-raw-file.yml",
"resize": 0
}
],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
},
{
"index_key": "prox-srv2",
"schema_version": 0,
"attributes": {
"content_type": "snippets",
"datastore_id": "local",
"file_modification_date": null,
"file_name": "userdata-proxmox-raw-file.yml",
"file_size": null,
"file_tag": null,
"id": "local:snippets/userdata-proxmox-raw-file.yml",
"node_name": "prox-srv2",
"overwrite": true,
"source_file": [],
"source_raw": [
{
"data": "#cloud-config\nhostname: px-cloud-config-applied\nusers:\n - name: tf\n groups: adm,sudo\n shell: /bin/bash\n sudo: ['ALL=(ALL) NOPASSWD:ALL']\n ssh-authorized-keys:\n - ssh-rsa AAAABkey== tf\n\npackages:\n- qemu-guest-agent\npackage_upgrade: true\n\nruncmd:\n - systemctl enable --now qemu-guest-agent\n - echo \"done\" \u003e /tmp/user-cloud-init-done\n\nfinal_message: |\n cloud-init has finished\n version: $version\n timestamp: $timestamp\n datasource: $datasource\n uptime: $uptime\n Ratiborus was here...\n",
"file_name": "userdata-proxmox-raw-file.yml",
"resize": 0
}
],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
},
{
"index_key": "prox-srv3",
"schema_version": 0,
"attributes": {
"content_type": "snippets",
"datastore_id": "local",
"file_modification_date": null,
"file_name": "userdata-proxmox-raw-file.yml",
"file_size": null,
"file_tag": null,
"id": "local:snippets/userdata-proxmox-raw-file.yml",
"node_name": "prox-srv3",
"overwrite": true,
"source_file": [],
"source_raw": [
{
"data": "#cloud-config\nhostname: px-cloud-config-applied\nusers:\n - name: tf\n groups: adm,sudo\n shell: /bin/bash\n sudo: ['ALL=(ALL) NOPASSWD:ALL']\n ssh-authorized-keys:\n - ssh-rsa AAAABkey== tf\n\npackages:\n- qemu-guest-agent\npackage_upgrade: true\n\nruncmd:\n - systemctl enable --now qemu-guest-agent\n - echo \"done\" \u003e /tmp/user-cloud-init-done\n\nfinal_message: |\n cloud-init has finished\n version: $version\n timestamp: $timestamp\n datasource: $datasource\n uptime: $uptime\n Ratiborus was here...\n",
"file_name": "userdata-proxmox-raw-file.yml",
"resize": 0
}
],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_file",
"name": "cloud_image_astra_174_base",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"content_type": "iso",
"datastore_id": "local",
"file_modification_date": "2023-09-21T16:54:48Z",
"file_name": "alse-vanilla-1.7.4-cloud-base.img",
"file_size": 498993664,
"file_tag": "",
"id": "local:iso/alse-vanilla-1.7.4-cloud-base.img",
"node_name": "prox-srv1",
"overwrite": true,
"source_file": [
{
"changed": false,
"checksum": "",
"file_name": "alse-vanilla-1.7.4-cloud-base.img",
"insecure": false,
"path": "https://dl.astralinux.ru/artifactory/mg-generic/alse/cloud/alse-vanilla-1.7.4uu1-cloud-base-mg11.3.0.qcow2"
}
],
"source_raw": [],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_file",
"name": "cloud_image_debian_12",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"content_type": "iso",
"datastore_id": "local",
"file_modification_date": "2023-10-13T16:39:44Z",
"file_name": "debian-12-generic-amd64.img",
"file_size": 379256832,
"file_tag": "",
"id": "local:iso/debian-12-generic-amd64.img",
"node_name": "prox-srv1",
"overwrite": true,
"source_file": [
{
"changed": false,
"checksum": "",
"file_name": "debian-12-generic-amd64.img",
"insecure": false,
"path": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2"
}
],
"source_raw": [],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_file",
"name": "cloud_image_ubuntu_2204",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"content_type": "iso",
"datastore_id": "local",
"file_modification_date": "2023-10-26T09:11:20Z",
"file_name": "ubuntu-22.04-server-cloudimg-amd64.img",
"file_size": 672268288,
"file_tag": "28120000-6089af48735b1",
"id": "local:iso/ubuntu-22.04-server-cloudimg-amd64.img",
"node_name": "prox-srv1",
"overwrite": true,
"source_file": [
{
"changed": false,
"checksum": "",
"file_name": "",
"insecure": false,
"path": "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
}
],
"source_raw": [],
"timeout_upload": 1800
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_pool",
"name": "templates",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"comment": "Pool for template VMs, managed by Terraform",
"id": "templates",
"members": [],
"pool_id": "templates"
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_vm",
"name": "template_astra_174_base",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"acpi": true,
"agent": [
{
"enabled": true,
"timeout": "15m",
"trim": true,
"type": "virtio"
}
],
"audio_device": [],
"bios": "seabios",
"boot_order": null,
"cdrom": [],
"clone": [],
"cpu": [
{
"architecture": "x86_64",
"cores": 1,
"flags": null,
"hotplugged": 0,
"numa": true,
"sockets": 2,
"type": "host",
"units": 1024
}
],
"description": "Astra Linux 1.7.4 Orel template",
"disk": [
{
"cache": "none",
"datastore_id": "local",
"discard": "on",
"file_format": "qcow2",
"file_id": "local:iso/alse-vanilla-1.7.4-cloud-base.img",
"interface": "scsi0",
"iothread": true,
"path_in_datastore": "1001/vm-1001-disk-0.qcow2",
"size": 3,
"speed": [],
"ssd": true
}
],
"efi_disk": [],
"hostpci": [],
"id": "1001",
"initialization": [
{
"datastore_id": "local",
"dns": [],
"interface": "ide2",
"ip_config": [
{
"ipv4": [
{
"address": "dhcp",
"gateway": ""
}
],
"ipv6": []
}
],
"meta_data_file_id": "",
"network_data_file_id": "",
"type": "",
"user_account": [],
"user_data_file_id": "local:snippets/userdata-proxmox-raw-file.yml",
"vendor_data_file_id": ""
}
],
"ipv4_addresses": [],
"ipv6_addresses": [],
"keyboard_layout": "en-us",
"kvm_arguments": "",
"mac_addresses": [
"9E:18:D8:18:DB:01"
],
"machine": "",
"memory": [
{
"dedicated": 2048,
"floating": 0,
"shared": 0
}
],
"migrate": true,
"name": "template-astra-1.7.4-base",
"network_device": [
{
"bridge": "vmbr0",
"enabled": true,
"firewall": false,
"mac_address": "9E:18:D8:18:DB:01",
"model": "virtio",
"mtu": 0,
"queues": 0,
"rate_limit": 0,
"vlan_id": 0
}
],
"network_interface_names": [],
"node_name": "prox-srv1",
"on_boot": false,
"operating_system": [
{
"type": "l26"
}
],
"pool_id": "templates",
"reboot": false,
"scsi_hardware": "virtio-scsi-single",
"serial_device": [
{
"device": "socket"
}
],
"smbios": [],
"started": null,
"startup": [],
"tablet_device": true,
"tags": [
"template-astra-1.7.4-base",
"templates",
"terraform"
],
"template": true,
"timeout_clone": 1800,
"timeout_migrate": 1800,
"timeout_move_disk": 1800,
"timeout_reboot": 1800,
"timeout_shutdown_vm": 1800,
"timeout_start_vm": 1800,
"timeout_stop_vm": 300,
"vga": [
{
"enabled": true,
"memory": 32,
"type": "serial0"
}
],
"vm_id": 1001
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file",
"module.proxmox.proxmox_virtual_environment_file.cloud_image_astra_174_base",
"module.proxmox.proxmox_virtual_environment_pool.templates"
]
}
]
},
{
"module": "module.proxmox",
"mode": "managed",
"type": "proxmox_virtual_environment_vm",
"name": "template_ubuntu_2204",
"provider": "provider[\"registry.terraform.io/bpg/proxmox\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"acpi": true,
"agent": [
{
"enabled": true,
"timeout": "15m",
"trim": true,
"type": "virtio"
}
],
"audio_device": [],
"bios": "seabios",
"boot_order": null,
"cdrom": [],
"clone": [],
"cpu": [
{
"architecture": "x86_64",
"cores": 1,
"flags": null,
"hotplugged": 0,
"numa": true,
"sockets": 2,
"type": "host",
"units": 1024
}
],
"description": "Ubuntu 22.04 template",
"disk": [
{
"cache": "none",
"datastore_id": "local",
"discard": "on",
"file_format": "qcow2",
"file_id": "local:iso/ubuntu-22.04-server-cloudimg-amd64.img",
"interface": "scsi0",
"iothread": true,
"path_in_datastore": "1011/vm-1011-disk-0.qcow2",
"size": 3,
"speed": [],
"ssd": true
}
],
"efi_disk": [],
"hostpci": [],
"id": "1011",
"initialization": [
{
"datastore_id": "local",
"dns": [],
"interface": "ide2",
"ip_config": [
{
"ipv4": [
{
"address": "dhcp",
"gateway": ""
}
],
"ipv6": []
}
],
"meta_data_file_id": "",
"network_data_file_id": "",
"type": "",
"user_account": [],
"user_data_file_id": "local:snippets/userdata-proxmox-raw-file.yml",
"vendor_data_file_id": ""
}
],
"ipv4_addresses": [],
"ipv6_addresses": [],
"keyboard_layout": "en-us",
"kvm_arguments": "",
"mac_addresses": [
"E6:61:1A:E7:F3:25"
],
"machine": "",
"memory": [
{
"dedicated": 2048,
"floating": 0,
"shared": 0
}
],
"migrate": true,
"name": "template-ubuntu-22.04",
"network_device": [
{
"bridge": "vmbr0",
"enabled": true,
"firewall": false,
"mac_address": "E6:61:1A:E7:F3:25",
"model": "virtio",
"mtu": 0,
"queues": 0,
"rate_limit": 0,
"vlan_id": 0
}
],
"network_interface_names": [],
"node_name": "prox-srv1",
"on_boot": false,
"operating_system": [
{
"type": "l26"
}
],
"pool_id": "templates",
"reboot": false,
"scsi_hardware": "virtio-scsi-single",
"serial_device": [
{
"device": "socket"
}
],
"smbios": [],
"started": null,
"startup": [],
"tablet_device": true,
"tags": [
"template-ubuntu-22.04",
"templates",
"terraform"
],
"template": true,
"timeout_clone": 1800,
"timeout_migrate": 1800,
"timeout_move_disk": 1800,
"timeout_reboot": 1800,
"timeout_shutdown_vm": 1800,
"timeout_start_vm": 1800,
"timeout_stop_vm": 300,
"vga": [
{
"enabled": true,
"memory": 32,
"type": "serial0"
}
],
"vm_id": 1011
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file",
"module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204",
"module.proxmox.proxmox_virtual_environment_pool.templates"
]
}
]
}
],
"check_results": null
}
-----------------------------------------------------
2023-10-26T18:54:10.012+0300 [DEBUG] [aws-sdk-go] DEBUG: Response s3/PutObject Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Connection: close
Content-Type: application/octet-stream
Date: Thu, 26 Oct 2023 15:54:10 GMT
Etag: "7907ad1d101fb299b6ba3a8992cbd528"
Server: nginx
X-Amz-Request-Id: 890b4f47eeb137ff
X-Amz-Version-Id: 000608A0952171B1
-----------------------------------------------------
2023-10-26T18:54:10.012+0300 [DEBUG] [aws-sdk-go]
╷
│ Error: error cloning VM: received an HTTP 500 response - Reason: unable to find configuration file for VM 1001 on node 'prox-srv1'
│
│ with module.proxmox.proxmox_virtual_environment_vm.base,
│ on ../modules/proxmox-base/main.tf line 22, in resource "proxmox_virtual_environment_vm" "base":
│ 22: resource "proxmox_virtual_environment_vm" "base" {
│
╵
╷
│ Error: error retrieving VM: received an HTTP 500 response - Reason: Configuration file 'nodes/prox-srv1/qemu-server/1011.conf' does not exist
│
│ with module.proxmox.proxmox_virtual_environment_vm.base2,
│ on ../modules/proxmox-base/main.tf line 97, in resource "proxmox_virtual_environment_vm" "base2":
│ 97: resource "proxmox_virtual_environment_vm" "base2" {
│
╵
2023-10-26T18:54:10.025+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-10-26T18:54:10.101+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.35.1/linux_amd64/terraform-provider-proxmox_v0.35.1 pid=618673
2023-10-26T18:54:10.101+0300 [DEBUG] provider: plugin exited
ratiborus@HOMEWORLD:~/WORKSPACE/terraform_yandex/proxmox$ terraform state list
module.proxmox.data.proxmox_virtual_environment_vms.template_vms
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file["prox-srv1"]
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file["prox-srv2"]
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file["prox-srv3"]
module.proxmox.proxmox_virtual_environment_file.cloud_image_astra_174_base
module.proxmox.proxmox_virtual_environment_file.cloud_image_debian_12
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204
module.proxmox.proxmox_virtual_environment_pool.templates
module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base
module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204
ratiborus@HOMEWORLD:~/WORKSPACE/terraform_yandex/proxmox$ terraform apply
module.proxmox.data.proxmox_virtual_environment_vms.template_vms: Reading...
module.proxmox.proxmox_virtual_environment_file.cloud_image_ubuntu_2204: Refreshing state... [id=local:iso/ubuntu-22.04-server-cloudimg-amd64.img]
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file["prox-srv2"]: Refreshing state... [id=local:snippets/userdata-proxmox-raw-file.yml]
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file["prox-srv1"]: Refreshing state... [id=local:snippets/userdata-proxmox-raw-file.yml]
module.proxmox.proxmox_virtual_environment_pool.templates: Refreshing state... [id=templates]
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file["prox-srv3"]: Refreshing state... [id=local:snippets/userdata-proxmox-raw-file.yml]
module.proxmox.proxmox_virtual_environment_file.cloud_image_debian_12: Refreshing state... [id=local:iso/debian-12-generic-amd64.img]
module.proxmox.proxmox_virtual_environment_file.cloud_image_astra_174_base: Refreshing state... [id=local:iso/alse-vanilla-1.7.4-cloud-base.img]
module.proxmox.data.proxmox_virtual_environment_vms.template_vms: Read complete after 0s [id=d736aef6-e7ab-4eb4-b3bc-c5a90117ab86]
module.proxmox.proxmox_virtual_environment_vm.template_astra_174_base: Refreshing state... [id=1001]
module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204: Refreshing state... [id=1011]
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.proxmox.proxmox_virtual_environment_vm.base will be created
+ resource "proxmox_virtual_environment_vm" "base" {
+ acpi = true
+ bios = "seabios"
+ description = "Managed by Terraform"
+ id = (known after apply)
+ ipv4_addresses = (known after apply)
+ ipv6_addresses = (known after apply)
+ keyboard_layout = "en-us"
+ mac_addresses = (known after apply)
+ migrate = true
+ name = "astra-test-vm"
+ network_interface_names = (known after apply)
+ node_name = "prox-srv1"
+ on_boot = true
+ reboot = true
+ scsi_hardware = "virtio-scsi-single"
+ started = true
+ tablet_device = true
+ tags = [
+ "astra-1.7.4-base",
+ "terraform",
]
+ template = false
+ timeout_clone = 1800
+ timeout_migrate = 1800
+ timeout_move_disk = 1800
+ timeout_reboot = 1800
+ timeout_shutdown_vm = 1800
+ timeout_start_vm = 1800
+ timeout_stop_vm = 300
+ vm_id = (known after apply)
+ agent {
+ enabled = true
+ timeout = "15m"
+ trim = true
+ type = "virtio"
}
+ clone {
+ full = true
+ node_name = "prox-srv1"
+ retries = 3
+ vm_id = 1001
}
+ cpu {
+ architecture = "x86_64"
+ cores = 2
+ hotplugged = 0
+ numa = true
+ sockets = 2
+ type = "host"
+ units = 1024
}
+ disk {
+ cache = "none"
+ datastore_id = "vzdata"
+ discard = "on"
+ file_format = "qcow2"
+ interface = "scsi0"
+ iothread = true
+ path_in_datastore = (known after apply)
+ size = 50
+ ssd = true
}
+ initialization {
+ datastore_id = "vzdata"
+ interface = "ide2"
+ ip_config {
+ ipv4 {
+ address = "dhcp"
}
}
}
+ memory {
+ dedicated = 4096
+ floating = 0
+ shared = 0
}
+ network_device {
+ bridge = "vmbr0"
+ enabled = true
+ firewall = false
+ mac_address = (known after apply)
+ model = "virtio"
+ mtu = 0
+ queues = 0
+ rate_limit = 0
+ vlan_id = 0
}
+ operating_system {
+ type = "l26"
}
+ serial_device {
+ device = "socket"
}
}
# module.proxmox.proxmox_virtual_environment_vm.base2 will be created
+ resource "proxmox_virtual_environment_vm" "base2" {
+ acpi = true
+ bios = "seabios"
+ description = "Managed by Terraform"
+ id = (known after apply)
+ ipv4_addresses = (known after apply)
+ ipv6_addresses = (known after apply)
+ keyboard_layout = "en-us"
+ mac_addresses = (known after apply)
+ migrate = true
+ name = "ubuntu-test-vm"
+ network_interface_names = (known after apply)
+ node_name = "prox-srv2"
+ on_boot = true
+ reboot = true
+ scsi_hardware = "virtio-scsi-pci"
+ started = true
+ tablet_device = true
+ tags = [
+ "terraform",
+ "ubuntu-22.04",
]
+ template = false
+ timeout_clone = 1800
+ timeout_migrate = 1800
+ timeout_move_disk = 1800
+ timeout_reboot = 1800
+ timeout_shutdown_vm = 1800
+ timeout_start_vm = 1800
+ timeout_stop_vm = 300
+ vm_id = (known after apply)
+ agent {
+ enabled = true
+ timeout = "15m"
+ trim = true
+ type = "virtio"
}
+ clone {
+ full = true
+ node_name = "prox-srv1"
+ retries = 3
+ vm_id = 1011
}
+ cpu {
+ architecture = "x86_64"
+ cores = 2
+ hotplugged = 0
+ numa = true
+ sockets = 2
+ type = "host"
+ units = 1024
}
+ disk {
+ cache = "none"
+ datastore_id = "vzdata"
+ discard = "on"
+ file_format = "qcow2"
+ interface = "scsi0"
+ iothread = true
+ path_in_datastore = (known after apply)
+ size = 50
+ ssd = true
}
+ initialization {
+ datastore_id = "vzdata"
+ interface = "ide2"
+ ip_config {
+ ipv4 {
+ address = "dhcp"
}
}
}
+ memory {
+ dedicated = 4096
+ floating = 0
+ shared = 0
}
+ network_device {
+ bridge = "vmbr0"
+ enabled = true
+ firewall = false
+ mac_address = (known after apply)
+ model = "virtio"
+ mtu = 0
+ queues = 0
+ rate_limit = 0
+ vlan_id = 0
}
+ operating_system {
+ type = "l26"
}
+ serial_device {
+ device = "socket"
}
}
Plan: 2 to add, 0 to change, 0 to destroy.
Same issue.
The data call should work across the cluster, seems like it only works on the node you are provisioning on.
Ideally we could reference the friendly name.
using for_each trying to configure VM's across all nodes programatically. Getting the same error
Error: error cloning VM: received an HTTP 500 response - Reason: unable to find configuration file for VM 9002 on node 'proxmox3'
I faced the same issue but I was using modules. To solve the issue, I just created a dependency and now it works fine. Here's the part of the code in case it can help. However, I'm still conducting some further testing to determine if there's some side effects not expected.
module "debian_virtual_machine" {
for_each = var.virtual_machines
source = "./modules/virtual_machine"
providers = {
proxmox = proxmox
}
vm_hostname = each.key
node_name = each.value.node_name
vm_memory = each.value.memory
vm_disk_size = each.value.disk_size
vm_tags = each.value.tags
vm_is_template = each.value.is_template
vm_template_id = each.value.template_id
vm_ip = each.value.ip
cloud_config_id = module.debian_cloud-init[each.key].cloud_config_id
depends_on = [module.debian_template]
}
module "debian_template" {
for_each = var.templates
source = "./modules/virtual_machine"
providers = {
proxmox = proxmox
}
vm_hostname = each.key
node_name = each.value.node_name
vm_memory = each.value.memory
vm_disk_size = each.value.disk_size
vm_tags = each.value.tags
vm_is_template = each.value.is_template
vm_template_id = each.value.template_id
downloaded_file_id = module.debian_cloud_image[each.key].downloaded_file_id
}