Can't create lvmcluster storage pool

Hello, I’m trying to setup a incus cluster. I’m stuck at the storage pool creation (lvmcluster).

I made sure all 3 nodes have access to the shared VG (called nucVG cause it’s on a iSCSI target exposed by a NUC) and all nodes can create and activate VG from it and the locks are working as expected.

hv-01 [~]# incus storage create san lvmcluster lvm.vg_name=nucVG --target hv-01
Storage pool san pending on member hv-01
hv-01 [~]# incus storage create san lvmcluster lvm.vg_name=nucVG --target hv-02
Storage pool san pending on member hv-02
hv-01 [~]# incus storage create san lvmcluster lvm.vg_name=nucVG --target hv-03
Storage pool san pending on member hv-03
hv-01 [~]# incus storage create san lvmcluster
Error: lvmcluster requires a shared physical device or a pre-existing shared VG to be used as source

What am I missing?

Set source=nucVG instead of lvm.vg_name

Ok this works but now I have another issue.

I tried to reproduce with Terraform and there is this error when creating the cluster-wide pool:

╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.storage["san"].incus_storage_pool.this,
│ provider "provider[\"registry.opentofu.org/lxc/incus\"]" produced an
│ unexpected new value: .config: new element "size" has appeared.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵

After that the pool exists and seems functional in Incus.

@maveonair I guess size should be added to the computed properties?

For the LVM driver we already have `size` added as a computed property.

@raspbeguy could you please provide your full Terraform code that leads to this issue?