Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudInit configuration is not getting applied #586

Open
some-random-username-123 opened this issue Sep 22, 2023 · 42 comments
Open

CloudInit configuration is not getting applied #586

some-random-username-123 opened this issue Sep 22, 2023 · 42 comments
Labels
📖 documentation Improvements or additions to documentation ✨ enhancement New feature or request

Comments

@some-random-username-123

Describe the bug
My issue is: When applying a terraform manifest that clones a vm and adds cloud init configuration, the cloudinit image doesnt get regenerated.
I the UI this is done via the Button Regererate image:
Screenshot_20230922_165942
There is also a API call that can do this: API Refference

Screenshot_20230922_170233

To Reproduce
Steps to reproduce the behavior:

  1. Create a resource with a initialization field
  2. Run terraform apply
  3. Wait until VM runs
  4. See error

My TF Module:

...
variable "vm_ci_interface" {
    description = "The Interface for the Cloudinit drive on the VM."
    type = string
    default = "ide0"
}

variable "vm_template_id" {
    description = "The VM ID of the Template that will be cloned."
    type = number
    default = 9000
}

variable "vm_ip_address" {
    description = "The IP adress that the VM has. (use 'dhcp' for automatic IP)"
    type = string
    default = "dhcp"
}

variable "vm_ip_gateway" {
    description = "The IP of the gateway that the VM uses. (when vm_ip_address = 'dhcp' no gateway is used)"
    type = string
    default = ""
}

variable "vm_sa_user_name" {
    description = "The username of the service account that is used on this VM."
    type = string
    default = "sa_ansible"
}

variable "vm_sa_user_password" {
    description = "The password of the service account that is used on this VM."
    type = string
    sensitive = true
}

...
# --------
resource "proxmox_virtual_environment_vm" "almalinux9-basic" {
...
  initialization {
    interface       = var.vm_ci_interface

    ip_config {
      ipv4 {
        address     = var.vm_ip_address
        gateway     = var.vm_ip_address == "dhcp" ? null : var.vm_ip_gateway
      }
    }

    user_account {
      username      = var.vm_sa_user_name
      password      = var.vm_sa_user_password
      keys          = var.vm_sa_user_ssh_keys
    }
  }
......

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

Additional context
Add any other context about the problem here.

  • Single or clustered Proxmox: Single
  • Provider version (ideally it should be the latest version): latest
  • Terraform version: latest
  • OS (where you run Terraform from): Almalinux9 KDE
@some-random-username-123 some-random-username-123 added the 🐛 bug Something isn't working label Sep 22, 2023
@some-random-username-123
Copy link
Author

PS:I don't really know if this is not implemented, of if its just a issue from my side.

@bpg
Copy link
Owner

bpg commented Sep 23, 2023

Hi @some-random-username-123! 👋🏼 (nice GH username btw :)

  1. See error

Could you pls. post here the error that that you saw?

Also I'd like to clarify whther the original VM that you're cloning has a cloudinit config?

@bpg bpg added the ⌛ pending author's response Requested additional information from the reporter label Sep 23, 2023
@some-random-username-123
Copy link
Author

some-random-username-123 commented Sep 24, 2023

Hi @bpg,
Sure I can give you more insights:

Also I'd like to clarify whther the original VM that you're cloning has a cloudinit config?
I Tried both, so i have a emplate with a Cloudinit drive, and i also have a template with no cloudinit drive.
I have the issue with both tamplates.

The exact issue is, that when I clone my vm with the TF provider, after the vm starts the cloudinit config (user and hostname, etc) is not applied in the template.

But when I clone it manually and press the button, all the cloudinit configuration is applied.

If you want to have a look at my code feel free to look at my repo:
https://github.com/some-random-username-123/Proxmox-setup/tree/main

I hope this gives you some more insight.

Regards

@bpg bpg removed the ⌛ pending author's response Requested additional information from the reporter label Sep 25, 2023
@0xinterface
Copy link

0xinterface commented Sep 26, 2023

@bpg I took a brief look at the example @some-random-username-123 provided and apparently the packer template is built by specifying bios to ovmf therefore I think this is related to #575

https://github.com/some-random-username-123/Proxmox-setup/blob/2eacc4eb816018997f21833596c6867548dc0310/packer/AlmaLinux9-Template/AlmaLinux9-Template.pkr.hcl#L61

@webtroter
Copy link

Hello,

I'm also having this problem

I found this small thread in the Proxmox forums about the Regeneration process. -> https://forum.proxmox.com/threads/regenerate-cloud-init-image-using-ansible.89964/

It is basically a remove/re-add the cloudinit drive.

I hope it could help solve this problem.

Thank you

@bpg
Copy link
Owner

bpg commented Oct 3, 2023

Hey @some-random-username-123 👋🏼

I'm trying to reproduce this issue with a minimal TF configuration, but everything seems to be working for me (tm)

Here is my template:

 resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
  name = "586-template"

  node_name = var.virtual_environment_node_name
  vm_id     = 586
  machine   = "q35"
  bios      = "ovmf"

  agent {
    enabled = true
  }

  efi_disk {
    datastore_id = "local-lvm"
    file_format  = "raw"
    type         = "4m"
  }

  disk {
    datastore_id = "local-lvm"
    file_id      = proxmox_virtual_environment_file.ubuntu_cloud_image.id
    interface    = "virtio0"
    iothread     = true
    discard      = "on"
    size         = 20
  }

  network_device {
    bridge = "vmbr0"
  }

  operating_system {
    type = "l26"
  }

  started = false
}

resource "proxmox_virtual_environment_file" "ubuntu_cloud_image" {
  content_type = "iso"
  datastore_id = "local"
  node_name    = var.virtual_environment_node_name

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

data "local_file" "ssh_public_key" {
  filename = "./id_rsa.pub"
}

resource "proxmox_virtual_environment_file" "cloud_config" {
  content_type = "snippets"
  datastore_id = "local"
  node_name    = var.virtual_environment_node_name

  source_raw {
    data = <<EOF
#cloud-config
runcmd:
    - apt update
    - apt install -y qemu-guest-agent net-tools
    - timedatectl set-timezone America/Toronto
    - systemctl enable qemu-guest-agent
    - systemctl start qemu-guest-agent
    - echo "done" > /tmp/vendor-cloud-init-done
    EOF

    file_name = "cloud-config.yaml"
  }
}

resource "proxmox_virtual_environment_vm" "ubuntu_vm_cloned" {
  depends_on = [proxmox_virtual_environment_vm.ubuntu_vm]
  name = "587-cloned"
  node_name = var.virtual_environment_node_name
  vm_id     = 587

  clone {
    vm_id = 586
  }

  initialization {
    #    interface = "scsi0"
    ip_config {
      ipv4 {
        address = "dhcp"
      }
    }

    user_account {
      username = "ubuntu"
      keys     = [trimspace(data.local_file.ssh_public_key.content)]
    }

    vendor_data_file_id = proxmox_virtual_environment_file.cloud_config.id
  }

  started = true
}

Both VMs got deployed, the "cloned" one has cloudinit:
Screenshot 2023-10-02 at 9 22 01 PM

Without pressing "regenerate" there, I was able to login into the VM using configured public key:
Screenshot 2023-10-02 at 9 29 32 PM

So far, no ideas what could be wrong 🤔

@bpg
Copy link
Owner

bpg commented Oct 3, 2023

@some-random-username-123 this could be the reason. If you're not overriding vm_ci_interface variable at apply, the default ide0 may not work in all configurations. I would recommend switching to ide2 as per documentation.

@some-random-username-123
Copy link
Author

@bpg Thanks for the response.
I tried it with the other interface and all, but it still wont work. This might be a issue with the distribution, as you areusing ubuntu and it works for you, idk. I will try your ubuntu template and clone next and see it has something to do with the linux distribution, alternatively I will also try and reinstall proxmox and see if this might fixes the issue.

@bpg
Copy link
Owner

bpg commented Oct 12, 2023

Hi @webtroter, @tobiasehlert! 👋🏼

I see you upvoted this issue, do you have a similar problem in your deployments? If yes, would you mind sharing your configuration?

Thanks!

@bpg bpg added the ⌛ pending author's response Requested additional information from the reporter label Oct 12, 2023
@webtroter
Copy link

webtroter commented Oct 12, 2023 via email

@tobiasehlert
Copy link

@bpg, well slightly the same.

Example terraform file:

resource "proxmox_virtual_environment_file" "vm_cloud_init" {
  content_type = "snippets"
  datastore_id = "local"
  node_name    = var.proxmox_settings.node

  source_raw {
    file_name = "cloud-init.user-data.yml"
    data      = file("cloud-init/user-data.yml")
  }
}

Example cloud-init/user-data.yml file:

#cloud-config
package_upgrade: true
packages:
  - qemu-guest-agent

timezone: Europe/Stockholm
users:
  - name: myusername
    groups: [adm, cdrom, dip, plugdev, lxd, sudo]
    lock-passwd: false
    sudo: ALL=(ALL) NOPASSWD:ALL
    shell: /bin/bash
    ssh_authorized_keys:
      - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyDI3c8l5Se4w0B2ejL36WJh/PdD5MKKsL9zX0a9sT

power_state:
  delay: now
  mode: reboot
  message: Rebooting after cloud-init completion
  condition: true

Proxmox GUI:
image

My expectation was to see my user that was provisioned and the ssh-key, but that's not shown.

I run version Proxmox version 8.0.3 and Terraform provider bpg/proxmox version 0.33.0.

@tobiasehlert
Copy link

Also (maybe related to cloud-init issue), the proxmox_virtual_environment_file resource for the cloud-init file shown in comment returns following error to me when applying:

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: no such file: "local:snippets/cloud-init.user-data.yml"
│ 
│   with proxmox_virtual_environment_file.vm_cloud_init,
│   on cloud_init.tf line 1, in resource "proxmox_virtual_environment_file" "vm_cloud_init":
│    1: resource "proxmox_virtual_environment_file" "vm_cloud_init" {
│ 
╵

@bpg
Copy link
Owner

bpg commented Oct 25, 2023

@tobiasehlert could you pls check if snippets content type is enabled on the local storage? Could be another case of #370 (comment)

@ratiborusx
Copy link

ratiborusx commented Oct 25, 2023

I've spent a whole day yesterday and quite a bit of overtime experimenting with provider and testing cloud-init functionality specifically and here's my observations.

PART I
In short, CI (cloud-init) cloud-config works as expected at least in userdata part. I didn't test vendor/network/meta because i've got no use for it but i have no reason to believe it won't work.
As i already mentioned somewhere in other issues Proxmox executes cloud-init in somewhat "unconventional" way (at least i'm not used to it compared to how cloud providers deal with it) generating an ISO image for it with the data and mounting it in CD-ROM drive. It also allows to regenerate said image and reapply configuration it contains (for example add a new ssh-key for a user), which is not usually the case with the cloud stuff where cloud-config applied only once at the first boot (or more precisely some modules of CI).

I'm not sure if people are aware but things that Proxmox exposes in it's GUI for Cloud-Init is just a small subset of what cloud-config is capable of. These things are what provider can control via "initialization.dns", "initialization.ip_config" and "initialization.user_account" (btw @bpg there seem to be no way for provider to change "Upgrade packages" option as in GUI?):
image

But that is in no way a full extent of what could be done via cloud-config and by using provider's arguments like "user_data_file_id" (or network/vendor/meta ones) we could inject our own custom cloud-init cloud-config.
My own mistake (and probably most people with this issue are doing the same) was that i expected to see changes in exposed parameters of cloud-init in Proxmox's GUI - it won't happen although after booting up all the config's parameters would be applied.
I also do not fully understand that weird magic Proxmox does with cloud-init so it confuses me alot.
For example (and i think THIS is what provider does or emulates when we inject custom cloud-config via "proxmox_virtual_environment_file") i used a console utility "qm" to inject my custom cloud-config into an image and bake it in template afterwards. Documentation also mentions that you could dump cloud-init info contained inside an image but this somehow never worked for me (for CUSTOM cloud-config anyway, but it shows info you put in the GUI fields of cloud-init).
An example:

# freshly baked template with an injected cloud-config shows nothing for it
root@prox-srv1:~# qm cloudinit dump 1011 user
#cloud-config
hostname: template-ubuntu-22
manage_etc_hosts: true
fqdn: template-ubuntu-22.04
chpasswd:
  expire: False
users:
  - default
package_upgrade: true

# i try to inject cloud-config via console tool but it still shows nothing afterwads
root@prox-srv1:~# qm set 1011 --cicustom "user=local:snippets/userdata-proxmox.yml"
update VM 1011: -cicustom user=local:snippets/userdata-proxmox.yml

root@prox-srv1:~# qm cloudinit dump 1011 user
#cloud-config
hostname: template-ubuntu-22
manage_etc_hosts: true
fqdn: template-ubuntu-22.04
chpasswd:
  expire: False
users:
  - default
package_upgrade: true

# but if i change "User" field of Cloud-Init in Proxmox's GUI it detects changes
root@prox-srv1:~# qm cloudinit dump 1011 user
#cloud-config
hostname: template-ubuntu-22
manage_etc_hosts: true
fqdn: template-ubuntu-22.04
user: WOLOLO
chpasswd:
  expire: False
users:
  - default
package_upgrade: true

In the end it's very weird for me how Proxmox handles cloud-init and i'm not sure what exactly it shows via "qm cloudinit dump". Why it's only reflection of GUI's changes i've no clue...
Maybe some Proxmox guru could explain it or @bpg himself (at least on provider's part, how it handles all that stuff).
The only thing i want to reiterate again - if you inject custom cloud-config into your vm/template do not expect to see any changes in the Proxmox's GUI in Cloud-Init. It won't be shown in "qm cloudinit dump" either.

PART II
That's content of my custom cloud-config:

ratiborus@HOMEWORLD:~/WORKSPACE/terraform_yandex/proxmox$ cat ../keys/userdata-proxmox.yml
#cloud-config
hostname: px-cloud-config-applied
users:
  - name: tf
    groups: adm,sudo
    shell: /bin/bash
    sudo: ['ALL=(ALL) NOPASSWD:ALL']
    ssh-authorized-keys:
      - ssh-rsa AAAABsomelongstring== tf

packages:
- qemu-guest-agent
package_upgrade: true

runcmd:
  - systemctl enable --now qemu-guest-agent
  - echo "done" > /tmp/user-cloud-init-done

final_message: |
  cloud-init has finished
  version: $version
  timestamp: $timestamp
  datasource: $datasource
  uptime: $uptime
  Ratiborus was here... 

And here's 3 different implementations for injecting custom cloud-init cloud-config for userdata, and all of them work:

  • cloud-config is kept in a dedicated yaml file and "imported" inside resource directly as external file; probably they way i'd use it if not one small issue i'll mention a bit later...
  • cloud-config is kept in a dedicated yaml file and "imported" inside resource as raw data via "file" function of terraform that renders content of an external file; my favourite way of all so far but there may be unintended consequences, i didn't test it much
  • cloud-config is kept inline inside terraform manifest and "imported" inside resource as raw data; probably the worst implementation because you keep potentially changeable data inside infrastructure manifest, but may work in some cases where you don't use modules or need a fast way to test something
#==================#
#   CLOUD-CONFIG   #
#==================#

resource "proxmox_virtual_environment_file" "cloud_config_userdata" {
  content_type = "snippets"
  datastore_id = "local"
  node_name    = "prox-srv1"
  source_file {
    path = "../keys/userdata-proxmox.yml"
  }
}

resource "proxmox_virtual_environment_file" "cloud_config_userdata_raw_file" {
  content_type = "snippets"
  datastore_id = "local"
  node_name    = "prox-srv1"
  source_raw {
    data = file("../keys/userdata-proxmox.yml")
    file_name = "userdata-proxmox-raw-file.yml"
  }
}

resource "proxmox_virtual_environment_file" "cloud_config_userdata_raw" {
  content_type = "snippets"
  datastore_id = "local"
  node_name    = "prox-srv1"
  source_raw {
    data = <<EOF
#cloud-config
hostname: px-cloud-config-applied
packages:
  - qemu-guest-agent
users:
  - name: tf
    groups: sudo
    shell: /bin/bash
    ssh-authorized-keys:
      - ssh-rsa some_long_key
    sudo: ALL=(ALL) NOPASSWD:ALL
runcmd:
    - systemctl enable --now qemu-guest-agent
    - echo "done" > /tmp/user-cloud-init-done
EOF

    file_name = "userdata-proxmox-raw.yml"
  }
}

And now about the issue with the first implementation i mentioned earlier.
If you change your external file that is getting imported into Proxmox's snippets datastore these changes are not visible for provider and resource will stay the same. Most likely because provider checks only existence of a file by its name. But if we "import" raw source even as rendered external file then provider sees changes and acts accordingly. The same thing probably happens with cloud images being imported into ISO datastore.
Maybe if provider checked and compared checksum of source and target files every plan and tried to recreate resource (re-download file) if changes are detected it would work better. We could also re-download any distribution's cloud images when they get updated. But i'm not sure if it's something feasible or easily implemented or even wanted by most people.
What do you think, @bpg?

Here's an example:

module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file: Creating...
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata: Creating...
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata: Creation complete after 1s [id=local:snippets/userdata-proxmox.yml]
module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file: Creation complete after 1s [id=local:snippets/userdata-proxmox-raw-file.yml]

###
do some changes to source file "../keys/userdata-proxmox.yml", i added installation of vim and htop packages
###

ratiborus@HOMEWORLD:~/WORKSPACE/terraform_yandex/proxmox$ terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # module.proxmox.proxmox_virtual_environment_file.cloud_config_userdata_raw_file must be replaced
-/+ resource "proxmox_virtual_environment_file" "cloud_config_userdata_raw_file" {
      + file_modification_date = (known after apply)
      ~ file_name              = "userdata-proxmox-raw-file.yml" -> (known after apply)
      + file_size              = (known after apply)
      + file_tag               = (known after apply)
      ~ id                     = "local:snippets/userdata-proxmox-raw-file.yml" -> (known after apply)
        # (5 unchanged attributes hidden)

      ~ source_raw {
          ~ data      = <<-EOT # forces replacement
                #cloud-config
                hostname: px-cloud-config-applied
                users:
                  - name: tf
                    groups: adm,sudo
                    shell: /bin/bash
                    sudo: ['ALL=(ALL) NOPASSWD:ALL']
                    ssh-authorized-keys:
                      - ssh-rsa AAAABsomelongstring== tf

                packages:
                - qemu-guest-agent
              + - vim
              + - htop
                package_upgrade: true

                runcmd:
                  - systemctl enable --now qemu-guest-agent
                  - echo "done" > /tmp/user-cloud-init-done

                final_message: |
                  cloud-init has finished
                  version: $version
                  timestamp: $timestamp
                  datasource: $datasource
                  uptime: $uptime
                  Ratiborus was here...
            EOT
            # (2 unchanged attributes hidden)
        }
    }

Plan: 1 to add, 0 to change, 1 to destroy.

@ratiborusx
Copy link

And another longread. I'm sorry...

@bpg
I'm not exactly sure what is the reason but it probably needs to be highlighted in documentation.
When you create a VM template do not forget to set "started = false". Default is "true" which is sane but not for template considering it's not supposed to be ran at all.
Else you'll be getting updates in-place on any plan generation even though VM itself wouldn't be started ever:

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204 will be updated in-place
  ~ resource "proxmox_virtual_environment_vm" "template_ubuntu_2204" {
        id                      = "1011"
      ~ ipv4_addresses          = [] -> (known after apply)
      ~ ipv6_addresses          = [] -> (known after apply)
        name                    = "template-ubuntu-22.04"
      ~ network_interface_names = [] -> (known after apply)
        tags                    = [
            "template-ubuntu-22.04",
            "templates",
            "terraform",
        ]
        # (21 unchanged attributes hidden)

        # (9 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Also, even with "started = false" i'm still getting this "architecture" update for template VM after it was already created (once on the next plan generation):

...
module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204: Creating...
module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204: Creation complete after 7s [id=1011]

ratiborus@HOMEWORLD:~/WORKSPACE/terraform_yandex/proxmox$ terraform apply
...

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.proxmox.proxmox_virtual_environment_vm.template_ubuntu_2204 will be updated in-place
  ~ resource "proxmox_virtual_environment_vm" "template_ubuntu_2204" {
        id                      = "1011"
        name                    = "template-ubuntu-22.04"
        tags                    = [
            "template-ubuntu-22.04",
            "templates",
            "terraform",
        ]
        # (24 unchanged attributes hidden)

      ~ cpu {
          + architecture = "x86_64"
            # (7 unchanged attributes hidden)
        }

        # (8 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

It happens only once after template VM resource creation and also does not happen if i recreate resource (i.e. with "terraform taint"). No difference whether "template = true" or "false".
I also tried it on other Linux distribution (Astra) and the result is the same. Here's test resources:

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_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         = 20
    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.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
  #   ]
  # }
}

Not sure but maybe all that info should be covered in a dedicated issue? Just feel like i'm a bit off-topic here and deluting main question :)

@bpg
Copy link
Owner

bpg commented Oct 26, 2023

Thanks for the wealth of information, @ratiborusx. That's a really impressive investigation! I'll need to set aside some time to go over all the details here. I'll get back to you at some point over the weekend :)

@ratiborusx
Copy link

Just a little bit of new information that was revealed at today's past-midnight meeting and demo.
If i inject my custom cloud-config like this there's no way to set any cloud-init configuration through Proxmox's GUI - it never gets applied even if i regenerate image:

  initialization {
    datastore_id = "local"
    interface    = "ide2"
    ip_config {
      ipv4 {
        address = "dhcp"
      }
    }
    user_data_file_id = proxmox_virtual_environment_file.cloud_config_userdata["prox-srv1"].id
  }

An example:

  • I deployed VM with my custom cloud-config provided as above
  • As part of that config i create user "tf" and drop its public ssh key
  • Here's summary info about VM and its Cloud-Init status

image
image

  • Now i try to connect to that VM with my "tf" user and it's key:
ratiborus@HOMEWORLD:~$ ssh -i ~/.ssh/tf.key tf@10.177.144.35
tf@px-cloud-config-applied:~$ getent passwd | grep bash
root:x:0:0:root:/root:/bin/bash
tf:x:1000:1000::/home/tf:/bin/bash
  • After that i change GUI's cloud-init config (added another user but with the same key as "tf"), press "Regenerate image" and power-cycle VM to be sure
    image
  • Trying to connect with new credentials:
ratiborus@HOMEWORLD:~$ ssh -i ~/.ssh/tf.key abc123@10.177.144.35
abc123@10.177.144.35: Permission denied (publickey).
  • NUH-UH!

I saw those in resource description but thought they just overwrite each other.
So if after applying my custom cloud-config i reapply setting from GUI (with image regeneration) they will overwrite old ones from custom config because both are supposed to put that data in that small 4Mb cloud-init image that resides alongside with disk's one?
image
image

UPD.
Now, after reading some docs of PVE again i see that they call stuff available through GUI as "automatically generated config" and that custom and automatic stuff can be mixed but only on "silo" level - i.e. user, network, vendor and meta data should be unique (either custom or automatic).
image
After all that i'm still not sure whether i could use GUI's Cloud-Init settings to overwrite ones injected through custom cloud-config. It's not that i'd need that but others who access Proxmox via GUI would need it sometimes to drop in their own creds.
But ofc it has nothing to do with provider :)

@tobiasehlert
Your 1st issue is that you expect info from your custom cloud-config to be shown in GUI - it won't be visible there but it should be applied by cloud-init, your should check it.
Your 2nd issue with an error about missing file may be because you removed that file manually via GUI but resource still present in terraform's state file. The easiest way to fix would be to remove said resource from state file via "terraform state rm 'resource_name'" and recreate it. If I'm not wrong this issue (it also affected disk images) should be fixed in 0.36.0, i mentioned this in #643.

@tobiasehlert
Copy link

@tobiasehlert could you pls check if snippets content type is enabled on the local storage? Could be another case of #370 (comment)

Yes, that fixed my problem with snippet, thanks @bpg!
New to Proxmox, so didn't know about that parameter :)

@Fabiosilvero
Copy link

Fabiosilvero commented Nov 4, 2023

Hello !

I also have this issue (I didn't wanted to open a duplicate, feel free to ask me to open my own issue).

Host :

  • Proxmox VE 8.0.4 (single node)
  • OS : Debian 12 up to date

Template :

  • Built with Packer
  • OS : Debian 12
  • Cloud init installed
  • OVMF

Terraform code (redacted) :

terraform {
  required_providers {
    proxmox = {
      source = "bpg/proxmox"
      version = "0.37.0"
    }
  }
}

provider "proxmox" {
  endpoint = "https://my.awesome.server:8006/"
  api_token = "user@pve!token1=my-awesome-token"
  insecure = true
  tmp_dir  = "/var/tmp"
}

resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
  name        = "terraform-provider-proxmox-ubuntu-vm"
  description = "Managed by Terraform"
  tags        = ["terraform", "ubuntu"]

  node_name = "node1"
  vm_id     = 4321

  agent {
    # read 'Qemu guest agent' section, change to true only when ready
    enabled = true
  }

  clone {
    vm_id = "101"
  }

  bios = "ovmf"
  reboot = true
  boot_order = ["ide2","virtio0","net0"]

  disk {
    datastore_id = "datastore1"
    file_format  = "raw"
    interface    = "virtio0"
    size         = 25 
  }

  disk {
    datastore_id = "datastore1"
    file_format  = "raw"
    interface    = "virtio1"
    size         = 4 
  }

  network_device {
    bridge = "vmbr0"
    vlan_id = "1"
  }

  operating_system {
    type = "l26"
  }

  scsi_hardware = "virtio-scsi-single"

  initialization {
    datastore_id = "datastore1"
    interface = "ide2"
    ip_config {
        ipv4 {
            address = "1.2.3.4/24"
            gateway = "1.2.3.1"
        }
    }
  }

}

The VM is created from template with correct boot order, but after disk resize, the boot order is changed to virtio0;net0 although I specified it in my Terraform code.

I tried to remove the Cloud Init Drive to let Terraform create it (Packer create this drive at ide0 at the last step) and set it to ide2, but I have the same issue.

Since the Cloud init drive doesn't appear in boot order, the VM doesn't see it, so Cloud Init never configure the IP address. And the Terraform execution hangs up undefinitively (well, I killed it at 2min and at 10min before).

TF_LOG=DEBUG terraform apply -auto-approve
2023-11-04T19:22:46.389+0100 [INFO]  Terraform version: 1.6.2
2023-11-04T19:22:46.389+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.36.0
2023-11-04T19:22:46.389+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.19.1
2023-11-04T19:22:46.389+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2023-11-04T19:22:46.389+0100 [DEBUG] using github.com/zclconf/go-cty v1.14.1
2023-11-04T19:22:46.389+0100 [INFO]  Go runtime version: go1.21.3
2023-11-04T19:22:46.389+0100 [INFO]  CLI args: []string{"terraform", "apply", "-auto-approve"}
2023-11-04T19:22:46.389+0100 [DEBUG] Attempting to open CLI config file: /home/user/.terraformrc
2023-11-04T19:22:46.389+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2023-11-04T19:22:46.389+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-11-04T19:22:46.389+0100 [DEBUG] ignoring non-existing provider search directory /home/user/.terraform.d/plugins
2023-11-04T19:22:46.389+0100 [DEBUG] ignoring non-existing provider search directory /home/user/.local/share/terraform/plugins
2023-11-04T19:22:46.389+0100 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2023-11-04T19:22:46.389+0100 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2023-11-04T19:22:46.389+0100 [DEBUG] ignoring non-existing provider search directory /usr/share/vscodium/resources/app/out/vs/workbench/contrib/terminal/browser/media/fish_xdg_data/terraform/plugins
2023-11-04T19:22:46.390+0100 [INFO]  CLI command args: []string{"apply", "-auto-approve"}
2023-11-04T19:22:46.390+0100 [DEBUG] New state was assigned lineage "dd7f6bcc-27d6-b9ca-dcd8-3c492585daea"
2023-11-04T19:22:46.403+0100 [DEBUG] checking for provisioner in "."
2023-11-04T19:22:46.414+0100 [DEBUG] checking for provisioner in "/usr/bin"
2023-11-04T19:22:46.414+0100 [INFO]  backend/local: starting Apply operation
2023-11-04T19:22:46.414+0100 [DEBUG] created provider logger: level=debug
2023-11-04T19:22:46.415+0100 [INFO]  provider: configuring client automatic mTLS
2023-11-04T19:22:46.424+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 args=[".terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0"]
2023-11-04T19:22:46.425+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 pid=34879
2023-11-04T19:22:46.425+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0
2023-11-04T19:22:46.428+0100 [INFO]  provider.terraform-provider-proxmox_v0.37.0: configuring server automatic mTLS: timestamp="2023-11-04T19:22:46.428+0100"
2023-11-04T19:22:46.441+0100 [DEBUG] provider: using plugin: version=6
2023-11-04T19:22:46.441+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: plugin address: address=/tmp/plugin1085308759 network=unix timestamp="2023-11-04T19:22:46.441+0100"
2023-11-04T19:22:46.455+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-11-04T19:22:46.456+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 pid=34879
2023-11-04T19:22:46.456+0100 [DEBUG] provider: plugin exited
2023-11-04T19:22:46.456+0100 [DEBUG] Building and walking validate graph
2023-11-04T19:22:46.456+0100 [DEBUG] ProviderTransformer: "proxmox_virtual_environment_vm.ubuntu_vm" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-11-04T19:22:46.457+0100 [DEBUG] ReferenceTransformer: "proxmox_virtual_environment_vm.ubuntu_vm" references: []
2023-11-04T19:22:46.457+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/bpg/proxmox\"]" references: []
2023-11-04T19:22:46.457+0100 [DEBUG] Starting graph walk: walkValidate
2023-11-04T19:22:46.458+0100 [DEBUG] created provider logger: level=debug
2023-11-04T19:22:46.458+0100 [INFO]  provider: configuring client automatic mTLS
2023-11-04T19:22:46.462+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 args=[".terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0"]
2023-11-04T19:22:46.462+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 pid=34894
2023-11-04T19:22:46.462+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0
2023-11-04T19:22:46.465+0100 [INFO]  provider.terraform-provider-proxmox_v0.37.0: configuring server automatic mTLS: timestamp="2023-11-04T19:22:46.465+0100"
2023-11-04T19:22:46.475+0100 [DEBUG] provider: using plugin: version=6
2023-11-04T19:22:46.475+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: plugin address: address=/tmp/plugin3635838171 network=unix timestamp="2023-11-04T19:22:46.475+0100"
2023-11-04T19:22:46.488+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-11-04T19:22:46.489+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 pid=34894
2023-11-04T19:22:46.489+0100 [DEBUG] provider: plugin exited
2023-11-04T19:22:46.489+0100 [INFO]  backend/local: apply calling Plan
2023-11-04T19:22:46.489+0100 [DEBUG] Building and walking plan graph for NormalMode
2023-11-04T19:22:46.489+0100 [DEBUG] ProviderTransformer: "proxmox_virtual_environment_vm.ubuntu_vm (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-11-04T19:22:46.489+0100 [DEBUG] ReferenceTransformer: "proxmox_virtual_environment_vm.ubuntu_vm (expand)" references: []
2023-11-04T19:22:46.489+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/bpg/proxmox\"]" references: []
2023-11-04T19:22:46.489+0100 [DEBUG] Starting graph walk: walkPlan
2023-11-04T19:22:46.490+0100 [DEBUG] created provider logger: level=debug
2023-11-04T19:22:46.490+0100 [INFO]  provider: configuring client automatic mTLS
2023-11-04T19:22:46.494+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 args=[".terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0"]
2023-11-04T19:22:46.494+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 pid=34906
2023-11-04T19:22:46.494+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0
2023-11-04T19:22:46.497+0100 [INFO]  provider.terraform-provider-proxmox_v0.37.0: configuring server automatic mTLS: timestamp="2023-11-04T19:22:46.497+0100"
2023-11-04T19:22:46.507+0100 [DEBUG] provider: using plugin: version=6
2023-11-04T19:22:46.507+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: plugin address: address=/tmp/plugin478421350 network=unix timestamp="2023-11-04T19:22:46.507+0100"
2023-11-04T19:22:46.516+0100 [INFO]  provider.terraform-provider-proxmox_v0.37.0: Configuring the Proxmox provider...: tf_rpc=ConfigureProvider tf_req_id=4362ae77-05e9-c2b2-d961-90a6aaf0bfd2 tf_mux_provider="*proto6server.Server" tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/bpg/terraform-provider-proxmox/fwprovider/provider.go:195 @module=proxmox timestamp="2023-11-04T19:22:46.516+0100"
2023-11-04T19:22:46.517+0100 [DEBUG] Resource instance state not found for node "proxmox_virtual_environment_vm.ubuntu_vm", instance proxmox_virtual_environment_vm.ubuntu_vm
2023-11-04T19:22:46.517+0100 [DEBUG] ReferenceTransformer: "proxmox_virtual_environment_vm.ubuntu_vm" references: []
2023-11-04T19:22:46.517+0100 [DEBUG] refresh: proxmox_virtual_environment_vm.ubuntu_vm: no state, so not refreshing
2023-11-04T19:22:46.528+0100 [WARN]  Provider "registry.terraform.io/bpg/proxmox" produced an invalid plan for proxmox_virtual_environment_vm.ubuntu_vm, 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:
      - .template: planned value cty.False for a non-computed attribute
      - .timeout_migrate: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .timeout_start_vm: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .acpi: planned value cty.True for a non-computed attribute
      - .timeout_create: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .timeout_shutdown_vm: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .started: planned value cty.True for a non-computed attribute
      - .migrate: planned value cty.False for a non-computed attribute
      - .on_boot: planned value cty.True for a non-computed attribute
      - .timeout_reboot: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .tablet_device: planned value cty.True for a non-computed attribute
      - .timeout_clone: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .timeout_move_disk: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .timeout_stop_vm: planned value cty.NumberIntVal(300) for a non-computed attribute
      - .keyboard_layout: planned value cty.StringVal("en-us") for a non-computed attribute
      - .disk[0].iothread: planned value cty.False for a non-computed attribute
      - .disk[0].ssd: planned value cty.False for a non-computed attribute
      - .disk[0].cache: planned value cty.StringVal("none") for a non-computed attribute
      - .disk[1].iothread: planned value cty.False for a non-computed attribute
      - .disk[1].ssd: planned value cty.False for a non-computed attribute
      - .disk[1].cache: planned value cty.StringVal("none") for a non-computed attribute
      - .clone[0].full: planned value cty.True for a non-computed attribute
      - .clone[0].retries: planned value cty.NumberIntVal(1) 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].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].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].trim: planned value cty.False for a non-computed attribute
      - .agent[0].type: planned value cty.StringVal("virtio") for a non-computed attribute
2023-11-04T19:22:46.529+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-11-04T19:22:46.531+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 pid=34906
2023-11-04T19:22:46.531+0100 [DEBUG] provider: plugin exited
2023-11-04T19:22:46.531+0100 [DEBUG] building apply graph to check for errors
2023-11-04T19:22:46.531+0100 [DEBUG] Resource state not found for node "proxmox_virtual_environment_vm.ubuntu_vm", instance proxmox_virtual_environment_vm.ubuntu_vm
2023-11-04T19:22:46.531+0100 [DEBUG] ProviderTransformer: "proxmox_virtual_environment_vm.ubuntu_vm (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-11-04T19:22:46.531+0100 [DEBUG] ProviderTransformer: "proxmox_virtual_environment_vm.ubuntu_vm" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/bpg/proxmox"]
2023-11-04T19:22:46.531+0100 [DEBUG] ReferenceTransformer: "proxmox_virtual_environment_vm.ubuntu_vm (expand)" references: []
2023-11-04T19:22:46.531+0100 [DEBUG] ReferenceTransformer: "proxmox_virtual_environment_vm.ubuntu_vm" references: []
2023-11-04T19:22:46.531+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/bpg/proxmox\"]" references: []

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:

  # proxmox_virtual_environment_vm.ubuntu_vm will be created
  + resource "proxmox_virtual_environment_vm" "ubuntu_vm" {
      + acpi                    = true
      + bios                    = "ovmf"
      + boot_order              = [
          + "ide2",
          + "virtio0",
          + "net0",
        ]
      + 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                 = false
      + name                    = "terraform-provider-proxmox-ubuntu-vm"
      + network_interface_names = (known after apply)
      + node_name               = "node1"
      + on_boot                 = true
      + reboot                  = true
      + scsi_hardware           = "virtio-scsi-single"
      + started                 = true
      + tablet_device           = true
      + tags                    = [
          + "terraform",
          + "ubuntu",
        ]
      + template                = false
      + timeout_clone           = 1800
      + timeout_create          = 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                   = 4321

      + agent {
          + enabled = true
          + timeout = "15m"
          + trim    = false
          + type    = "virtio"
        }

      + clone {
          + full    = true
          + retries = 1
          + vm_id   = 101
        }

      + disk {
          + cache             = "none"
          + datastore_id      = "datastore1"
          + file_format       = "raw"
          + interface         = "virtio0"
          + iothread          = false
          + path_in_datastore = (known after apply)
          + size              = 25
          + ssd               = false
        }
      + disk {
          + cache             = "none"
          + datastore_id      = "datastore1"
          + file_format       = "raw"
          + interface         = "virtio1"
          + iothread          = false
          + path_in_datastore = (known after apply)
          + size              = 4
          + ssd               = false
        }

      + initialization {
          + datastore_id = "datastore1"
          + interface    = "ide2"

          + ip_config {
              + ipv4 {
                  + address = "1.2.3.4/24"
                  + gateway = "1.2.3.1"
                }
            }
        }

      + network_device {
          + bridge      = "vmbr0"
          + enabled     = true
          + firewall    = false
          + mac_address = (known after apply)
          + model       = "virtio"
          + mtu         = 0
          + queues      = 0
          + rate_limit  = 0
          + vlan_id     = 4
        }

      + operating_system {
          + type = "l26"
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.
2023-11-04T19:22:46.534+0100 [INFO]  backend/local: apply calling Apply
2023-11-04T19:22:46.534+0100 [DEBUG] Building and walking apply graph for NormalMode plan
2023-11-04T19:22:46.534+0100 [DEBUG] Resource state not found for node "proxmox_virtual_environment_vm.ubuntu_vm", instance proxmox_virtual_environment_vm.ubuntu_vm
2023-11-04T19:22:46.534+0100 [DEBUG] ProviderTransformer: "proxmox_virtual_environment_vm.ubuntu_vm (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/bpg/proxmox"]
2023-11-04T19:22:46.534+0100 [DEBUG] ProviderTransformer: "proxmox_virtual_environment_vm.ubuntu_vm" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/bpg/proxmox"]
2023-11-04T19:22:46.534+0100 [DEBUG] ReferenceTransformer: "proxmox_virtual_environment_vm.ubuntu_vm (expand)" references: []
2023-11-04T19:22:46.534+0100 [DEBUG] ReferenceTransformer: "proxmox_virtual_environment_vm.ubuntu_vm" references: []
2023-11-04T19:22:46.534+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/bpg/proxmox\"]" references: []
2023-11-04T19:22:46.535+0100 [DEBUG] Starting graph walk: walkApply
2023-11-04T19:22:46.535+0100 [DEBUG] created provider logger: level=debug
2023-11-04T19:22:46.535+0100 [INFO]  provider: configuring client automatic mTLS
2023-11-04T19:22:46.539+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 args=[".terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0"]
2023-11-04T19:22:46.539+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0 pid=34923
2023-11-04T19:22:46.539+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/bpg/proxmox/0.37.0/linux_amd64/terraform-provider-proxmox_v0.37.0
2023-11-04T19:22:46.542+0100 [INFO]  provider.terraform-provider-proxmox_v0.37.0: configuring server automatic mTLS: timestamp="2023-11-04T19:22:46.542+0100"
2023-11-04T19:22:46.552+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: plugin address: network=unix address=/tmp/plugin1931581669 timestamp="2023-11-04T19:22:46.552+0100"
2023-11-04T19:22:46.552+0100 [DEBUG] provider: using plugin: version=6
2023-11-04T19:22:46.563+0100 [INFO]  provider.terraform-provider-proxmox_v0.37.0: Configuring the Proxmox provider...: tf_req_id=3fe8f331-93a0-41bf-1fa3-12ddc241b730 @caller=github.com/bpg/terraform-provider-proxmox/fwprovider/provider.go:195 @module=proxmox tf_mux_provider="*proto6server.Server" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ConfigureProvider timestamp="2023-11-04T19:22:46.563+0100"
2023-11-04T19:22:46.575+0100 [WARN]  Provider "registry.terraform.io/bpg/proxmox" produced an invalid plan for proxmox_virtual_environment_vm.ubuntu_vm, 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_migrate: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .acpi: planned value cty.True for a non-computed attribute
      - .timeout_create: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .timeout_shutdown_vm: 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.True for a non-computed attribute
      - .migrate: planned value cty.False for a non-computed attribute
      - .on_boot: planned value cty.True for a non-computed attribute
      - .tablet_device: planned value cty.True for a non-computed attribute
      - .timeout_clone: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .timeout_move_disk: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .timeout_reboot: planned value cty.NumberIntVal(1800) for a non-computed attribute
      - .timeout_stop_vm: planned value cty.NumberIntVal(300) for a non-computed attribute
      - .keyboard_layout: planned value cty.StringVal("en-us") for a non-computed attribute
      - .template: planned value cty.False for a non-computed attribute
      - .disk[0].cache: planned value cty.StringVal("none") for a non-computed attribute
      - .disk[0].iothread: planned value cty.False for a non-computed attribute
      - .disk[0].ssd: planned value cty.False for a non-computed attribute
      - .disk[1].iothread: planned value cty.False for a non-computed attribute
      - .disk[1].ssd: planned value cty.False for a non-computed attribute
      - .disk[1].cache: planned value cty.StringVal("none") for a non-computed attribute
      - .clone[0].retries: planned value cty.NumberIntVal(1) for a non-computed attribute
      - .clone[0].full: planned value cty.True for a non-computed attribute
      - .agent[0].timeout: planned value cty.StringVal("15m") for a non-computed attribute
      - .agent[0].trim: planned value cty.False for a non-computed attribute
      - .agent[0].type: 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].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].model: planned value cty.StringVal("virtio") for a non-computed attribute
      - .network_device[0].queues: planned value cty.NumberIntVal(0) for a non-computed attribute
proxmox_virtual_environment_vm.ubuntu_vm: Creating...
2023-11-04T19:22:46.575+0100 [INFO]  Starting apply for proxmox_virtual_environment_vm.ubuntu_vm
2023-11-04T19:22:46.576+0100 [DEBUG] proxmox_virtual_environment_vm.ubuntu_vm: applying the planned Create change
2023-11-04T19:22:46.577+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: 2023/11/04 19:22:46 [DEBUG] setting computed for "network_interface_names" from ComputedKeys
2023-11-04T19:22:46.577+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: 2023/11/04 19:22:46 [DEBUG] setting computed for "ipv4_addresses" from ComputedKeys
2023-11-04T19:22:46.578+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: 2023/11/04 19:22:46 [DEBUG] setting computed for "mac_addresses" from ComputedKeys
2023-11-04T19:22:46.578+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: 2023/11/04 19:22:46 [DEBUG] setting computed for "ipv6_addresses" from ComputedKeys
2023-11-04T19:22:46.579+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept-Encoding=gzip tf_http_op_type=request tf_provider_addr=registry.terraform.io/bpg/proxmox Content-Length=92 Content-Type=application/x-www-form-urlencoded Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_http_req_method=POST Accept=application/json tf_mux_provider=tf5to6server.v5tov6Server Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_uri=/api2/json/nodes/node1/qemu/101/clone tf_http_req_version=HTTP/1.1 tf_http_req_body="description=Managed+by+Terraform&full=1&name=terraform-provider-proxmox-ubuntu-vm&newid=4321" tf_http_trans_id=a5d91021-c233-e6ef-4871-9f7607596f57 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox timestamp="2023-11-04T19:22:46.579+0100"
2023-11-04T19:22:46.606+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Pragma=no-cache tf_http_res_body="{\"data\":\"UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve!token1:\"}" tf_http_res_status_reason="200 OK" Cache-Control=max-age=0 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Server=pve-api-daemon/3.0 tf_http_op_type=response Content-Type=application/json;charset=UTF-8 tf_http_res_version=HTTP/1.1 tf_http_trans_id=a5d91021-c233-e6ef-4871-9f7607596f57 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Content-Length=81 Date="Sat, 04 Nov 2023 18:24:41 GMT" Expires="Sat, 04 Nov 2023 18:24:41 GMT" tf_http_res_status_code=200 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:22:46.606+0100"
2023-11-04T19:22:46.606+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 tf_http_trans_id=3f43c3ba-1dba-fc2c-1453-974604fb153a tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Accept-Encoding=gzip tf_http_op_type=request tf_http_req_body="" tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve%21token1:/status" tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Accept=application/json Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 timestamp="2023-11-04T19:22:46.606+0100"
2023-11-04T19:22:46.622+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Cache-Control=max-age=0 Pragma=no-cache tf_http_res_version=HTTP/1.1 tf_rpc=ApplyResourceChange Connection=[Keep-Alive, Keep-Alive] tf_http_res_body="{\"data\":{\"type\":\"qmclone\",\"id\":\"101\",\"pid\":616274,\"user\":\"packer@pve\",\"tokenid\":\"token1\",\"upid\":\"UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve!token1:\",\"status\":\"running\",\"node\":\"node1\",\"starttime\":1699122281,\"pstart\":11309712}}" tf_http_trans_id=3f43c3ba-1dba-fc2c-1453-974604fb153a tf_http_op_type=response @module=proxmox Content-Length=247 Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:24:41 GMT" Expires="Sat, 04 Nov 2023 18:24:41 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_code=200 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_http_res_status_reason="200 OK" timestamp="2023-11-04T19:22:46.622+0100"
2023-11-04T19:22:51.629+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_trans_id=3a14ed42-b579-6bb2-e30d-348c527a0f50 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Accept=application/json tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve%21token1:/status" tf_http_req_body="" Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept-Encoding=gzip tf_http_op_type=request tf_rpc=ApplyResourceChange Host=my.awesome.server:8006 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:22:51.629+0100"
2023-11-04T19:22:51.644+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @module=proxmox tf_http_op_type=response tf_http_res_status_reason="200 OK" tf_http_trans_id=3a14ed42-b579-6bb2-e30d-348c527a0f50 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:24:46 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_resource_type=proxmox_virtual_environment_vm Content-Length=247 Cache-Control=max-age=0 Expires="Sat, 04 Nov 2023 18:24:46 GMT" tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox Connection=[Keep-Alive, Keep-Alive] Pragma=no-cache tf_http_res_body="{\"data\":{\"starttime\":1699122281,\"pstart\":11309712,\"pid\":616274,\"user\":\"packer@pve\",\"type\":\"qmclone\",\"id\":\"101\",\"status\":\"running\",\"node\":\"node1\",\"tokenid\":\"token1\",\"upid\":\"UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve!token1:\"}}" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:22:51.644+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [10s elapsed]
2023-11-04T19:22:56.651+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept=application/json tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve%21token1:/status" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_body="" tf_http_req_version=HTTP/1.1 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Host=my.awesome.server:8006 tf_http_trans_id=045821cf-888f-eee9-f89a-f8c6fb741ec7 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm User-Agent=Go-http-client/1.1 tf_http_op_type=request timestamp="2023-11-04T19:22:56.651+0100"
2023-11-04T19:22:56.666+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @module=proxmox Expires="Sat, 04 Nov 2023 18:24:51 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_reason="200 OK" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:24:51 GMT" tf_http_op_type=response tf_http_res_status_code=200 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Content-Length=247 Pragma=no-cache tf_http_res_body="{\"data\":{\"pid\":616274,\"user\":\"packer@pve\",\"id\":\"101\",\"type\":\"qmclone\",\"status\":\"running\",\"node\":\"node1\",\"tokenid\":\"token1\",\"upid\":\"UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve!token1:\",\"starttime\":1699122281,\"pstart\":11309712}}" tf_http_trans_id=045821cf-888f-eee9-f89a-f8c6fb741ec7 tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:22:56.666+0100"
2023-11-04T19:23:01.674+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept-Encoding=gzip Host=my.awesome.server:8006 tf_http_req_version=HTTP/1.1 tf_http_trans_id=20cedfe6-0b3d-c3fd-e76e-3f140ade01fd tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json tf_http_op_type=request tf_rpc=ApplyResourceChange tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_http_req_body="" tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve%21token1:/status" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:01.674+0100"
2023-11-04T19:23:01.701+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @module=proxmox Connection=[Keep-Alive, Keep-Alive] Pragma=no-cache tf_http_res_status_reason="200 OK" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Cache-Control=max-age=0 Expires="Sat, 04 Nov 2023 18:24:56 GMT" tf_http_op_type=response tf_http_res_body="{\"data\":{\"pstart\":11309712,\"starttime\":1699122281,\"upid\":\"UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve!token1:\",\"tokenid\":\"token1\",\"node\":\"node1\",\"status\":\"running\",\"id\":\"101\",\"type\":\"qmclone\",\"user\":\"packer@pve\",\"pid\":616274}}" tf_http_res_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/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_trans_id=20cedfe6-0b3d-c3fd-e76e-3f140ade01fd tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange Content-Length=247 Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:24:56 GMT" timestamp="2023-11-04T19:23:01.701+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [20s elapsed]
2023-11-04T19:23:06.708+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_op_type=request tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm @module=proxmox User-Agent=Go-http-client/1.1 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_version=HTTP/1.1 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json tf_http_req_body="" tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve%21token1:/status" tf_http_trans_id=9fd7df0d-a75f-1456-b1a3-4f2de08ad9e3 tf_mux_provider=tf5to6server.v5tov6Server Accept-Encoding=gzip Host=my.awesome.server:8006 timestamp="2023-11-04T19:23:06.708+0100"
2023-11-04T19:23:06.725+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_op_type=response tf_http_trans_id=9fd7df0d-a75f-1456-b1a3-4f2de08ad9e3 Connection=[Keep-Alive, Keep-Alive] tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Date="Sat, 04 Nov 2023 18:25:01 GMT" tf_http_res_version=HTTP/1.1 Content-Type=application/json;charset=UTF-8 Expires="Sat, 04 Nov 2023 18:25:01 GMT" Pragma=no-cache tf_http_res_status_code=200 @module=proxmox Content-Length=265 tf_http_res_status_reason="200 OK" Cache-Control=max-age=0 Server=pve-api-daemon/3.0 tf_http_res_body="{\"data\":{\"tokenid\":\"token1\",\"upid\":\"UPID:node1:00096752:00AC9290:65468C69:qmclone:101:packer@pve!token1:\",\"status\":\"stopped\",\"node\":\"node1\",\"type\":\"qmclone\",\"id\":\"101\",\"pid\":616274,\"user\":\"packer@pve\",\"pstart\":11309712,\"starttime\":1699122281,\"exitstatus\":\"OK\"}}" timestamp="2023-11-04T19:23:06.725+0100"
2023-11-04T19:23:06.726+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_req_body="" tf_http_trans_id=04b6308d-537d-dced-241f-99a8aecea262 Accept-Encoding=gzip tf_http_op_type=request tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/status/current tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_method=GET tf_http_req_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server Accept=application/json Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 timestamp="2023-11-04T19:23:06.725+0100"
2023-11-04T19:23:06.735+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Expires="Sat, 04 Nov 2023 18:25:01 GMT" @module=proxmox Cache-Control=max-age=0 Content-Length=273 Date="Sat, 04 Nov 2023 18:25:01 GMT" tf_http_res_body="{\"data\":{\"status\":\"stopped\",\"vmid\":4321,\"netin\":0,\"maxmem\":4294967296,\"name\":\"terraform-provider-proxmox-ubuntu-vm\",\"diskwrite\":0,\"cpu\":0,\"netout\":0,\"mem\":0,\"agent\":1,\"diskread\":0,\"cpus\":4,\"disk\":0,\"maxdisk\":10737418240,\"ha\":{\"managed\":0},\"qmpstatus\":\"stopped\",\"uptime\":0}}" tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Connection=[Keep-Alive, Keep-Alive] Pragma=no-cache Server=pve-api-daemon/3.0 tf_http_trans_id=04b6308d-537d-dced-241f-99a8aecea262 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_http_op_type=response tf_http_res_status_code=200 tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Content-Type=application/json;charset=UTF-8 tf_http_res_status_reason="200 OK" timestamp="2023-11-04T19:23:06.735+0100"
2023-11-04T19:23:06.735+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_rpc=ApplyResourceChange @module=proxmox Accept-Encoding=gzip Host=my.awesome.server:8006 tf_http_op_type=request tf_http_req_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/config tf_mux_provider=tf5to6server.v5tov6Server Accept=application/json User-Agent=Go-http-client/1.1 tf_http_req_method=GET tf_http_req_body="" tf_http_trans_id=9cd47565-5023-9802-0182-82185156ce8d tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:06.735+0100"
2023-11-04T19:23:06.738+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Cache-Control=max-age=0 tf_http_op_type=response tf_http_res_status_code=200 tf_http_trans_id=9cd47565-5023-9802-0182-82185156ce8d tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Expires="Sat, 04 Nov 2023 18:25:01 GMT" Pragma=no-cache Server=pve-api-daemon/3.0 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Content-Length=693 tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange Date="Sat, 04 Nov 2023 18:25:01 GMT" Content-Type=application/json;charset=UTF-8 tf_http_res_body="{\"data\":{\"smbios1\":\"uuid=1a5a9836-c3c7-4158-a77a-35a6312be33c\",\"ide2\":\"none,media=cdrom\",\"sockets\":1,\"description\":\"Managed by Terraform\",\"bios\":\"ovmf\",\"net0\":\"virtio=D2:3F:F5:FB:67:D7,bridge=vmbr0,firewall=0,tag=2\",\"efidisk0\":\"datastore1:vm-4321-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M\",\"cores\":4,\"digest\":\"a5b3599bf252bd7ceccbe4060d8ec851d7fbbb2c\",\"scsihw\":\"virtio-scsi-single\",\"meta\":\"creation-qemu=8.0.2,ctime=1699047461\",\"vmgenid\":\"0253cc65-f9e1-495f-8cb9-97b871c965a5\",\"kvm\":1,\"boot\":\"order=virtio0;ide2;net0\",\"name\":\"terraform-provider-proxmox-ubuntu-vm\",\"agent\":\"1\",\"virtio0\":\"datastore1:vm-4321-disk-1,iothread=0,size=10G\",\"cpu\":\"kvm64\",\"onboot\":0,\"ostype\":\"other\",\"memory\":4096}}" tf_http_res_status_reason="200 OK" tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Connection=Keep-Alive timestamp="2023-11-04T19:23:06.738+0100"
2023-11-04T19:23:06.738+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Deleting IDE interface 'ide2': @module=proxmox tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange @caller=github.com/bpg/terraform-provider-proxmox/proxmoxtf/resource/vm.go:1645 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:06.738+0100"
2023-11-04T19:23:06.738+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: @module=proxmox Accept=application/json Accept-Encoding=gzip User-Agent=Go-http-client/1.1 tf_http_req_body=delete=ide2 tf_http_req_version=HTTP/1.1 tf_http_trans_id=32c878b6-8adb-49e7-e20b-d1d2eeb1c3df tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/config tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Content-Length=11 Content-Type=application/x-www-form-urlencoded tf_http_op_type=request tf_rpc=ApplyResourceChange Host=my.awesome.server:8006 tf_http_req_method=PUT tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:06.738+0100"
2023-11-04T19:23:06.753+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_res_status_reason="200 OK" tf_http_trans_id=32c878b6-8adb-49e7-e20b-d1d2eeb1c3df Pragma=no-cache Content-Type=application/json;charset=UTF-8 tf_http_op_type=response tf_http_res_status_code=200 tf_http_res_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox Cache-Control=max-age=0 Expires="Sat, 04 Nov 2023 18:25:01 GMT" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm Content-Length=13 Connection=[Keep-Alive, Keep-Alive] Date="Sat, 04 Nov 2023 18:25:01 GMT" Server=pve-api-daemon/3.0 tf_http_res_body="{\"data\":null}" tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox timestamp="2023-11-04T19:23:06.753+0100"
2023-11-04T19:23:06.753+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept=application/json tf_http_op_type=request tf_http_req_method=PUT tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/config tf_http_trans_id=0e2703ae-cd15-561f-d1ba-5be31e1a855e Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 tf_resource_type=proxmox_virtual_environment_vm Content-Type=application/x-www-form-urlencoded tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Content-Length=364 tf_http_req_body="agent=enabled%3D1%2Cfstrim_cloned_disks%3D0%2Ctype%3Dvirtio&bios=ovmf&delete=net1%2Cnet2%2Cnet3%2Cnet4%2Cnet5%2Cnet6%2Cnet7&ide2=file%3Ddatastore1%3Acloudinit%2Cmedia%3Dcdrom&ipconfig0=gw%3D1.2.3.1%2Cip%3D1.2.3.4%2F24&net0=model%3Dvirtio%2Cbridge%3Dvmbr0%2Cfirewall%3D0%2Ctag%3D4&onboot=1&ostype=l26&scsihw=virtio-scsi-single&tags=terraform%3Bubuntu" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:06.753+0100"
2023-11-04T19:23:07.425+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Cache-Control=max-age=0 Date="Sat, 04 Nov 2023 18:25:01 GMT" Expires="Sat, 04 Nov 2023 18:25:01 GMT" @module=proxmox Connection=[Keep-Alive, Keep-Alive] Content-Length=13 Server=pve-api-daemon/3.0 tf_mux_provider=tf5to6server.v5tov6Server Pragma=no-cache tf_http_res_body="{\"data\":null}" tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Content-Type=application/json;charset=UTF-8 tf_http_op_type=response tf_http_trans_id=0e2703ae-cd15-561f-d1ba-5be31e1a855e tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 timestamp="2023-11-04T19:23:07.425+0100"
2023-11-04T19:23:07.425+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_req_body="" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Accept=application/json Accept-Encoding=gzip Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_http_op_type=request Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_method=GET tf_http_req_version=HTTP/1.1 tf_http_trans_id=b569bcdb-b028-3317-4661-f579841ea181 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/config tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:07.425+0100"
2023-11-04T19:23:07.430+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Date="Sat, 04 Nov 2023 18:25:01 GMT" tf_http_res_body="{\"data\":{\"onboot\":1,\"virtio0\":\"datastore1:vm-4321-disk-1,iothread=0,size=10G\",\"cpu\":\"kvm64\",\"tags\":\"terraform;ubuntu\",\"ostype\":\"l26\",\"ipconfig0\":\"gw=1.2.3.1,ip=1.2.3.4/24\",\"memory\":4096,\"kvm\":1,\"vmgenid\":\"0253cc65-f9e1-495f-8cb9-97b871c965a5\",\"agent\":\"enabled=1,fstrim_cloned_disks=0,type=virtio\",\"name\":\"terraform-provider-proxmox-ubuntu-vm\",\"boot\":\"order=virtio0;net0\",\"cores\":4,\"efidisk0\":\"datastore1:vm-4321-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M\",\"digest\":\"86eb4d0004100fdc01a0077ae0d2e1319f4bbf76\",\"meta\":\"creation-qemu=8.0.2,ctime=1699047461\",\"scsihw\":\"virtio-scsi-single\",\"smbios1\":\"uuid=1a5a9836-c3c7-4158-a77a-35a6312be33c\",\"ide2\":\"datastore1:vm-4321-cloudinit,media=cdrom\",\"sockets\":1,\"bios\":\"ovmf\",\"net0\":\"virtio=F2:7B:11:2D:66:08,bridge=vmbr0,firewall=0,tag=4\",\"description\":\"Managed by Terraform\"}}" tf_http_res_status_code=200 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Content-Length=832 Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_res_status_reason="200 OK" tf_http_trans_id=b569bcdb-b028-3317-4661-f579841ea181 Cache-Control=max-age=0 Pragma=no-cache Expires="Sat, 04 Nov 2023 18:25:01 GMT" tf_http_res_version=HTTP/1.1 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Connection=Keep-Alive Content-Type=application/json;charset=UTF-8 timestamp="2023-11-04T19:23:07.430+0100"
2023-11-04T19:23:07.430+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: resize disk: tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @caller=github.com/bpg/terraform-provider-proxmox/proxmox/nodes/vms/vms.go:269 @module=proxmox tf_mux_provider=tf5to6server.v5tov6Server disk=virtio0 size=25G tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:23:07.430+0100"
2023-11-04T19:23:07.430+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_req_version=HTTP/1.1 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox Accept-Encoding=gzip Host=my.awesome.server:8006 tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/resize tf_http_req_method=PUT tf_http_trans_id=baccf77a-583e-3a8a-3fa1-ff174ae3aa03 tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_http_req_body="disk=virtio0&size=25G" tf_rpc=ApplyResourceChange Content-Length=21 Content-Type=application/x-www-form-urlencoded tf_resource_type=proxmox_virtual_environment_vm tf_http_op_type=request tf_mux_provider=tf5to6server.v5tov6Server timestamp="2023-11-04T19:23:07.430+0100"
2023-11-04T19:23:07.449+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Server=pve-api-daemon/3.0 tf_http_res_status_reason="200 OK" tf_http_trans_id=baccf77a-583e-3a8a-3fa1-ff174ae3aa03 Content-Type=application/json;charset=UTF-8 Expires="Sat, 04 Nov 2023 18:25:01 GMT" Pragma=no-cache tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm Content-Length=81 Cache-Control=max-age=0 tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox Date="Sat, 04 Nov 2023 18:25:01 GMT" tf_http_op_type=response tf_http_res_body="{\"data\":\"UPID:node1:00096810:00AC9AB4:65468C7D:resize:4321:packer@pve!token1:\"}" tf_http_res_status_code=200 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Connection=[Keep-Alive, Keep-Alive] timestamp="2023-11-04T19:23:07.449+0100"
2023-11-04T19:23:07.449+0100 [WARN]  provider.terraform-provider-proxmox_v0.37.0: unhandled HTTP response body: tf_rpc=ApplyResourceChange data="UPID:node1:00096810:00AC9AB4:65468C7D:resize:4321:packer@pve!token1:" tf_resource_type=proxmox_virtual_environment_vm tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/bpg/terraform-provider-proxmox/proxmox/api/client.go:264 @module=proxmox tf_mux_provider=tf5to6server.v5tov6Server timestamp="2023-11-04T19:23:07.449+0100"
2023-11-04T19:23:07.449+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Content-Length=85 User-Agent=Go-http-client/1.1 tf_http_req_method=PUT tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox Accept-Encoding=gzip tf_http_req_body="virtio1=file%3Ddatastore1%3A4%2Cformat%3Draw%2Csize%3D4G%2Ciothread%3D0%2Ccache%3Dnone" tf_http_req_version=HTTP/1.1 tf_http_trans_id=06c133de-2005-8d91-ca98-7bcdba889b84 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/x-www-form-urlencoded tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/config tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Accept=application/json Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_http_op_type=request tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:23:07.449+0100"
2023-11-04T19:23:08.762+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Connection=[Keep-Alive, Keep-Alive] Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_trans_id=06c133de-2005-8d91-ca98-7bcdba889b84 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange Expires="Sat, 04 Nov 2023 18:25:03 GMT" Date="Sat, 04 Nov 2023 18:25:03 GMT" tf_http_res_body="{\"data\":null}" tf_http_res_status_code=200 tf_http_res_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox Cache-Control=max-age=0 Content-Length=13 Content-Type=application/json;charset=UTF-8 Pragma=no-cache tf_http_res_status_reason="200 OK" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:08.762+0100"
2023-11-04T19:23:08.762+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Starting VM: tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/bpg/terraform-provider-proxmox/proxmoxtf/resource/vm.go:1664 @module=proxmox tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:08.762+0100"
2023-11-04T19:23:08.762+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept-Encoding=gzip Content-Length=0 tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_http_op_type=request tf_rpc=ApplyResourceChange tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 User-Agent=Go-http-client/1.1 tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/status/start tf_http_trans_id=5c884527-cdb9-a775-81ec-7792ccf2b323 Accept=application/json tf_http_req_body="" tf_http_req_method=POST tf_http_req_version=HTTP/1.1 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:08.762+0100"
2023-11-04T19:23:08.777+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 Pragma=no-cache tf_http_res_status_reason="200 OK" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange Cache-Control=max-age=0 Content-Length=82 Expires="Sat, 04 Nov 2023 18:25:03 GMT" tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server Date="Sat, 04 Nov 2023 18:25:03 GMT" Server=pve-api-daemon/3.0 tf_http_res_body="{\"data\":\"UPID:node1:00096869:00AC9B39:65468C7F:qmstart:4321:packer@pve!token1:\"}" tf_http_res_status_code=200 tf_http_trans_id=5c884527-cdb9-a775-81ec-7792ccf2b323 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox tf_http_op_type=response tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp="2023-11-04T19:23:08.776+0100"
2023-11-04T19:23:08.777+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Accept=application/json tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:00096869:00AC9B39:65468C7F:qmstart:4321:packer@pve%21token1:/status" tf_http_req_version=HTTP/1.1 tf_http_trans_id=378f1804-b0f1-e6af-79ef-89276a420f1d Accept-Encoding=gzip Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox tf_mux_provider=tf5to6server.v5tov6Server Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_op_type=request tf_http_req_body="" timestamp="2023-11-04T19:23:08.777+0100"
2023-11-04T19:23:08.795+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Connection=[Keep-Alive, Keep-Alive] tf_http_trans_id=378f1804-b0f1-e6af-79ef-89276a420f1d tf_http_res_body="{\"data\":{\"status\":\"running\",\"node\":\"node1\",\"tokenid\":\"token1\",\"upid\":\"UPID:node1:00096869:00AC9B39:65468C7F:qmstart:4321:packer@pve!token1:\",\"pid\":616553,\"user\":\"packer@pve\",\"type\":\"qmstart\",\"id\":\"4321\",\"pstart\":11311929,\"starttime\":1699122303}}" tf_http_res_status_code=200 tf_mux_provider=tf5to6server.v5tov6Server Cache-Control=max-age=0 Content-Length=249 Date="Sat, 04 Nov 2023 18:25:03 GMT" Pragma=no-cache Expires="Sat, 04 Nov 2023 18:25:03 GMT" Server=pve-api-daemon/3.0 tf_http_op_type=response @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox tf_rpc=ApplyResourceChange tf_http_res_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm Content-Type=application/json;charset=UTF-8 tf_http_res_status_reason="200 OK" timestamp="2023-11-04T19:23:08.795+0100"
2023-11-04T19:23:13.805+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_trans_id=aea93d13-d60d-c44a-e9c6-baad3fdf1e97 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_http_req_version=HTTP/1.1 tf_http_op_type=request User-Agent=Go-http-client/1.1 Accept=application/json Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:00096869:00AC9B39:65468C7F:qmstart:4321:packer@pve%21token1:/status" @module=proxmox tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_http_req_body="" timestamp="2023-11-04T19:23:13.805+0100"
2023-11-04T19:23:13.820+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange @module=proxmox Cache-Control=max-age=0 Pragma=no-cache tf_http_res_status_code=200 Connection=[Keep-Alive, Keep-Alive] Content-Length=267 Date="Sat, 04 Nov 2023 18:25:08 GMT" tf_http_res_version=HTTP/1.1 tf_http_trans_id=aea93d13-d60d-c44a-e9c6-baad3fdf1e97 Server=pve-api-daemon/3.0 tf_http_res_body="{\"data\":{\"tokenid\":\"token1\",\"upid\":\"UPID:node1:00096869:00AC9B39:65468C7F:qmstart:4321:packer@pve!token1:\",\"status\":\"stopped\",\"node\":\"node1\",\"id\":\"4321\",\"type\":\"qmstart\",\"pid\":616553,\"user\":\"packer@pve\",\"pstart\":11311929,\"starttime\":1699122303,\"exitstatus\":\"OK\"}}" tf_http_res_status_reason="200 OK" Expires="Sat, 04 Nov 2023 18:25:08 GMT" tf_http_op_type=response tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:13.820+0100"
2023-11-04T19:23:13.820+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_req_method=GET tf_http_req_version=HTTP/1.1 tf_http_trans_id=fa51d3d9-51fc-3380-b712-2d1b7a419807 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_http_req_body="" tf_resource_type=proxmox_virtual_environment_vm Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_op_type=request tf_provider_addr=registry.terraform.io/bpg/proxmox tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange @module=proxmox Accept-Encoding=gzip tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/status/current timestamp="2023-11-04T19:23:13.820+0100"
2023-11-04T19:23:13.840+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @module=proxmox Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:25:08 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_trans_id=fa51d3d9-51fc-3380-b712-2d1b7a419807 tf_rpc=ApplyResourceChange tf_http_op_type=response tf_http_res_version=HTTP/1.1 Expires="Sat, 04 Nov 2023 18:25:08 GMT" Pragma=no-cache tf_http_res_body="{\"data\":{\"cpus\":4,\"diskread\":1076224,\"tags\":\"terraform;ubuntu\",\"agent\":1,\"nics\":{\"tap4321i0\":{\"netin\":126,\"netout\":86}},\"ha\":{\"managed\":0},\"proxmox-support\":{\"pbs-library-version\":\"1.4.0 (UNKNOWN)\",\"pbs-masterkey\":true,\"pbs-dirty-bitmap-migration\":true,\"pbs-dirty-bitmap\":true,\"query-bitmap-info\":true,\"pbs-dirty-bitmap-savevm\":true,\"backup-max-workers\":true},\"blockstat\":{\"pflash0\":{\"invalid_flush_operations\":0,\"rd_operations\":0,\"account_failed\":true,\"failed_unmap_operations\":0,\"rd_merged\":0,\"wr_highest_offset\":0,\"unmap_merged\":0,\"unmap_bytes\":0,\"flush_total_time_ns\":0,\"failed_wr_operations\":0,\"invalid_rd_operations\":0,\"unmap_total_time_ns\":0,\"wr_total_time_ns\":0,\"rd_bytes\":0,\"flush_operations\":0,\"wr_merged\":0,\"wr_operations\":0,\"invalid_wr_operations\":0,\"timed_stats\":[],\"account_invalid\":true,\"failed_flush_operations\":0,\"unmap_operations\":0,\"failed_rd_operations\":0,\"rd_total_time_ns\":0,\"invalid_unmap_operations\":0,\"wr_bytes\":0},\"virtio0\":{\"failed_flush_operations\":0,\"unmap_operations\":0,\"account_invalid\":true,\"invalid_wr_operations\":0,\"timed_stats\":[],\"wr_operations\":0,\"wr_merged\":0,\"flush_operations\":6,\"invalid_unmap_operations\":0,\"wr_bytes\":0,\"rd_total_time_ns\":103031964,\"failed_rd_operations\":0,\"rd_merged\":0,\"account_failed\":true,\"rd_operations\":23,\"invalid_flush_operations\":0,\"failed_unmap_operations\":0,\"rd_bytes\":1076224,\"unmap_total_time_ns\":0,\"invalid_rd_operations\":0,\"idle_time_ns\":532095396,\"wr_total_time_ns\":0,\"flush_total_time_ns\":60603,\"failed_wr_operations\":0,\"unmap_bytes\":0,\"wr_highest_offset\":0,\"unmap_merged\":0},\"ide2\":{\"rd_merged\":0,\"invalid_flush_operations\":0,\"rd_operations\":0,\"account_failed\":true,\"failed_unmap_operations\":0,\"failed_wr_operations\":0,\"flush_total_time_ns\":0,\"unmap_bytes\":0,\"wr_highest_offset\":0,\"unmap_merged\":0,\"rd_bytes\":0,\"invalid_rd_operations\":0,\"unmap_total_time_ns\":0,\"wr_total_time_ns\":0,\"invalid_wr_operations\":0,\"timed_stats\":[],\"wr_operations\":0,\"wr_merged\":0,\"flush_operations\":0,\"failed_flush_operations\":0,\"unmap_operations\":0,\"account_invalid\":true,\"failed_rd_operations\":0,\"invalid_unmap_operations\":0,\"wr_bytes\":0,\"rd_total_time_ns\":0},\"virtio1\":{\"account_invalid\":true,\"failed_flush_operations\":0,\"unmap_operations\":0,\"wr_operations\":0,\"invalid_wr_operations\":0,\"timed_stats\":[],\"flush_operations\":0,\"wr_merged\":0,\"rd_total_time_ns\":0,\"invalid_unmap_operations\":0,\"wr_bytes\":0,\"failed_rd_operations\":0,\"rd_merged\":0,\"invalid_flush_operations\":0,\"rd_operations\":0,\"account_failed\":true,\"failed_unmap_operations\":0,\"invalid_rd_operations\":0,\"unmap_total_time_ns\":0,\"wr_total_time_ns\":0,\"rd_bytes\":0,\"unmap_bytes\":0,\"failed_wr_operations\":0,\"flush_total_time_ns\":0,\"wr_highest_offset\":0,\"unmap_merged\":0},\"efidisk0\":{\"wr_operations\":0,\"timed_stats\":[],\"invalid_wr_operations\":0,\"flush_operations\":0,\"wr_merged\":0,\"account_invalid\":true,\"unmap_operations\":0,\"failed_flush_operations\":0,\"failed_rd_operations\":0,\"rd_total_time_ns\":0,\"wr_bytes\":0,\"invalid_unmap_operations\":0,\"rd_merged\":0,\"rd_operations\":0,\"account_failed\":true,\"invalid_flush_operations\":0,\"failed_unmap_operations\":0,\"unmap_bytes\":0,\"failed_wr_operations\":0,\"flush_total_time_ns\":0,\"unmap_merged\":0,\"wr_highest_offset\":47104,\"wr_total_time_ns\":0,\"invalid_rd_operations\":0,\"unmap_total_time_ns\":0,\"rd_bytes\":0}},\"balloon\":4294967296,\"running-machine\":\"pc-i440fx-8.0+pve0\",\"pid\":616572,\"mem\":81140894,\"uptime\":4,\"qmpstatus\":\"running\",\"maxdisk\":26843545600,\"disk\":0,\"ballooninfo\":{\"max_mem\":4294967296,\"actual\":4294967296},\"netin\":126,\"vmid\":4321,\"status\":\"running\",\"netout\":86,\"cpu\":0,\"running-qemu\":\"8.0.2\",\"diskwrite\":0,\"maxmem\":4294967296,\"name\":\"terraform-provider-proxmox-ubuntu-vm\"}}" tf_http_res_status_reason="200 OK" tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:13.839+0100"
2023-11-04T19:23:13.840+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Length=12 tf_http_req_body=timeout=1800 tf_http_req_version=HTTP/1.1 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/status/reboot tf_http_trans_id=8ad0fdcf-d866-01c1-f502-89f53f079fd0 tf_http_op_type=request tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Accept=application/json Content-Type=application/x-www-form-urlencoded Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_http_req_method=POST tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp="2023-11-04T19:23:13.840+0100"
2023-11-04T19:23:13.856+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Date="Sat, 04 Nov 2023 18:25:08 GMT" tf_http_res_body="{\"data\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\"}" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_mux_provider=tf5to6server.v5tov6Server tf_http_op_type=response tf_http_res_version=HTTP/1.1 tf_http_trans_id=8ad0fdcf-d866-01c1-f502-89f53f079fd0 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Content-Length=83 Expires="Sat, 04 Nov 2023 18:25:08 GMT" Pragma=no-cache Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_provider_addr=registry.terraform.io/bpg/proxmox Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:13.856+0100"
2023-11-04T19:23:13.856+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_trans_id=cb63cd8a-4de2-6339-6675-6f0155dfe63c tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Accept=application/json tf_http_req_body="" tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox tf_rpc=ApplyResourceChange Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_http_op_type=request Host=my.awesome.server:8006 tf_http_req_method=GET tf_http_req_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox Accept-Encoding=gzip timestamp="2023-11-04T19:23:13.856+0100"
2023-11-04T19:23:13.872+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 Pragma=no-cache Server=pve-api-daemon/3.0 tf_http_res_body="{\"data\":{\"id\":\"4321\",\"type\":\"qmreboot\",\"user\":\"packer@pve\",\"pid\":616617,\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"node\":\"node1\",\"status\":\"running\",\"starttime\":1699122308,\"pstart\":11312437}}" tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Connection=[Keep-Alive, Keep-Alive] Date="Sat, 04 Nov 2023 18:25:08 GMT" Expires="Sat, 04 Nov 2023 18:25:08 GMT" tf_http_res_status_reason="200 OK" Content-Length=251 tf_http_res_status_code=200 tf_http_trans_id=cb63cd8a-4de2-6339-6675-6f0155dfe63c tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_http_op_type=response tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:13.872+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [30s elapsed]
2023-11-04T19:23:18.881+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_rpc=ApplyResourceChange tf_http_op_type=request tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_http_trans_id=c7e9a4a4-d5b6-0e61-0924-3a38841015dc Accept=application/json tf_http_req_method=GET User-Agent=Go-http-client/1.1 tf_http_req_body="" tf_http_req_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server Accept-Encoding=gzip Host=my.awesome.server:8006 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" timestamp="2023-11-04T19:23:18.881+0100"
2023-11-04T19:23:18.897+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 Expires="Sat, 04 Nov 2023 18:25:13 GMT" tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 Content-Length=251 tf_http_op_type=response tf_http_res_body="{\"data\":{\"type\":\"qmreboot\",\"id\":\"4321\",\"user\":\"packer@pve\",\"pid\":616617,\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"node\":\"node1\",\"status\":\"running\",\"starttime\":1699122308,\"pstart\":11312437}}" tf_http_trans_id=c7e9a4a4-d5b6-0e61-0924-3a38841015dc tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox Date="Sat, 04 Nov 2023 18:25:13 GMT" Pragma=no-cache Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" timestamp="2023-11-04T19:23:18.897+0100"
2023-11-04T19:23:23.906+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_http_req_method=GET tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Accept=application/json tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange Accept-Encoding=gzip tf_http_op_type=request tf_http_req_body="" tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_trans_id=d376cdb7-7586-db41-d4b1-18f67ca459da timestamp="2023-11-04T19:23:23.906+0100"
2023-11-04T19:23:23.923+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_trans_id=d376cdb7-7586-db41-d4b1-18f67ca459da Cache-Control=max-age=0 Date="Sat, 04 Nov 2023 18:25:18 GMT" tf_http_res_version=HTTP/1.1 Pragma=no-cache Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_res_body="{\"data\":{\"node\":\"node1\",\"status\":\"running\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"user\":\"packer@pve\",\"pid\":616617,\"type\":\"qmreboot\",\"id\":\"4321\",\"pstart\":11312437,\"starttime\":1699122308}}" Connection=[Keep-Alive, Keep-Alive] Content-Length=251 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Content-Type=application/json;charset=UTF-8 tf_http_res_status_code=200 tf_rpc=ApplyResourceChange tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Expires="Sat, 04 Nov 2023 18:25:18 GMT" tf_http_res_status_reason="200 OK" tf_mux_provider=tf5to6server.v5tov6Server timestamp="2023-11-04T19:23:23.922+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [40s elapsed]
2023-11-04T19:23:28.931+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_rpc=ApplyResourceChange tf_http_req_version=HTTP/1.1 tf_http_trans_id=a1538fcd-89f9-800b-3136-aa76d63bb220 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Host=my.awesome.server:8006 tf_http_op_type=request tf_http_req_method=GET @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" User-Agent=Go-http-client/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox Accept=application/json tf_http_req_body="" tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:23:28.931+0100"
2023-11-04T19:23:28.948+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm Cache-Control=max-age=0 Content-Length=251 Server=pve-api-daemon/3.0 tf_http_res_body="{\"data\":{\"pstart\":11312437,\"starttime\":1699122308,\"node\":\"node1\",\"status\":\"running\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"user\":\"packer@pve\",\"pid\":616617,\"id\":\"4321\",\"type\":\"qmreboot\"}}" @module=proxmox Date="Sat, 04 Nov 2023 18:25:23 GMT" Expires="Sat, 04 Nov 2023 18:25:23 GMT" tf_http_op_type=response tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 tf_http_res_status_reason="200 OK" tf_http_trans_id=a1538fcd-89f9-800b-3136-aa76d63bb220 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_provider_addr=registry.terraform.io/bpg/proxmox Connection=[Keep-Alive, Keep-Alive] Pragma=no-cache tf_http_res_status_code=200 timestamp="2023-11-04T19:23:28.947+0100"
2023-11-04T19:23:33.954+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_trans_id=ce3576cd-2afa-e428-f8cc-b179c75e91dd Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_http_op_type=request tf_http_req_body="" Accept-Encoding=gzip Host=my.awesome.server:8006 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_req_version=HTTP/1.1 timestamp="2023-11-04T19:23:33.954+0100"
2023-11-04T19:23:33.969+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_op_type=response tf_http_res_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Content-Length=251 Expires="Sat, 04 Nov 2023 18:25:28 GMT" tf_http_res_body="{\"data\":{\"user\":\"packer@pve\",\"pid\":616617,\"id\":\"4321\",\"type\":\"qmreboot\",\"node\":\"node1\",\"status\":\"running\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"starttime\":1699122308,\"pstart\":11312437}}" tf_http_res_status_reason="200 OK" Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:25:28 GMT" Pragma=no-cache tf_http_res_status_code=200 tf_http_trans_id=ce3576cd-2afa-e428-f8cc-b179c75e91dd @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Server=pve-api-daemon/3.0 tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:33.969+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [50s elapsed]
2023-11-04T19:23:38.976+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_resource_type=proxmox_virtual_environment_vm Accept=application/json Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_http_op_type=request tf_http_req_version=HTTP/1.1 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 User-Agent=Go-http-client/1.1 tf_http_req_body="" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_trans_id=17743852-04f3-705b-475d-2ecf698ee454 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:38.976+0100"
2023-11-04T19:23:38.991+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Content-Type=application/json;charset=UTF-8 Pragma=no-cache tf_http_res_status_code=200 tf_http_trans_id=17743852-04f3-705b-475d-2ecf698ee454 Connection=[Keep-Alive, Keep-Alive] Expires="Sat, 04 Nov 2023 18:25:33 GMT" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Content-Length=251 Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Date="Sat, 04 Nov 2023 18:25:33 GMT" tf_http_res_body="{\"data\":{\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"node\":\"node1\",\"status\":\"running\",\"type\":\"qmreboot\",\"id\":\"4321\",\"user\":\"packer@pve\",\"pid\":616617,\"pstart\":11312437,\"starttime\":1699122308}}" tf_http_res_status_reason="200 OK" tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:38.991+0100"
2023-11-04T19:23:43.998+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: User-Agent=Go-http-client/1.1 tf_http_op_type=request tf_http_trans_id=1ce36523-c933-b34c-7428-ed796627ace1 tf_resource_type=proxmox_virtual_environment_vm Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_rpc=ApplyResourceChange tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox tf_http_req_body="" tf_http_req_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox Accept=application/json tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_req_method=GET tf_mux_provider=tf5to6server.v5tov6Server timestamp="2023-11-04T19:23:43.998+0100"
2023-11-04T19:23:44.014+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Date="Sat, 04 Nov 2023 18:25:38 GMT" Pragma=no-cache tf_resource_type=proxmox_virtual_environment_vm Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 tf_http_op_type=response tf_rpc=ApplyResourceChange @module=proxmox Content-Length=251 Server=pve-api-daemon/3.0 tf_http_trans_id=1ce36523-c933-b34c-7428-ed796627ace1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Connection=[Keep-Alive, Keep-Alive] Expires="Sat, 04 Nov 2023 18:25:38 GMT" tf_http_res_body="{\"data\":{\"status\":\"running\",\"node\":\"node1\",\"tokenid\":\"token1\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"pid\":616617,\"user\":\"packer@pve\",\"id\":\"4321\",\"type\":\"qmreboot\",\"pstart\":11312437,\"starttime\":1699122308}}" tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 timestamp="2023-11-04T19:23:44.014+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [1m0s elapsed]
2023-11-04T19:23:49.020+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept=application/json Accept-Encoding=gzip User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_method=GET tf_rpc=ApplyResourceChange tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Host=my.awesome.server:8006 tf_http_req_body="" tf_http_trans_id=fc789ffc-1c24-6014-d3ff-1f5b7f6557c0 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_http_op_type=request tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" timestamp="2023-11-04T19:23:49.020+0100"
2023-11-04T19:23:49.036+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_res_status_code=200 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Cache-Control=max-age=0 Date="Sat, 04 Nov 2023 18:25:43 GMT" Pragma=no-cache tf_http_res_body="{\"data\":{\"pstart\":11312437,\"starttime\":1699122308,\"node\":\"node1\",\"status\":\"running\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"user\":\"packer@pve\",\"pid\":616617,\"id\":\"4321\",\"type\":\"qmreboot\"}}" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Connection=[Keep-Alive, Keep-Alive] Expires="Sat, 04 Nov 2023 18:25:43 GMT" tf_http_trans_id=fc789ffc-1c24-6014-d3ff-1f5b7f6557c0 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 @module=proxmox Content-Length=251 Server=pve-api-daemon/3.0 tf_http_res_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp="2023-11-04T19:23:49.036+0100"
2023-11-04T19:23:54.042+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_resource_type=proxmox_virtual_environment_vm Accept=application/json Accept-Encoding=gzip Host=my.awesome.server:8006 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_http_req_body="" tf_http_req_method=GET tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_req_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_rpc=ApplyResourceChange tf_http_op_type=request tf_http_trans_id=c0080b6a-dcba-93d1-9161-7bc9a3aaf2ad timestamp="2023-11-04T19:23:54.042+0100"
2023-11-04T19:23:54.057+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Cache-Control=max-age=0 Content-Length=251 Pragma=no-cache tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_http_op_type=response tf_http_res_version=HTTP/1.1 tf_http_trans_id=c0080b6a-dcba-93d1-9161-7bc9a3aaf2ad tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Date="Sat, 04 Nov 2023 18:25:48 GMT" Expires="Sat, 04 Nov 2023 18:25:48 GMT" @module=proxmox Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 Server=pve-api-daemon/3.0 tf_http_res_body="{\"data\":{\"starttime\":1699122308,\"pstart\":11312437,\"id\":\"4321\",\"type\":\"qmreboot\",\"user\":\"packer@pve\",\"pid\":616617,\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"node\":\"node1\",\"status\":\"running\"}}" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:54.056+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [1m10s elapsed]
2023-11-04T19:23:58.862+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: User-Agent=Go-http-client/1.1 tf_http_req_body="" tf_http_req_method=GET tf_http_req_version=HTTP/1.1 Accept=application/json tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox Host=my.awesome.server:8006 tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm tf_http_op_type=request tf_http_trans_id=4f78fa3f-9b29-deb3-9e99-7e5dd45f5d35 tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:58.862+0100"
2023-11-04T19:23:58.867+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 tf_http_res_body="{\"data\":{\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"node\":\"node1\",\"status\":\"running\",\"type\":\"qmreboot\",\"id\":\"4321\",\"user\":\"packer@pve\",\"pid\":616617,\"pstart\":11312437,\"starttime\":1699122308}}" tf_http_res_status_reason="200 OK" tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Connection=[Keep-Alive, Keep-Alive] Content-Length=251 Cache-Control=max-age=0 Date="Sat, 04 Nov 2023 18:25:53 GMT" Server=pve-api-daemon/3.0 tf_http_trans_id=4f78fa3f-9b29-deb3-9e99-7e5dd45f5d35 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Expires="Sat, 04 Nov 2023 18:25:53 GMT" Pragma=no-cache tf_http_op_type=response tf_http_res_status_code=200 tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:23:58.867+0100"
2023-11-04T19:24:03.874+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_req_version=HTTP/1.1 tf_resource_type=proxmox_virtual_environment_vm Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Accept=application/json tf_http_req_method=GET tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_op_type=request tf_http_req_body="" tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_trans_id=2ff4953f-5144-eb5f-1d7a-5451b7662516 timestamp="2023-11-04T19:24:03.873+0100"
2023-11-04T19:24:03.889+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Date="Sat, 04 Nov 2023 18:25:58 GMT" Pragma=no-cache tf_http_res_status_reason="200 OK" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 tf_http_op_type=response tf_http_res_status_code=200 tf_http_trans_id=2ff4953f-5144-eb5f-1d7a-5451b7662516 tf_mux_provider=tf5to6server.v5tov6Server Content-Length=251 Expires="Sat, 04 Nov 2023 18:25:58 GMT" Server=pve-api-daemon/3.0 Connection=[Keep-Alive, Keep-Alive] tf_http_res_body="{\"data\":{\"tokenid\":\"token1\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"status\":\"running\",\"node\":\"node1\",\"type\":\"qmreboot\",\"id\":\"4321\",\"pid\":616617,\"user\":\"packer@pve\",\"pstart\":11312437,\"starttime\":1699122308}}" tf_http_res_version=HTTP/1.1 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:24:03.889+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [1m20s elapsed]
2023-11-04T19:24:08.895+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept-Encoding=gzip User-Agent=Go-http-client/1.1 tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_trans_id=441f22cb-a4ea-ba0e-0ffa-5cd225b1437d tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_http_req_method=GET tf_provider_addr=registry.terraform.io/bpg/proxmox tf_http_req_body="" tf_rpc=ApplyResourceChange Accept=application/json tf_http_op_type=request @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_http_req_version=HTTP/1.1 tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:24:08.895+0100"
2023-11-04T19:24:08.910+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Content-Type=application/json;charset=UTF-8 tf_http_res_body="{\"data\":{\"id\":\"4321\",\"type\":\"qmreboot\",\"pid\":616617,\"user\":\"packer@pve\",\"tokenid\":\"token1\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"status\":\"running\",\"node\":\"node1\",\"starttime\":1699122308,\"pstart\":11312437}}" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] Pragma=no-cache tf_http_res_status_reason="200 OK" tf_http_trans_id=441f22cb-a4ea-ba0e-0ffa-5cd225b1437d @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Expires="Sat, 04 Nov 2023 18:26:03 GMT" Server=pve-api-daemon/3.0 tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox Content-Length=251 Date="Sat, 04 Nov 2023 18:26:03 GMT" tf_http_op_type=response tf_http_res_status_code=200 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:24:08.910+0100"
2023-11-04T19:24:13.917+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept=application/json tf_mux_provider=tf5to6server.v5tov6Server Accept-Encoding=gzip Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_http_op_type=request tf_http_req_method=GET tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_req_version=HTTP/1.1 tf_http_trans_id=0ee6496f-adba-c431-caec-125da84f70c3 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_http_req_body="" tf_resource_type=proxmox_virtual_environment_vm timestamp="2023-11-04T19:24:13.916+0100"
2023-11-04T19:24:13.932+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Content-Type=application/json;charset=UTF-8 Expires="Sat, 04 Nov 2023 18:26:08 GMT" tf_http_res_status_code=200 tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange Cache-Control=max-age=0 tf_http_res_body="{\"data\":{\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"node\":\"node1\",\"status\":\"running\",\"type\":\"qmreboot\",\"id\":\"4321\",\"user\":\"packer@pve\",\"pid\":616617,\"pstart\":11312437,\"starttime\":1699122308}}" tf_resource_type=proxmox_virtual_environment_vm Server=pve-api-daemon/3.0 tf_provider_addr=registry.terraform.io/bpg/proxmox Content-Length=251 Pragma=no-cache Date="Sat, 04 Nov 2023 18:26:08 GMT" tf_http_op_type=response tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_http_trans_id=0ee6496f-adba-c431-caec-125da84f70c3 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Connection=[Keep-Alive, Keep-Alive] tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:24:13.932+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [1m30s elapsed]
2023-11-04T19:24:18.938+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_http_op_type=request tf_http_req_method=GET tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_body="" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange Accept=application/json @module=proxmox tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_trans_id=b9919c9b-f4e5-933f-2c68-8ea2fdc88f2e tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox Accept-Encoding=gzip tf_http_req_version=HTTP/1.1 timestamp="2023-11-04T19:24:18.938+0100"
2023-11-04T19:24:18.953+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_res_status_reason="200 OK" @module=proxmox Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:26:13 GMT" Expires="Sat, 04 Nov 2023 18:26:13 GMT" tf_http_trans_id=b9919c9b-f4e5-933f-2c68-8ea2fdc88f2e @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Server=pve-api-daemon/3.0 tf_http_res_version=HTTP/1.1 Pragma=no-cache tf_http_res_status_code=200 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Content-Length=251 tf_http_op_type=response tf_http_res_body="{\"data\":{\"pid\":616617,\"user\":\"packer@pve\",\"id\":\"4321\",\"type\":\"qmreboot\",\"status\":\"running\",\"node\":\"node1\",\"tokenid\":\"token1\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"starttime\":1699122308,\"pstart\":11312437}}" tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:24:18.953+0100"
2023-11-04T19:24:23.959+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json Host=my.awesome.server:8006 tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange tf_http_req_body="" tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" tf_http_req_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm @module=proxmox tf_http_req_method=GET tf_provider_addr=registry.terraform.io/bpg/proxmox Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_http_op_type=request tf_http_trans_id=072aebd1-9a61-4baa-f539-8ffbd6f1429e timestamp="2023-11-04T19:24:23.959+0100"
2023-11-04T19:24:23.974+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_op_type=response tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange Expires="Sat, 04 Nov 2023 18:26:18 GMT" @module=proxmox Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:26:18 GMT" Pragma=no-cache tf_http_res_status_code=200 tf_resource_type=proxmox_virtual_environment_vm Cache-Control=max-age=0 tf_http_res_body="{\"data\":{\"user\":\"packer@pve\",\"pid\":616617,\"type\":\"qmreboot\",\"id\":\"4321\",\"node\":\"node1\",\"status\":\"running\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"starttime\":1699122308,\"pstart\":11312437}}" tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Length=251 Server=pve-api-daemon/3.0 tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_http_trans_id=072aebd1-9a61-4baa-f539-8ffbd6f1429e timestamp="2023-11-04T19:24:23.974+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [1m40s elapsed]
2023-11-04T19:24:28.981+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_op_type=request tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange Host=my.awesome.server:8006 tf_http_req_body="" tf_http_req_uri="/api2/json/nodes/node1/tasks/UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve%21token1:/status" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_method=GET tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 tf_http_trans_id=fbf6b8c6-3341-aa0b-de30-2524ff3f2daa tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Accept-Encoding=gzip timestamp="2023-11-04T19:24:28.981+0100"
2023-11-04T19:24:28.998+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_res_status_reason="200 OK" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Date="Sat, 04 Nov 2023 18:26:23 GMT" Pragma=no-cache tf_http_res_version=HTTP/1.1 tf_http_trans_id=fbf6b8c6-3341-aa0b-de30-2524ff3f2daa tf_mux_provider=tf5to6server.v5tov6Server Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 Expires="Sat, 04 Nov 2023 18:26:23 GMT" Server=pve-api-daemon/3.0 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_http_op_type=response tf_http_res_body="{\"data\":{\"user\":\"packer@pve\",\"pid\":616617,\"id\":\"4321\",\"type\":\"qmreboot\",\"node\":\"node1\",\"status\":\"stopped\",\"upid\":\"UPID:node1:000968A9:00AC9D35:65468C84:qmreboot:4321:packer@pve!token1:\",\"tokenid\":\"token1\",\"exitstatus\":\"OK\",\"starttime\":1699122308,\"pstart\":11312437}}" tf_http_res_status_code=200 Connection=[Keep-Alive, Keep-Alive] Content-Length=269 timestamp="2023-11-04T19:24:28.997+0100"
2023-11-04T19:24:28.998+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Accept=application/json tf_http_req_body="" tf_http_req_uri=/api2/json/cluster/resources?type=vm tf_http_req_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_http_trans_id=19de43c8-97d9-4f01-c09a-95b7eef4faa7 tf_resource_type=proxmox_virtual_environment_vm Host=my.awesome.server:8006 tf_http_op_type=request tf_http_req_method=GET Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:24:28.998+0100"
2023-11-04T19:24:29.002+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Expires="Sat, 04 Nov 2023 18:26:23 GMT" Server=pve-api-daemon/3.0 tf_http_res_version=HTTP/1.1 tf_rpc=ApplyResourceChange tf_http_op_type=response tf_http_res_status_code=200 tf_resource_type=proxmox_virtual_environment_vm tf_provider_addr=registry.terraform.io/bpg/proxmox @module=proxmox Content-Type=application/json;charset=UTF-8 Pragma=no-cache tf_http_res_body="{\"data\":[{\"mem\":359661568,\"vmid\":100,\"template\":0,\"cpu\":0.00118506801038729,\"status\":\"running\",\"disk\":1663422464,\"maxcpu\":1,\"id\":\"lxc/100\",\"type\":\"lxc\",\"maxmem\":805306368,\"netin\":45496599,\"diskread\":1457446912,\"diskwrite\":1217351680,\"name\":\"shiva\",\"node\":\"node1\",\"uptime\":113092,\"netout\":42806440,\"maxdisk\":20957446144},{\"diskwrite\":0,\"diskread\":0,\"netin\":0,\"maxmem\":4294967296,\"netout\":0,\"maxdisk\":10737418240,\"name\":\"debian12-lvm-uefi\",\"node\":\"node1\",\"uptime\":0,\"disk\":0,\"status\":\"stopped\",\"mem\":0,\"vmid\":101,\"template\":1,\"cpu\":0,\"type\":\"qemu\",\"maxcpu\":4,\"id\":\"qemu/101\"},{\"netin\":7870557,\"maxmem\":805306368,\"diskwrite\":671522816,\"diskread\":1747165184,\"uptime\":24925,\"name\":\"ramuh\",\"node\":\"node1\",\"maxdisk\":20957446144,\"netout\":10101913,\"cpu\":0.00138257934545184,\"template\":0,\"mem\":391081984,\"vmid\":102,\"disk\":3867934720,\"status\":\"running\",\"id\":\"lxc/102\",\"maxcpu\":1,\"type\":\"lxc\"},{\"uptime\":2384,\"name\":\"cc\",\"node\":\"node1\",\"maxdisk\":16106127360,\"netout\":12199,\"netin\":662365,\"maxmem\":4294967296,\"diskwrite\":99091456,\"diskread\":264501904,\"maxcpu\":4,\"id\":\"qemu/103\",\"type\":\"qemu\",\"template\":0,\"cpu\":0.000721927987033364,\"vmid\":103,\"mem\":438423552,\"disk\":0,\"status\":\"running\"},{\"maxcpu\":1,\"id\":\"lxc/106\",\"type\":\"lxc\",\"template\":0,\"cpu\":0,\"vmid\":106,\"mem\":0,\"status\":\"stopped\",\"disk\":0,\"uptime\":0,\"node\":\"node1\",\"name\":\"phoenix\",\"maxdisk\":8589934592,\"netout\":0,\"maxmem\":536870912,\"netin\":0,\"diskread\":0,\"diskwrite\":0},{\"maxcpu\":1,\"id\":\"lxc/107\",\"type\":\"lxc\",\"vmid\":107,\"mem\":268075008,\"cpu\":0.000790045340258192,\"template\":0,\"status\":\"running\",\"disk\":1702699008,\"name\":\"carbuncle\",\"node\":\"node1\",\"uptime\":113051,\"netout\":389947,\"maxdisk\":8350298112,\"maxmem\":805306368,\"netin\":6634982,\"diskread\":235352064,\"diskwrite\":241807360},{\"type\":\"lxc\",\"id\":\"lxc/109\",\"maxcpu\":1,\"disk\":2264207360,\"status\":\"running\",\"vmid\":109,\"mem\":272871424,\"template\":0,\"cpu\":0.000691289672725918,\"netout\":25732906,\"maxdisk\":8350298112,\"name\":\"anima\",\"node\":\"node1\",\"uptime\":113089,\"diskwrite\":1029357568,\"diskread\":441090048,\"netin\":40709049,\"maxmem\":536870912},{\"id\":\"lxc/111\",\"maxcpu\":1,\"type\":\"lxc\",\"vmid\":111,\"mem\":0,\"template\":0,\"cpu\":0,\"status\":\"stopped\",\"disk\":0,\"name\":\"belias\",\"node\":\"node1\",\"uptime\":0,\"netout\":0,\"maxdisk\":8589934592,\"maxmem\":268435456,\"netin\":0,\"diskread\":0,\"diskwrite\":0},{\"node\":\"node1\",\"name\":\"titan\",\"uptime\":0,\"netout\":0,\"maxdisk\":8589934592,\"netin\":0,\"maxmem\":1610612736,\"diskwrite\":0,\"diskread\":0,\"id\":\"lxc/113\",\"maxcpu\":2,\"type\":\"lxc\",\"vmid\":113,\"mem\":0,\"template\":0,\"cpu\":0,\"disk\":0,\"status\":\"stopped\"},{\"maxdisk\":26843545600,\"netout\":0,\"uptime\":0,\"node\":\"node1\",\"name\":\"terraform-provider-proxmox-ubuntu-vm\",\"diskwrite\":0,\"diskread\":0,\"netin\":0,\"maxmem\":4294967296,\"type\":\"qemu\",\"id\":\"qemu/4321\",\"maxcpu\":4,\"disk\":0,\"tags\":\"terraform;ubuntu\",\"status\":\"running\",\"cpu\":0,\"template\":0,\"mem\":52408373,\"vmid\":4321},{\"uptime\":0,\"node\":\"node1\",\"name\":\"ninja\",\"maxdisk\":34359738368,\"netout\":0,\"maxmem\":1610612736,\"netin\":0,\"diskread\":0,\"diskwrite\":0,\"id\":\"qemu/500\",\"maxcpu\":4,\"type\":\"qemu\",\"template\":0,\"cpu\":0,\"vmid\":500,\"mem\":0,\"status\":\"stopped\",\"disk\":0},{\"diskread\":794293406,\"diskwrite\":572198912,\"maxmem\":2147483648,\"netin\":2151119,\"maxdisk\":37580963840,\"netout\":1349636,\"uptime\":113049,\"name\":\"helios\",\"node\":\"node1\",\"status\":\"running\",\"disk\":0,\"cpu\":0.0255081222085122,\"template\":0,\"mem\":1087729664,\"vmid\":502,\"type\":\"qemu\",\"maxcpu\":2,\"id\":\"qemu/502\"},{\"netin\":1919541149,\"maxmem\":1073741824,\"diskwrite\":1810500608,\"diskread\":296355480,\"uptime\":113067,\"name\":\"janus\",\"node\":\"node1\",\"maxdisk\":10737418240,\"netout\":1931042024,\"template\":0,\"cpu\":0.0274332635072678,\"mem\":467861504,\"vmid\":503,\"disk\":0,\"status\":\"running\",\"id\":\"qemu/503\",\"maxcpu\":2,\"type\":\"qemu\"},{\"maxmem\":3221225472,\"netin\":97776101,\"diskread\":2348878488,\"diskwrite\":18830340096,\"name\":\"leviathan\",\"node\":\"node1\",\"uptime\":113083,\"netout\":51608474,\"maxdisk\":12884901888,\"vmid\":504,\"mem\":2432823296,\"template\":0,\"cpu\":0.0683425161058252,\"status\":\"running\",\"disk\":0,\"id\":\"qemu/504\",\"maxcpu\":1,\"type\":\"qemu\"},{\"netin\":39322,\"maxmem\":1073741824,\"diskwrite\":202571776,\"diskread\":320583680,\"uptime\":113062,\"name\":\"pampa\",\"node\":\"node1\",\"maxdisk\":8589934592,\"netout\":36693,\"template\":0,\"cpu\":0.0274332635072678,\"mem\":799731712,\"vmid\":505,\"disk\":0,\"status\":\"running\",\"maxcpu\":2,\"id\":\"qemu/505\",\"type\":\"qemu\"},{\"id\":\"qemu/506\",\"maxcpu\":1,\"type\":\"qemu\",\"template\":0,\"cpu\":0.0539039563651579,\"mem\":684507136,\"vmid\":506,\"disk\":0,\"status\":\"running\",\"uptime\":113044,\"name\":\"ifrit\",\"node\":\"node1\",\"maxdisk\":8589934592,\"netout\":478523,\"netin\":6936284,\"maxmem\":805306368,\"diskwrite\":50024448,\"diskread\":371537920},{\"netout\":36160442,\"maxdisk\":12884901888,\"name\":\"tomberry\",\"node\":\"node1\",\"uptime\":24721,\"diskread\":547658752,\"diskwrite\":3347546112,\"maxmem\":2147483648,\"netin\":21681069,\"type\":\"qemu\",\"id\":\"qemu/507\",\"maxcpu\":2,\"status\":\"running\",\"disk\":0,\"vmid\":507,\"mem\":1334160569,\"template\":0,\"cpu\":0.0322461167541569},{\"cpu\":0.159786727796718,\"template\":0,\"vmid\":508,\"mem\":1342423040,\"status\":\"running\",\"disk\":0,\"id\":\"qemu/508\",\"maxcpu\":1,\"type\":\"qemu\",\"maxmem\":1610612736,\"netin\":8296246,\"diskread\":632174592,\"diskwrite\":230281216,\"uptime\":113034,\"name\":\"lycaon\",\"node\":\"node1\",\"maxdisk\":10737418240,\"netout\":1778026},{\"netin\":453770419,\"maxmem\":402653184,\"diskwrite\":487890944,\"diskread\":1103755422,\"name\":\"ixion\",\"node\":\"node1\",\"uptime\":113057,\"netout\":392540471,\"maxdisk\":16106127360,\"vmid\":509,\"mem\":302628864,\"template\":0,\"cpu\":0.00385028259751128,\"disk\":0,\"status\":\"running\",\"maxcpu\":1,\"id\":\"qemu/509\",\"type\":\"qemu\"},{\"id\":\"qemu/510\",\"maxcpu\":7,\"type\":\"qemu\",\"mem\":3980222464,\"vmid\":510,\"template\":0,\"cpu\":0.000687550463841299,\"disk\":0,\"status\":\"running\",\"name\":\"odin\",\"node\":\"node1\",\"uptime\":113029,\"netout\":1946802664,\"maxdisk\":16106127360,\"netin\":5221413200,\"maxmem\":4294967296,\"diskwrite\":1668616192,\"diskread\":955242654}]}" tf_http_res_status_reason="200 OK" tf_http_trans_id=19de43c8-97d9-4f01-c09a-95b7eef4faa7 tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 Connection=Keep-Alive Date="Sat, 04 Nov 2023 18:26:23 GMT" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:24:29.002+0100"
2023-11-04T19:24:29.002+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_req_method=GET tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Accept-Encoding=gzip Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/config tf_http_trans_id=4e3bc0e5-b77f-aa49-1aab-1f2aeba6ed93 tf_http_op_type=request tf_http_req_body="" tf_http_req_version=HTTP/1.1 tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:24:29.002+0100"
2023-11-04T19:24:29.004+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Pragma=no-cache Expires="Sat, 04 Nov 2023 18:26:23 GMT" tf_http_op_type=response tf_http_res_body="{\"data\":{\"cores\":4,\"efidisk0\":\"datastore1:vm-4321-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M\",\"digest\":\"87d15a2e59d3bb9f136c99308553052c6e3de825\",\"scsihw\":\"virtio-scsi-single\",\"meta\":\"creation-qemu=8.0.2,ctime=1699047461\",\"virtio1\":\"datastore1:vm-4321-disk-2,cache=none,iothread=0,size=4G\",\"smbios1\":\"uuid=1a5a9836-c3c7-4158-a77a-35a6312be33c\",\"ide2\":\"datastore1:vm-4321-cloudinit,media=cdrom\",\"sockets\":1,\"description\":\"Managed by Terraform\",\"net0\":\"virtio=F2:7B:11:2D:66:08,bridge=vmbr0,firewall=0,tag=4\",\"bios\":\"ovmf\",\"onboot\":1,\"virtio0\":\"datastore1:vm-4321-disk-1,iothread=0,size=25G\",\"cpu\":\"kvm64\",\"tags\":\"terraform;ubuntu\",\"ostype\":\"l26\",\"ipconfig0\":\"gw=1.2.3.1,ip=1.2.3.4/24\",\"memory\":4096,\"kvm\":1,\"vmgenid\":\"0253cc65-f9e1-495f-8cb9-97b871c965a5\",\"agent\":\"enabled=1,fstrim_cloned_disks=0,type=virtio\",\"name\":\"terraform-provider-proxmox-ubuntu-vm\",\"boot\":\"order=virtio0;net0\"}}" tf_rpc=ApplyResourceChange Cache-Control=max-age=0 Content-Length=899 tf_http_res_status_reason="200 OK" tf_http_trans_id=4e3bc0e5-b77f-aa49-1aab-1f2aeba6ed93 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm Connection=Keep-Alive Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:26:23 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_res_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox timestamp="2023-11-04T19:24:29.004+0100"
2023-11-04T19:24:29.004+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept-Encoding=gzip Host=my.awesome.server:8006 tf_http_op_type=request tf_mux_provider=tf5to6server.v5tov6Server @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_rpc=ApplyResourceChange Accept=application/json tf_http_req_body="" tf_http_req_method=GET tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/status/current tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 User-Agent=Go-http-client/1.1 tf_http_req_version=HTTP/1.1 tf_http_trans_id=3b771136-1b37-f542-6f31-fc496c51be5d tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp="2023-11-04T19:24:29.004+0100"
2023-11-04T19:24:29.023+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_rpc=ApplyResourceChange @module=proxmox Cache-Control=max-age=0 Date="Sat, 04 Nov 2023 18:26:23 GMT" Pragma=no-cache tf_http_res_status_reason="200 OK" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_http_op_type=response tf_http_res_status_code=200 tf_http_res_version=HTTP/1.1 Connection=[Keep-Alive, Keep-Alive] Expires="Sat, 04 Nov 2023 18:26:23 GMT" Server=pve-api-daemon/3.0 tf_http_trans_id=3b771136-1b37-f542-6f31-fc496c51be5d Content-Type=application/json;charset=UTF-8 tf_http_res_body="{\"data\":{\"netout\":0,\"running-qemu\":\"8.0.2\",\"cpu\":0.17877025960239,\"diskwrite\":0,\"maxmem\":4294967296,\"name\":\"terraform-provider-proxmox-ubuntu-vm\",\"ballooninfo\":{\"actual\":4294967296,\"max_mem\":4294967296},\"netin\":42,\"vmid\":4321,\"status\":\"running\",\"uptime\":1,\"qmpstatus\":\"running\",\"maxdisk\":26843545600,\"disk\":0,\"running-machine\":\"pc-i440fx-8.0+pve0\",\"pid\":617054,\"mem\":54703863,\"proxmox-support\":{\"pbs-masterkey\":true,\"pbs-dirty-bitmap\":true,\"pbs-dirty-bitmap-migration\":true,\"pbs-library-version\":\"1.4.0 (UNKNOWN)\",\"backup-max-workers\":true,\"pbs-dirty-bitmap-savevm\":true,\"query-bitmap-info\":true},\"balloon\":4294967296,\"blockstat\":{\"virtio0\":{\"failed_rd_operations\":0,\"rd_total_time_ns\":0,\"wr_bytes\":0,\"invalid_unmap_operations\":0,\"flush_operations\":0,\"wr_merged\":0,\"wr_operations\":0,\"timed_stats\":[],\"invalid_wr_operations\":0,\"account_invalid\":true,\"unmap_operations\":0,\"failed_flush_operations\":0,\"unmap_merged\":0,\"wr_highest_offset\":0,\"unmap_bytes\":0,\"flush_total_time_ns\":0,\"failed_wr_operations\":0,\"wr_total_time_ns\":0,\"invalid_rd_operations\":0,\"unmap_total_time_ns\":0,\"rd_bytes\":0,\"rd_operations\":0,\"invalid_flush_operations\":0,\"account_failed\":true,\"failed_unmap_operations\":0,\"rd_merged\":0},\"pflash0\":{\"unmap_total_time_ns\":0,\"invalid_rd_operations\":0,\"wr_total_time_ns\":0,\"rd_bytes\":0,\"unmap_bytes\":0,\"failed_wr_operations\":0,\"flush_total_time_ns\":0,\"wr_highest_offset\":0,\"unmap_merged\":0,\"rd_merged\":0,\"invalid_flush_operations\":0,\"rd_operations\":0,\"account_failed\":true,\"failed_unmap_operations\":0,\"rd_total_time_ns\":0,\"invalid_unmap_operations\":0,\"wr_bytes\":0,\"failed_rd_operations\":0,\"account_invalid\":true,\"failed_flush_operations\":0,\"unmap_operations\":0,\"wr_operations\":0,\"invalid_wr_operations\":0,\"timed_stats\":[],\"flush_operations\":0,\"wr_merged\":0},\"virtio1\":{\"wr_merged\":0,\"flush_operations\":0,\"invalid_wr_operations\":0,\"timed_stats\":[],\"wr_operations\":0,\"failed_flush_operations\":0,\"unmap_operations\":0,\"account_invalid\":true,\"failed_rd_operations\":0,\"invalid_unmap_operations\":0,\"wr_bytes\":0,\"rd_total_time_ns\":0,\"invalid_flush_operations\":0,\"rd_operations\":0,\"account_failed\":true,\"failed_unmap_operations\":0,\"rd_merged\":0,\"wr_highest_offset\":0,\"unmap_merged\":0,\"flush_total_time_ns\":0,\"failed_wr_operations\":0,\"unmap_bytes\":0,\"rd_bytes\":0,\"invalid_rd_operations\":0,\"unmap_total_time_ns\":0,\"wr_total_time_ns\":0},\"efidisk0\":{\"wr_merged\":0,\"flush_operations\":0,\"invalid_wr_operations\":0,\"timed_stats\":[],\"wr_operations\":0,\"failed_flush_operations\":0,\"unmap_operations\":0,\"account_invalid\":true,\"failed_rd_operations\":0,\"invalid_unmap_operations\":0,\"wr_bytes\":0,\"rd_total_time_ns\":0,\"account_failed\":true,\"rd_operations\":0,\"invalid_flush_operations\":0,\"failed_unmap_operations\":0,\"rd_merged\":0,\"wr_highest_offset\":0,\"unmap_merged\":0,\"failed_wr_operations\":0,\"flush_total_time_ns\":0,\"unmap_bytes\":0,\"rd_bytes\":0,\"unmap_total_time_ns\":0,\"invalid_rd_operations\":0,\"wr_total_time_ns\":0},\"ide2\":{\"failed_wr_operations\":0,\"flush_total_time_ns\":0,\"unmap_bytes\":0,\"wr_highest_offset\":0,\"unmap_merged\":0,\"rd_bytes\":0,\"unmap_total_time_ns\":0,\"invalid_rd_operations\":0,\"wr_total_time_ns\":0,\"rd_merged\":0,\"rd_operations\":0,\"failed_unmap_operations\":0,\"account_failed\":true,\"invalid_flush_operations\":0,\"failed_rd_operations\":0,\"invalid_unmap_operations\":0,\"wr_bytes\":0,\"rd_total_time_ns\":0,\"invalid_wr_operations\":0,\"timed_stats\":[],\"wr_operations\":0,\"wr_merged\":0,\"flush_operations\":0,\"failed_flush_operations\":0,\"unmap_operations\":0,\"account_invalid\":true}},\"nics\":{\"tap4321i0\":{\"netout\":0,\"netin\":42}},\"ha\":{\"managed\":0},\"cpus\":4,\"diskread\":0,\"tags\":\"terraform;ubuntu\",\"agent\":1}}" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:24:29.023+0100"
2023-11-04T19:24:29.024+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @module=proxmox Accept=application/json Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_http_req_uri=/api2/json/nodes/node1/storage/datastore1/content tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_http_op_type=request tf_http_req_version=HTTP/1.1 tf_http_req_method=GET tf_http_trans_id=7a83126b-e407-5386-3388-5a736d068289 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Host=my.awesome.server:8006 tf_http_req_body="" timestamp="2023-11-04T19:24:29.023+0100"
2023-11-04T19:24:29.262+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Connection=[Keep-Alive, Keep-Alive] Date="Sat, 04 Nov 2023 18:26:23 GMT" Expires="Sat, 04 Nov 2023 18:26:23 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_code=200 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox tf_mux_provider=tf5to6server.v5tov6Server tf_rpc=ApplyResourceChange Pragma=no-cache tf_http_res_body="{\"data\":[{\"vmid\":101,\"size\":4194304,\"format\":\"raw\",\"content\":\"images\",\"ctime\":\"1699047461\",\"volid\":\"datastore1:base-101-disk-0\"},{\"content\":\"images\",\"format\":\"raw\",\"size\":10737418240,\"vmid\":101,\"volid\":\"datastore1:base-101-disk-1\",\"ctime\":\"1699047462\"},{\"size\":21474836480,\"vmid\":100,\"content\":\"rootdir\",\"format\":\"raw\",\"ctime\":\"1589120906\",\"volid\":\"datastore1:vm-100-disk-1\"},{\"volid\":\"datastore1:vm-102-disk-0\",\"ctime\":\"1566301140\",\"format\":\"raw\",\"content\":\"rootdir\",\"size\":21474836480,\"vmid\":102},{\"vmid\":103,\"size\":4194304,\"format\":\"raw\",\"content\":\"images\",\"ctime\":\"1699119872\",\"volid\":\"datastore1:vm-103-cloudinit\"},{\"ctime\":\"1699119872\",\"volid\":\"datastore1:vm-103-disk-0\",\"size\":4194304,\"vmid\":103,\"content\":\"images\",\"format\":\"raw\"},{\"ctime\":\"1699119873\",\"volid\":\"datastore1:vm-103-disk-1\",\"size\":16106127360,\"vmid\":103,\"format\":\"raw\",\"content\":\"images\"},{\"volid\":\"datastore1:vm-106-disk-1\",\"ctime\":\"1587055988\",\"content\":\"rootdir\",\"format\":\"raw\",\"vmid\":106,\"size\":8589934592},{\"ctime\":\"1576003111\",\"volid\":\"datastore1:vm-107-disk-0\",\"vmid\":107,\"size\":8589934592,\"format\":\"raw\",\"content\":\"rootdir\"},{\"vmid\":109,\"size\":8589934592,\"format\":\"raw\",\"content\":\"rootdir\",\"ctime\":\"1585559806\",\"volid\":\"datastore1:vm-109-disk-1\"},{\"ctime\":\"1588513422\",\"volid\":\"datastore1:vm-111-disk-0\",\"size\":8589934592,\"vmid\":111,\"format\":\"raw\",\"content\":\"rootdir\"},{\"ctime\":\"1602955784\",\"volid\":\"datastore1:vm-113-disk-0\",\"vmid\":113,\"size\":8589934592,\"content\":\"rootdir\",\"format\":\"raw\"},{\"ctime\":\"1699122301\",\"volid\":\"datastore1:vm-4321-cloudinit\",\"vmid\":4321,\"size\":4194304,\"format\":\"raw\",\"content\":\"images\"},{\"ctime\":\"1699122281\",\"volid\":\"datastore1:vm-4321-disk-0\",\"vmid\":4321,\"size\":4194304,\"content\":\"images\",\"format\":\"raw\"},{\"volid\":\"datastore1:vm-4321-disk-1\",\"ctime\":\"1699122282\",\"content\":\"images\",\"format\":\"raw\",\"vmid\":4321,\"size\":26843545600},{\"volid\":\"datastore1:vm-4321-disk-2\",\"ctime\":\"1699122303\",\"content\":\"images\",\"format\":\"raw\",\"vmid\":4321,\"size\":4294967296},{\"ctime\":\"1566328775\",\"volid\":\"datastore1:vm-500-disk-0\",\"vmid\":500,\"size\":34359738368,\"content\":\"images\",\"format\":\"raw\"},{\"volid\":\"datastore1:vm-502-disk-0\",\"ctime\":\"1636213032\",\"format\":\"raw\",\"content\":\"images\",\"size\":37580963840,\"vmid\":502},{\"content\":\"images\",\"format\":\"raw\",\"vmid\":503,\"size\":10737418240,\"volid\":\"datastore1:vm-503-disk-0\",\"ctime\":\"1615399124\"},{\"size\":12884901888,\"vmid\":504,\"format\":\"raw\",\"content\":\"images\",\"ctime\":\"1615748025\",\"volid\":\"datastore1:vm-504-disk-0\"},{\"format\":\"raw\",\"content\":\"images\",\"vmid\":504,\"size\":5368709120,\"volid\":\"datastore1:vm-504-disk-1\",\"ctime\":\"1615836428\"},{\"ctime\":\"1624206020\",\"volid\":\"datastore1:vm-505-disk-0\",\"size\":8589934592,\"vmid\":505,\"content\":\"images\",\"format\":\"raw\"},{\"size\":8589934592,\"vmid\":506,\"format\":\"raw\",\"content\":\"images\",\"ctime\":\"1624545381\",\"volid\":\"datastore1:vm-506-disk-0\"},{\"ctime\":\"1685200057\",\"volid\":\"datastore1:vm-507-disk-0\",\"size\":12884901888,\"vmid\":507,\"content\":\"images\",\"format\":\"raw\"},{\"ctime\":\"1685200057\",\"volid\":\"datastore1:vm-507-disk-1\",\"vmid\":507,\"size\":10737418240,\"content\":\"images\",\"format\":\"raw\"},{\"volid\":\"datastore1:vm-508-disk-0\",\"ctime\":\"1627223885\",\"format\":\"raw\",\"content\":\"images\",\"size\":10737418240,\"vmid\":508},{\"volid\":\"datastore1:vm-509-disk-0\",\"ctime\":\"1636705622\",\"format\":\"raw\",\"content\":\"images\",\"size\":16106127360,\"vmid\":509},{\"volid\":\"datastore1:vm-510-disk-0\",\"ctime\":\"1650571974\",\"format\":\"raw\",\"content\":\"images\",\"vmid\":510,\"size\":16106127360}]}" tf_http_res_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm Content-Type=application/json;charset=UTF-8 tf_http_trans_id=7a83126b-e407-5386-3388-5a736d068289 tf_http_res_status_reason="200 OK" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Cache-Control=max-age=0 tf_http_op_type=response timestamp="2023-11-04T19:24:29.262+0100"
2023-11-04T19:24:29.262+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: @module=proxmox Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 User-Agent=Go-http-client/1.1 tf_http_req_body="" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_http_req_version=HTTP/1.1 tf_http_req_method=GET tf_mux_provider=tf5to6server.v5tov6Server Accept-Encoding=gzip tf_http_op_type=request tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange Accept=application/json tf_http_req_uri=/api2/json/nodes/node1/storage/datastore1/content tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_http_trans_id=2a7f9c59-853e-433a-6150-d2052976e4b1 timestamp="2023-11-04T19:24:29.262+0100"
2023-11-04T19:24:29.516+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_http_res_body="{\"data\":[{\"ctime\":\"1699047461\",\"volid\":\"datastore1:base-101-disk-0\",\"vmid\":101,\"size\":4194304,\"content\":\"images\",\"format\":\"raw\"},{\"size\":10737418240,\"vmid\":101,\"content\":\"images\",\"format\":\"raw\",\"ctime\":\"1699047462\",\"volid\":\"datastore1:base-101-disk-1\"},{\"size\":21474836480,\"vmid\":100,\"content\":\"rootdir\",\"format\":\"raw\",\"ctime\":\"1589120906\",\"volid\":\"datastore1:vm-100-disk-1\"},{\"vmid\":102,\"size\":21474836480,\"format\":\"raw\",\"content\":\"rootdir\",\"ctime\":\"1566301140\",\"volid\":\"datastore1:vm-102-disk-0\"},{\"content\":\"images\",\"format\":\"raw\",\"vmid\":103,\"size\":4194304,\"volid\":\"datastore1:vm-103-cloudinit\",\"ctime\":\"1699119872\"},{\"ctime\":\"1699119872\",\"volid\":\"datastore1:vm-103-disk-0\",\"vmid\":103,\"size\":4194304,\"format\":\"raw\",\"content\":\"images\"},{\"content\":\"images\",\"format\":\"raw\",\"size\":16106127360,\"vmid\":103,\"volid\":\"datastore1:vm-103-disk-1\",\"ctime\":\"1699119873\"},{\"content\":\"rootdir\",\"format\":\"raw\",\"size\":8589934592,\"vmid\":106,\"volid\":\"datastore1:vm-106-disk-1\",\"ctime\":\"1587055988\"},{\"ctime\":\"1576003111\",\"volid\":\"datastore1:vm-107-disk-0\",\"size\":8589934592,\"vmid\":107,\"format\":\"raw\",\"content\":\"rootdir\"},{\"ctime\":\"1585559806\",\"volid\":\"datastore1:vm-109-disk-1\",\"size\":8589934592,\"vmid\":109,\"content\":\"rootdir\",\"format\":\"raw\"},{\"vmid\":111,\"size\":8589934592,\"format\":\"raw\",\"content\":\"rootdir\",\"ctime\":\"1588513422\",\"volid\":\"datastore1:vm-111-disk-0\"},{\"vmid\":113,\"size\":8589934592,\"content\":\"rootdir\",\"format\":\"raw\",\"ctime\":\"1602955784\",\"volid\":\"datastore1:vm-113-disk-0\"},{\"ctime\":\"1699122301\",\"volid\":\"datastore1:vm-4321-cloudinit\",\"vmid\":4321,\"size\":4194304,\"format\":\"raw\",\"content\":\"images\"},{\"volid\":\"datastore1:vm-4321-disk-0\",\"ctime\":\"1699122281\",\"content\":\"images\",\"format\":\"raw\",\"vmid\":4321,\"size\":4194304},{\"ctime\":\"1699122282\",\"volid\":\"datastore1:vm-4321-disk-1\",\"size\":26843545600,\"vmid\":4321,\"format\":\"raw\",\"content\":\"images\"},{\"format\":\"raw\",\"content\":\"images\",\"vmid\":4321,\"size\":4294967296,\"volid\":\"datastore1:vm-4321-disk-2\",\"ctime\":\"1699122303\"},{\"ctime\":\"1566328775\",\"volid\":\"datastore1:vm-500-disk-0\",\"vmid\":500,\"size\":34359738368,\"content\":\"images\",\"format\":\"raw\"},{\"volid\":\"datastore1:vm-502-disk-0\",\"ctime\":\"1636213032\",\"format\":\"raw\",\"content\":\"images\",\"vmid\":502,\"size\":37580963840},{\"ctime\":\"1615399124\",\"volid\":\"datastore1:vm-503-disk-0\",\"vmid\":503,\"size\":10737418240,\"content\":\"images\",\"format\":\"raw\"},{\"size\":12884901888,\"vmid\":504,\"content\":\"images\",\"format\":\"raw\",\"ctime\":\"1615748025\",\"volid\":\"datastore1:vm-504-disk-0\"},{\"volid\":\"datastore1:vm-504-disk-1\",\"ctime\":\"1615836428\",\"content\":\"images\",\"format\":\"raw\",\"size\":5368709120,\"vmid\":504},{\"ctime\":\"1624206020\",\"volid\":\"datastore1:vm-505-disk-0\",\"vmid\":505,\"size\":8589934592,\"format\":\"raw\",\"content\":\"images\"},{\"ctime\":\"1624545381\",\"volid\":\"datastore1:vm-506-disk-0\",\"size\":8589934592,\"vmid\":506,\"format\":\"raw\",\"content\":\"images\"},{\"ctime\":\"1685200057\",\"volid\":\"datastore1:vm-507-disk-0\",\"vmid\":507,\"size\":12884901888,\"content\":\"images\",\"format\":\"raw\"},{\"volid\":\"datastore1:vm-507-disk-1\",\"ctime\":\"1685200057\",\"format\":\"raw\",\"content\":\"images\",\"size\":10737418240,\"vmid\":507},{\"volid\":\"datastore1:vm-508-disk-0\",\"ctime\":\"1627223885\",\"format\":\"raw\",\"content\":\"images\",\"vmid\":508,\"size\":10737418240},{\"ctime\":\"1636705622\",\"volid\":\"datastore1:vm-509-disk-0\",\"size\":16106127360,\"vmid\":509,\"format\":\"raw\",\"content\":\"images\"},{\"ctime\":\"1650571974\",\"volid\":\"datastore1:vm-510-disk-0\",\"vmid\":510,\"size\":16106127360,\"format\":\"raw\",\"content\":\"images\"}]}" tf_http_res_status_reason="200 OK" tf_http_trans_id=2a7f9c59-853e-433a-6150-d2052976e4b1 tf_provider_addr=registry.terraform.io/bpg/proxmox Server=pve-api-daemon/3.0 Date="Sat, 04 Nov 2023 18:26:23 GMT" Expires="Sat, 04 Nov 2023 18:26:23 GMT" tf_resource_type=proxmox_virtual_environment_vm Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 tf_http_res_version=HTTP/1.1 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Pragma=no-cache tf_http_res_status_code=200 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox tf_http_op_type=response timestamp="2023-11-04T19:24:29.515+0100"
2023-11-04T19:24:29.516+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_req_uri=/api2/json/nodes/node1/storage/datastore1/content tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange tf_resource_type=proxmox_virtual_environment_vm tf_http_req_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_http_req_method=GET tf_http_trans_id=652befdb-3eca-8e54-cbde-855b0d4017ae Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_http_op_type=request tf_http_req_body="" @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Accept=application/json User-Agent=Go-http-client/1.1 timestamp="2023-11-04T19:24:29.516+0100"
2023-11-04T19:24:29.810+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @module=proxmox Connection=[Keep-Alive, Keep-Alive] Pragma=no-cache tf_http_res_status_code=200 Cache-Control=max-age=0 Date="Sat, 04 Nov 2023 18:26:24 GMT" Server=pve-api-daemon/3.0 tf_http_res_status_reason="200 OK" tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 Expires="Sat, 04 Nov 2023 18:26:24 GMT" tf_http_op_type=response tf_http_res_body="{\"data\":[{\"ctime\":\"1699047461\",\"volid\":\"datastore1:base-101-disk-0\",\"vmid\":101,\"size\":4194304,\"content\":\"images\",\"format\":\"raw\"},{\"ctime\":\"1699047462\",\"volid\":\"datastore1:base-101-disk-1\",\"size\":10737418240,\"vmid\":101,\"format\":\"raw\",\"content\":\"images\"},{\"content\":\"rootdir\",\"format\":\"raw\",\"size\":21474836480,\"vmid\":100,\"volid\":\"datastore1:vm-100-disk-1\",\"ctime\":\"1589120906\"},{\"content\":\"rootdir\",\"format\":\"raw\",\"vmid\":102,\"size\":21474836480,\"volid\":\"datastore1:vm-102-disk-0\",\"ctime\":\"1566301140\"},{\"ctime\":\"1699119872\",\"volid\":\"datastore1:vm-103-cloudinit\",\"size\":4194304,\"vmid\":103,\"content\":\"images\",\"format\":\"raw\"},{\"volid\":\"datastore1:vm-103-disk-0\",\"ctime\":\"1699119872\",\"content\":\"images\",\"format\":\"raw\",\"size\":4194304,\"vmid\":103},{\"volid\":\"datastore1:vm-103-disk-1\",\"ctime\":\"1699119873\",\"content\":\"images\",\"format\":\"raw\",\"size\":16106127360,\"vmid\":103},{\"vmid\":106,\"size\":8589934592,\"format\":\"raw\",\"content\":\"rootdir\",\"ctime\":\"1587055988\",\"volid\":\"datastore1:vm-106-disk-1\"},{\"volid\":\"datastore1:vm-107-disk-0\",\"ctime\":\"1576003111\",\"format\":\"raw\",\"content\":\"rootdir\",\"vmid\":107,\"size\":8589934592},{\"content\":\"rootdir\",\"format\":\"raw\",\"size\":8589934592,\"vmid\":109,\"volid\":\"datastore1:vm-109-disk-1\",\"ctime\":\"1585559806\"},{\"ctime\":\"1588513422\",\"volid\":\"datastore1:vm-111-disk-0\",\"vmid\":111,\"size\":8589934592,\"format\":\"raw\",\"content\":\"rootdir\"},{\"size\":8589934592,\"vmid\":113,\"format\":\"raw\",\"content\":\"rootdir\",\"ctime\":\"1602955784\",\"volid\":\"datastore1:vm-113-disk-0\"},{\"volid\":\"datastore1:vm-4321-cloudinit\",\"ctime\":\"1699122301\",\"content\":\"images\",\"format\":\"raw\",\"size\":4194304,\"vmid\":4321},{\"size\":4194304,\"vmid\":4321,\"format\":\"raw\",\"content\":\"images\",\"ctime\":\"1699122281\",\"volid\":\"datastore1:vm-4321-disk-0\"},{\"ctime\":\"1699122282\",\"volid\":\"datastore1:vm-4321-disk-1\",\"size\":26843545600,\"vmid\":4321,\"format\":\"raw\",\"content\":\"images\"},{\"size\":4294967296,\"vmid\":4321,\"format\":\"raw\",\"content\":\"images\",\"ctime\":\"1699122303\",\"volid\":\"datastore1:vm-4321-disk-2\"},{\"format\":\"raw\",\"content\":\"images\",\"vmid\":500,\"size\":34359738368,\"volid\":\"datastore1:vm-500-disk-0\",\"ctime\":\"1566328775\"},{\"vmid\":502,\"size\":37580963840,\"format\":\"raw\",\"content\":\"images\",\"ctime\":\"1636213032\",\"volid\":\"datastore1:vm-502-disk-0\"},{\"vmid\":503,\"size\":10737418240,\"content\":\"images\",\"format\":\"raw\",\"ctime\":\"1615399124\",\"volid\":\"datastore1:vm-503-disk-0\"},{\"size\":12884901888,\"vmid\":504,\"content\":\"images\",\"format\":\"raw\",\"ctime\":\"1615748025\",\"volid\":\"datastore1:vm-504-disk-0\"},{\"vmid\":504,\"size\":5368709120,\"format\":\"raw\",\"content\":\"images\",\"ctime\":\"1615836428\",\"volid\":\"datastore1:vm-504-disk-1\"},{\"volid\":\"datastore1:vm-505-disk-0\",\"ctime\":\"1624206020\",\"format\":\"raw\",\"content\":\"images\",\"size\":8589934592,\"vmid\":505},{\"ctime\":\"1624545381\",\"volid\":\"datastore1:vm-506-disk-0\",\"size\":8589934592,\"vmid\":506,\"format\":\"raw\",\"content\":\"images\"},{\"ctime\":\"1685200057\",\"volid\":\"datastore1:vm-507-disk-0\",\"size\":12884901888,\"vmid\":507,\"format\":\"raw\",\"content\":\"images\"},{\"vmid\":507,\"size\":10737418240,\"content\":\"images\",\"format\":\"raw\",\"ctime\":\"1685200057\",\"volid\":\"datastore1:vm-507-disk-1\"},{\"volid\":\"datastore1:vm-508-disk-0\",\"ctime\":\"1627223885\",\"format\":\"raw\",\"content\":\"images\",\"vmid\":508,\"size\":10737418240},{\"volid\":\"datastore1:vm-509-disk-0\",\"ctime\":\"1636705622\",\"format\":\"raw\",\"content\":\"images\",\"size\":16106127360,\"vmid\":509},{\"content\":\"images\",\"format\":\"raw\",\"vmid\":510,\"size\":16106127360,\"volid\":\"datastore1:vm-510-disk-0\",\"ctime\":\"1650571974\"}]}" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange tf_http_res_version=HTTP/1.1 tf_http_trans_id=652befdb-3eca-8e54-cbde-855b0d4017ae tf_provider_addr=registry.terraform.io/bpg/proxmox timestamp="2023-11-04T19:24:29.810+0100"
2023-11-04T19:24:29.810+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept-Encoding=gzip Host=my.awesome.server:8006 tf_http_op_type=request tf_rpc=ApplyResourceChange @module=proxmox Accept=application/json tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/agent/network-get-interfaces tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_method=GET tf_http_trans_id=8025896a-1d23-9266-3cbd-e992052d2365 tf_provider_addr=registry.terraform.io/bpg/proxmox User-Agent=Go-http-client/1.1 tf_http_req_body="" tf_http_req_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:24:29.810+0100"
2023-11-04T19:24:32.820+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Type=application/json;charset=UTF-8 Pragma=no-cache tf_http_op_type=response tf_http_res_version=HTTP/1.1 Cache-Control=max-age=0 Date="Sat, 04 Nov 2023 18:26:27 GMT" Expires="Sat, 04 Nov 2023 18:26:27 GMT" Content-Length=13 Server=pve-api-daemon/3.0 tf_http_res_status_code=500 tf_http_trans_id=8025896a-1d23-9266-3cbd-e992052d2365 tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @module=proxmox tf_http_res_body="{\"data\":null}" tf_http_res_status_reason="500 QEMU guest agent is not running" tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:24:32.820+0100"
2023-11-04T19:24:34.822+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Accept=application/json Accept-Encoding=gzip Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" Host=my.awesome.server:8006 tf_http_req_method=GET tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange @module=proxmox User-Agent=Go-http-client/1.1 tf_http_op_type=request tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/agent/network-get-interfaces tf_http_req_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_http_req_body="" tf_http_trans_id=cf4f46dd-8add-dc78-20a4-051f60c207ff tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 timestamp="2023-11-04T19:24:34.822+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [1m50s elapsed]
2023-11-04T19:24:37.840+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Cache-Control=max-age=0 tf_resource_type=proxmox_virtual_environment_vm @module=proxmox Content-Length=13 tf_http_trans_id=cf4f46dd-8add-dc78-20a4-051f60c207ff tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Date="Sat, 04 Nov 2023 18:26:32 GMT" Expires="Sat, 04 Nov 2023 18:26:32 GMT" tf_http_res_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange tf_http_res_status_reason="500 QEMU guest agent is not running" Content-Type=application/json;charset=UTF-8 Pragma=no-cache Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_res_body="{\"data\":null}" tf_http_res_status_code=500 tf_mux_provider=tf5to6server.v5tov6Server timestamp="2023-11-04T19:24:37.840+0100"
2023-11-04T19:24:39.841+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_http_req_body="" tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/agent/network-get-interfaces tf_resource_type=proxmox_virtual_environment_vm @module=proxmox tf_http_op_type=request tf_http_req_method=GET @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json Accept-Encoding=gzip Host=my.awesome.server:8006 tf_http_req_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" User-Agent=Go-http-client/1.1 tf_http_trans_id=a5004f5d-4726-f05a-9c75-6f0313267f42 tf_mux_provider=tf5to6server.v5tov6Server timestamp="2023-11-04T19:24:39.841+0100"
2023-11-04T19:24:41.776+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: tf_mux_provider=tf5to6server.v5tov6Server @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Connection=[Keep-Alive, Keep-Alive] Date="Sat, 04 Nov 2023 18:26:36 GMT" Expires="Sat, 04 Nov 2023 18:26:36 GMT" tf_http_op_type=response Content-Type=application/json;charset=UTF-8 tf_http_res_body="{\"data\":{\"result\":[{\"hardware-address\":\"00:00:00:00:00:00\",\"ip-addresses\":[{\"ip-address-type\":\"ipv4\",\"prefix\":8,\"ip-address\":\"127.0.0.1\"},{\"prefix\":128,\"ip-address\":\"::1\",\"ip-address-type\":\"ipv6\"}],\"statistics\":{\"tx-errs\":0,\"rx-dropped\":0,\"tx-bytes\":0,\"rx-packets\":0,\"rx-errs\":0,\"tx-dropped\":0,\"rx-bytes\":0,\"tx-packets\":0},\"name\":\"lo\"},{\"name\":\"ens18\",\"statistics\":{\"rx-dropped\":0,\"tx-errs\":0,\"rx-packets\":0,\"tx-bytes\":438,\"tx-dropped\":0,\"rx-errs\":0,\"tx-packets\":2,\"rx-bytes\":0},\"ip-addresses\":[{\"prefix\":64,\"ip-address\":\"fe80::f07b:11ff:fe2d:6608\",\"ip-address-type\":\"ipv6\"}],\"hardware-address\":\"f2:7b:11:2d:66:08\"}]}}" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 Content-Length=618 tf_http_trans_id=a5004f5d-4726-f05a-9c75-6f0313267f42 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_resource_type=proxmox_virtual_environment_vm Cache-Control=max-age=0 Pragma=no-cache Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:24:41.776+0100"
2023-11-04T19:24:44.980+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange User-Agent=Go-http-client/1.1 @module=proxmox Accept=application/json Accept-Encoding=gzip Host=my.awesome.server:8006 tf_http_req_body="" tf_http_req_method=GET @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_http_trans_id=ace3b2ea-12e0-8675-d046-e97f353e1929 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/agent/network-get-interfaces tf_http_req_version=HTTP/1.1 tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_http_op_type=request timestamp="2023-11-04T19:24:44.980+0100"
2023-11-04T19:24:45.185+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Pragma=no-cache tf_http_res_status_code=200 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Content-Length=624 Expires="Sat, 04 Nov 2023 18:26:39 GMT" tf_http_res_status_reason="200 OK" @module=proxmox Connection=[Keep-Alive, Keep-Alive] Content-Type=application/json;charset=UTF-8 tf_http_op_type=response tf_http_res_body="{\"data\":{\"result\":[{\"hardware-address\":\"00:00:00:00:00:00\",\"ip-addresses\":[{\"ip-address-type\":\"ipv4\",\"ip-address\":\"127.0.0.1\",\"prefix\":8},{\"ip-address\":\"::1\",\"prefix\":128,\"ip-address-type\":\"ipv6\"}],\"statistics\":{\"tx-dropped\":0,\"rx-errs\":0,\"tx-packets\":2,\"rx-bytes\":100,\"rx-dropped\":0,\"tx-errs\":0,\"rx-packets\":2,\"tx-bytes\":100},\"name\":\"lo\"},{\"name\":\"ens18\",\"statistics\":{\"tx-errs\":0,\"rx-dropped\":0,\"tx-bytes\":1212,\"rx-packets\":2,\"rx-errs\":0,\"tx-dropped\":0,\"rx-bytes\":84,\"tx-packets\":8},\"ip-addresses\":[{\"ip-address\":\"fe80::f07b:11ff:fe2d:6608\",\"prefix\":64,\"ip-address-type\":\"ipv6\"}],\"hardware-address\":\"f2:7b:11:2d:66:08\"}]}}" tf_http_res_version=HTTP/1.1 tf_http_trans_id=ace3b2ea-12e0-8675-d046-e97f353e1929 Cache-Control=max-age=0 Date="Sat, 04 Nov 2023 18:26:39 GMT" Server=pve-api-daemon/3.0 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm tf_rpc=ApplyResourceChange timestamp="2023-11-04T19:24:45.185+0100"
proxmox_virtual_environment_vm.ubuntu_vm: Still creating... [2m0s elapsed]
2023-11-04T19:24:49.990+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 Accept=application/json Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_version=HTTP/1.1 tf_resource_type=proxmox_virtual_environment_vm User-Agent=Go-http-client/1.1 tf_http_req_body="" tf_http_req_method=GET tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @module=proxmox tf_http_trans_id=48383988-3c3e-d746-fc92-bcf853e2a7fc tf_mux_provider=tf5to6server.v5tov6Server tf_provider_addr=registry.terraform.io/bpg/proxmox tf_rpc=ApplyResourceChange Accept-Encoding=gzip Host=my.awesome.server:8006 tf_http_op_type=request tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/agent/network-get-interfaces timestamp="2023-11-04T19:24:49.990+0100"
2023-11-04T19:24:50.196+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Expires="Sat, 04 Nov 2023 18:26:44 GMT" tf_http_res_body="{\"data\":{\"result\":[{\"name\":\"lo\",\"ip-addresses\":[{\"ip-address-type\":\"ipv4\",\"prefix\":8,\"ip-address\":\"127.0.0.1\"},{\"ip-address-type\":\"ipv6\",\"ip-address\":\"::1\",\"prefix\":128}],\"hardware-address\":\"00:00:00:00:00:00\",\"statistics\":{\"tx-bytes\":100,\"rx-packets\":2,\"tx-errs\":0,\"rx-dropped\":0,\"rx-bytes\":100,\"tx-packets\":2,\"rx-errs\":0,\"tx-dropped\":0}},{\"hardware-address\":\"f2:7b:11:2d:66:08\",\"ip-addresses\":[{\"ip-address-type\":\"ipv6\",\"ip-address\":\"fe80::f07b:11ff:fe2d:6608\",\"prefix\":64}],\"statistics\":{\"rx-bytes\":252,\"tx-packets\":10,\"rx-errs\":0,\"tx-dropped\":0,\"tx-bytes\":1630,\"rx-packets\":6,\"tx-errs\":0,\"rx-dropped\":0},\"name\":\"ens18\"}]}}" Content-Length=626 Server=pve-api-daemon/3.0 tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_http_trans_id=48383988-3c3e-d746-fc92-bcf853e2a7fc tf_rpc=ApplyResourceChange Content-Type=application/json;charset=UTF-8 Date="Sat, 04 Nov 2023 18:26:44 GMT" Pragma=no-cache tf_http_res_version=HTTP/1.1 tf_resource_type=proxmox_virtual_environment_vm @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 @module=proxmox Cache-Control=max-age=0 Connection=[Keep-Alive, Keep-Alive] tf_http_op_type=response tf_mux_provider=tf5to6server.v5tov6Server timestamp="2023-11-04T19:24:50.196+0100"
2023-11-04T19:24:55.002+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Sending HTTP Request: tf_resource_type=proxmox_virtual_environment_vm Host=my.awesome.server:8006 tf_mux_provider=tf5to6server.v5tov6Server Accept-Encoding=gzip User-Agent=Go-http-client/1.1 tf_http_req_method=GET tf_rpc=ApplyResourceChange @module=proxmox Accept=application/json Authorization="PVEAPIToken=packer@pve!token1=my-awesome-token" tf_http_req_body="" tf_http_req_version=HTTP/1.1 tf_http_trans_id=fd96f2c7-eb4c-0e05-7935-6038238f64f8 tf_provider_addr=registry.terraform.io/bpg/proxmox tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 tf_http_op_type=request tf_http_req_uri=/api2/json/nodes/node1/qemu/4321/agent/network-get-interfaces timestamp="2023-11-04T19:24:55.002+0100"
2023-11-04T19:24:55.208+0100 [DEBUG] provider.terraform-provider-proxmox_v0.37.0: Received HTTP Response: Cache-Control=max-age=0 Content-Type=application/json;charset=UTF-8 tf_mux_provider=tf5to6server.v5tov6Server tf_resource_type=proxmox_virtual_environment_vm Connection=[Keep-Alive, Keep-Alive] tf_http_res_status_code=200 tf_http_res_status_reason="200 OK" tf_http_res_version=HTTP/1.1 tf_provider_addr=registry.terraform.io/bpg/proxmox Content-Length=626 Date="Sat, 04 Nov 2023 18:26:49 GMT" Pragma=no-cache tf_http_res_body="{\"data\":{\"result\":[{\"name\":\"lo\",\"statistics\":{\"tx-packets\":2,\"rx-bytes\":100,\"tx-dropped\":0,\"rx-errs\":0,\"rx-packets\":2,\"tx-bytes\":100,\"rx-dropped\":0,\"tx-errs\":0},\"ip-addresses\":[{\"ip-address-type\":\"ipv4\",\"prefix\":8,\"ip-address\":\"127.0.0.1\"},{\"ip-address\":\"::1\",\"prefix\":128,\"ip-address-type\":\"ipv6\"}],\"hardware-address\":\"00:00:00:00:00:00\"},{\"ip-addresses\":[{\"ip-address-type\":\"ipv6\",\"prefix\":64,\"ip-address\":\"fe80::f07b:11ff:fe2d:6608\"}],\"hardware-address\":\"f2:7b:11:2d:66:08\",\"statistics\":{\"tx-errs\":0,\"rx-dropped\":0,\"tx-bytes\":1630,\"rx-packets\":6,\"rx-errs\":0,\"tx-dropped\":0,\"rx-bytes\":252,\"tx-packets\":10},\"name\":\"ens18\"}]}}" tf_req_id=3c8988d4-70b5-fc8b-2472-4b3da0991f86 tf_rpc=ApplyResourceChange @module=proxmox Expires="Sat, 04 Nov 2023 18:26:49 GMT" Server=pve-api-daemon/3.0 tf_http_op_type=response tf_http_trans_id=fd96f2c7-eb4c-0e05-7935-6038238f64f8 @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.29.0/helper/logging/logging_http_transport.go:162 timestamp="2023-11-04T19:24:55.208+0100"
^CStopping operation...
2023-11-04T19:24:55.977+0100 [WARN]  terraform: Stop called, initiating interrupt sequence
2023-11-04T19:24:55.977+0100 [WARN]  terraform: run context exists, stopping
2023-11-04T19:24:55.977+0100 [INFO]  terraform: waiting for graceful stop to complete

Interrupt received.
Please wait for Terraform to exit or data loss may occur.
Gracefully shutting down...

2023-11-04T19:24:56.211+0100 [WARN]  Provider "provider[\"registry.terraform.io/bpg/proxmox\"]" produced an unexpected new value for proxmox_virtual_environment_vm.ubuntu_vm, 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:
      - .clone[0].datastore_id: was null, but now cty.StringVal("")
      - .clone[0].node_name: 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].user_data_file_id: was null, but now cty.StringVal("")
      - .initialization[0].vendor_data_file_id: was null, but now cty.StringVal("")
      - .disk[0].file_id: was null, but now cty.StringVal("")
      - .disk[0].discard: was null, but now cty.StringVal("")
      - .disk[1].discard: was null, but now cty.StringVal("")
      - .disk[1].file_id: was null, but now cty.StringVal("")
proxmox_virtual_environment_vm.ubuntu_vm: Creation complete after 2m9s [id=4321]
2023-11-04T19:24:56.235+0100 [ERROR] vertex "proxmox_virtual_environment_vm.ubuntu_vm" error: execution halted
2023-11-04T19:24:56.235+0100 [ERROR] vertex "proxmox_virtual_environment_vm.ubuntu_vm" error: execution halted
2023-11-04T19:24:56.235+0100 [WARN]  terraform: stop complete

When I create a VM with qm clone 101 1015 --full --name toto && qm set 1015 --ipconfig0 ip=1.2.3.4/24,gw=1.2..3.1 && qm start 1015, that works fine and respect the previous boot order set up in Packer boot = "order=virtio0;ide2;net0;ide0" (but I don't resize any disk).

@ratiborusx
Copy link

ratiborusx commented Nov 4, 2023

@Fabiosilvero
Hey!
I don't remember ever booting from Cloud-Init drive. It is my understanding that it only keeps cloud-config on it. You probably don't need it in the boot order at all, but i'm not sure if UEFI has any influence on the whole thing (never used "OVMF").

I don't think Terraform's provider will be able to save whatever you backed in your image about boot order, it will always rewrite it. Even if you don't specify it in the resource i think it'll default to "boot_order = []" which most likely means to boot up from the first drive it detects.
I'd recommend you to remove "ide2" from load order or try to comment out "boot order" line as a whole (so provider will switch to defaults) and check if it works.

Just to be sure i'd recommend you to try to create a template with an official cloud image of Debian 12 and see if the issue is image-related. I used this one and it works without any problems with cloud-config:
https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2

UPD.
Also, this:
image

@Fabiosilvero
Copy link

Fabiosilvero commented Nov 4, 2023

Hello and thanks for your reply !

I can't get the cloud image to boot with OVMF even with the efi_disk fully configured on terraform side (I used the tar.xz image as qcow2 wasn't valid for the provider - maybe setting the type to snipplet would have been sufficient tho). I'll try again later but I don't think the template is the issue as it works perfectly with Telmate provider.

I get what you mean by asking to remove the boot_order directive, that was a workaround since with OVMF, it seems that if disks aren't present in boot_order, they aren't properly recognized (see https://forum.proxmox.com/threads/cloud-init-drive-not-auto-regenerating.117318/ and https://forum.proxmox.com/threads/ide-cloud-init-volumes-are-not-usable-when-cold-booting-a-vm.117345/).

I tried first without setting it, and the result was the same. My configuration quoted was misleading, that was a fluke but I tried with virtio0 first (and ide2 at the end) and I tried without ide2 : still same thing.

I don't think that this provider enforce the order in the Terraform config at the very end of the execution, but instead before any disks resize - and the boot order is altered at that moment again, causing config revert to default (that's just a guess).

Maybe it's a "Regenerate Image" trigger issue in this provider : if I stop the VM then click on "Regenerate Image" on the Web GUI, the Cloud Init drive appears in Boot Order and the Cloud Init service kicks in at startup.

I'll try to generate a Seabios template and see if the issue persists.

EDIT : It works fine with BIOS Template, so I think it's a problem with UEFI/OVMF-based templates :/

@otopetrik
Copy link
Contributor

Combination cloud-init + ovmf + cloud-init drive @ ide does not work,
combination cloud-init + ovmf + cloud-init drive @ sata also does not work,
but combination cloud-init + ovmf + cloud-init drive @ scsi works (debian 12 genericcloud image).
Not sure why.

Cloud-init docs do not mention anything about different requirements when booted using UEFI.
Maybe OVMF does not support CD drive on ide or sata interfaces ?

Added 2 lines to a debian example:

...
bios = "ovmf" # added
...
initialization {
  interface = "scsi0" # added
  ..
}

and created the VM. Cloud-init correctly applied the configuration.

It is likely unsafe to modify the provider to change initialization.interface default to depend on bios value.
Any scsiN value could potentially colide with actual VM disks.
But it might be a good idea to detect when the user is using bios = "ovmf" with non-scsi interface, and display a warning/suggestion to use one ofscsi0, ..., scsi30 values. (and also add it to the documentation)

@some-random-username-123
Copy link
Author

some-random-username-123 commented Nov 5, 2023

Hey again,

After a long time of testing around with different configs, I still got no results.

But now I tried the Config from @otopetrik (thank you btw) and it works.

When i use scsi1 here, all the CI config is getting applied to the VM on first boot.

So thanks to all of you that helped.

@Fabiosilvero
Copy link

Well, thank you ! I just changed the interface from ide0/2 to scsi1, and it worked flawlessly in OVMF setting.

Maybe a VM with OVMF requires that IDE drives should be present at boot order to be available in VMs at all, and SCSI drives don't need that (I don't see the Cloud Init drive in Boot order).

@windowsrefund
Copy link
Contributor

windowsrefund commented Nov 5, 2023

I've learned some things about Proxmox+cloud-init which may add some value to some areas of this thread.

  • The Proxmox GUI only shows and interacts with a tiny subset of what is possible with cloud-init.
  • In order to build a custom cloud-init, all 4 types must be passed to --cicustom as identified on this thread.
  • When attempting to use qm cloudinit dump to view one or more types, only that small subset which is "used" by the Proxmox GUI is shown. In other words, the dump approach is useless when working with a custom cloud-init.
  • The dump approach mentioned previously also can not report against the vendor type. That said, it is unknown to me if Proxmox supports it despite it needing to be represented when setting --cicustom.

In general, the clobbering nature of proxmox_virtual_environment_vm.initialization.ip_config and proxmox_virtual_environment_vm.initialization.user_account over their *_data_file_id counterparts seems really finicky and just ripe for pointless confusion. I'm personally going to avoid using them and just stick with the data files since that's where all the cloud-init power lies anyway. I understand the value in the perception end users are quickly bootstrapping all the things but wonder if that's enough reason to continue supporting these conflicting elements. Food for thought.

@ratiborusx
Copy link

@windowsrefund
Yep, that's basically what i wrote somewhere at the beginning of the thread. Not as concise though, i must admit :)

  1. You don't need to pass all types of cloud-config (meaning user/network/vendor/meta).
  2. Those elements (meaning GUI cloud-config subset and all the custom stuff) are not conflicting on the silo/type level so to say. Meaning you can pass userdata via GUI and some other data via custom config.
  3. That's basically what i came to - i pass custom cloud-config userdata but leave possibility for end users to pass network configuration via either "initialization" arguments in provider or GUI.
  4. I'm still not sure if it's possible to overwrite custom cloud-config with the stuff you pass via GUI. For now all my research points to resounding no. That's actually was a major bummer for me - i wanted to preserve possibility for end users to change userdata via GUI, so they could for example add their own ssh-keys to the guest VM. I just gave up on that i guess.
  5. Yes, you can pass custom cloud-config vendordata too - i think if you check examples in github you'll find it. But keep in mind that in case there's the same cloud-init modules used in user and vendor datas they are merged. And userdata takes precedence, meaning vendordata gets overwritten.

@bpg bpg added ✨ enhancement New feature or request and removed 🐛 bug Something isn't working labels Nov 5, 2023
Repository owner deleted a comment from allcontributors bot Nov 5, 2023
@bpg
Copy link
Owner

bpg commented Nov 5, 2023

@all-contributors please add @Fabiosilvero and @windowsrefund for testing

Copy link
Contributor

@bpg

I've put up a pull request to add @Fabiosilvero! 🎉

@bpg
Copy link
Owner

bpg commented Nov 5, 2023

@all-contributors please add @windowsrefund for testing

Copy link
Contributor

@bpg

I've put up a pull request to add @windowsrefund! 🎉

@M0NsTeRRR
Copy link

M0NsTeRRR commented Nov 25, 2023

Hello guys,

Cloud init with IDE2 (default) and EFI is working on my side, you can find the attached apply i've posted in an other issue #734 (comment)
You can find my terraform config here (I use terragrunt to boostrap everything)

Tested with Proxmox Virtual Environment 8.0.9, Terraform v1.6.4 and Ubuntu 22.04.3.

I'm creating a template with packer, with some ansible scripts (in the same repo), at the end I reset cloud init instance with cloud-init clean --seed --machine-id and I deploy this template with Terraform.

Note : I use cloud init file

  initialization {
    interface            = "ide2"
    network_data_file_id = proxmox_virtual_environment_file.cloud_network_config.id
    user_data_file_id    = proxmox_virtual_environment_file.cloud_user_config.id
    meta_data_file_id    = proxmox_virtual_environment_file.cloud_meta_config.id
  }

@cursedforever
Copy link

Hello guys, I don't really understand why the cloud-init configuration files are split in this way? Can't we just put one cloud-init file and then --cicustom in the backend? The way it's handled here seems cumbersome to me

@bpg
Copy link
Owner

bpg commented Jan 4, 2024

Hi @cursedforever! That's what the Proxmox API provides us:

10.8.3. Custom Cloud-Init Configuration

The Cloud-Init integration also allows custom config files to be used instead of the automatically generated configs. This is done via the cicustom option on the command line:

qm set 9000 --cicustom "user=<volume>,network=<volume>,meta=<volume>"

The custom config files have to be on a storage that supports snippets and have to be available on all nodes the VM is going to be migrated to. Otherwise the VM won’t be able to start. For example:

qm set 9000 --cicustom "user=local:snippets/userconfig.yaml"

There are three kinds of configs for Cloud-Init. The first one is the user config as seen in the example above. The second is the network config and the third the meta config. They can all be specified together or mixed and matched however needed. The automatically generated config will be used for any that don’t have a custom config file specified.

Well, they missed vendor config in this section, but mentioned it a bit further in the doc.

I'm not a cloud-init expert by any means, so can't comment on "why" it's done this way. Tough I did try passing user config in vendor attribute, and it seemed to be working, by YMMV, and I suspect it may depend on the distro you're using.

@cursedforever
Copy link

Ok thank you very much, I've tried to make a global cloud-init file and pass it to the user_config_file variable and it works.

@michaelfranzl
Copy link
Contributor

michaelfranzl commented Mar 19, 2024

Using v0.49.0 with Proxmox 8.1.4, I am experiencing the same issue as described in the very first comment. Both bios settings ovmf and seabios are affected.

Adding initialization.interface = "scsi1" as suggested by @otopetrik above fixes the issue. Unfortunately, doing so also exposes issue #1083 where the resource is rebooted every apply even when nothing changed.

@michaelfranzl
Copy link
Contributor

Just for reference, more Proxmox users seem to have related issues with the cloud-init IDE interface, where switching to SCSI fixes the issue:

https://forum.proxmox.com/threads/cloud-init-image-only-applies-configuration-on-second-boot.93414/post-452830
https://forum.proxmox.com/threads/scsi0-cloud-init-drive-is-already-attached-at-ide0.131159/post-590571

Maybe the configuration default should be changed from IDE to SCSI?

@ratiborusx
Copy link

ratiborusx commented Mar 21, 2024

I personally never had problems with IDE interface for cloud-init but i must admit i never used UEFI ('bios = ovmf') either because i didn't need PCI devices pass-through so far.
As a workaround for #1083 you may try to use something like this (i think it's unlikely someone would want to change these settings on already deployed instance):

lifecycle {
    ignore_changes = [
      initialization[0].datastore_id,
      initialization[0].interface
    ]
  }

But i'm absolutely not against someone smart fixing that thing for good. I'm just mentally handicapped in that relation.

@bpg-autobot
Copy link
Contributor

bpg-autobot bot commented Sep 18, 2024

Marking this issue as stale due to inactivity in the past 180 days. This helps us focus on the active issues. If this issue is reproducible with the latest version of the provider, please comment. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@ElForastero
Copy link

I'm using 0.64.0 and the issue is still there. Just writing this to prevent it from being closed as stale.

Default cloud-image configuration from snippets isn't applied.

@bpg-autobot bpg-autobot bot removed the stale label Sep 21, 2024
@bpg
Copy link
Owner

bpg commented Sep 22, 2024

Hey @ElForastero 👋🏼
As you can see from the 40+ comments, this issue is quite complex, and many factors could be affecting your specific setup.

The bottom line is that, in most cases discussed above, the problem wasn't with the provider but with VM configuration, cloud-init settings, the base OS image, etc. I'm keeping this issue open mainly to summarize those aspects in the documentation.

I suggest opening a new issue and explaining your use case so we can investigate and offer guidance.

Thanks!

Repository owner locked as resolved and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📖 documentation Improvements or additions to documentation ✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests