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

[BUG] VM created with provider has wrong disk format type in state #96

Open
TheUnixRoot opened this issue Jul 5, 2021 · 0 comments
Open

Comments

@TheUnixRoot
Copy link

TheUnixRoot commented Jul 5, 2021

Describe the bug
I created a vm in Proxmox 6.3 with disk type "raw", it works but now in state it is shown as type "qcow2", so it is marked as need to be recreated

To Reproduce
With Proxmox 6.3-2 and provider 0.4.4

Steps to reproduce the behavior:

  1. Deploy a virtual machine with raw disk type:
resource "proxmox_virtual_environment_vm" "vm" {
  ...
  disk {
    datastore_id = "shared"
    interface    = "virtio0"
    file_format  = "raw"
    size         = var.pm_rootdisk_size
  }
  ...
}
  1. Do a plan afterwards
  2. It shows that the resource needs to be recreated because of this:
      ~ disk {
          ~ file_format  = "qcow2" -> "raw" # forces replacement
            # (3 unchanged attributes hidden)
        }
  1. See error

Expected behavior
It should be "raw" also in state.

Additional context
If vm could be imported, this issue can be workaround, but this is not able to be done at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant