You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource "libvirt_volume" "ubuntu_base" {
name = "ubuntu-24.04-minimal-cloudimg-amd64.img"
pool = "guest_images_lvm"
format = "qcow2"
create = {
content = {
url = "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
}
}
}
...
resource "libvirt_volume" "vm_disk" {
for_each = { for inst in var.instance_object : inst.name => inst }
name = "${each.value.name}-disk.qcow2"
pool = "guest_images_lvm"
capacity = 10737418240
format = "qcow2"
backing_store = {
path = libvirt_volume.ubuntu_base.path
format = "qcow2"
}
}
After running the code, here is what I get:
Error: Provider produced inconsistent result after apply
When applying changes to libvirt_volume.vm_disk["vm1"], provider "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]" produced an unexpected new value: .backing_store.format: was
cty.StringVal("qcow2"), but now null.
This is a bug in the provider, which should be reported in the provider's own issue tracker.
Error: Provider produced inconsistent result after apply
When applying changes to libvirt_volume.vm_disk["vm1"], provider "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]" produced an unexpected new value: .capacity: was
cty.NumberIntVal(1.073741824e+10), but now cty.NumberIntVal(6.9206016e+08).
This is a bug in the provider, which should be reported in the provider's own issue tracker.
It seems that the resizing of the vm1-disk.qcow2 doesn't work.
I have tried looking for config or ressources but nothing conclusive. Any help or advice ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I try to set a disk size from the libvirt_volume (Resource) with the following snippet:
After running the code, here is what I get:
It seems that the resizing of the
vm1-disk.qcow2doesn't work.I have tried looking for config or ressources but nothing conclusive. Any help or advice ?
Beta Was this translation helpful? Give feedback.
All reactions