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
This provisions extra SCSI disks starting from scsi1, i.e. /dev/sdb
These disks belong to a non-existant vmid 9999 and are attached to the VM that runs the pods that need to mount the volume.
This works fine, but if I then run terraform plan again, it says it wants to remove the disks provisioned by proxmox-csi-plugin.
A workaround I tried was to put disks (or even just disks[0].scsi) into ignore_changes.
That works to prevent Terraform from removing my disks.
However, that also prevents me from increasing the size of scsi0 in order to, for instance, accommodate more and/or larger container images than originally anticipated.
The text was updated successfully, but these errors were encountered:
@TomyLobo are they normal disks?
Is it always vmid 9999?
Maybe with a bit of collaboration with proxmox-csi-plugin this could work but we would require a way to know it created the disk, for example if they prefix the serial with externally-managed we would know not to touch the disk.
Before we should consider moving forward with this the following has to be done:
Rework the Qemu disks in the SDK so not configured does not mean remove, but don't change like everywhere else in that project.
Check if we can suppress the terraform state based on a sub property like serial.
Additionally, the disk's name contains the PV name and that's generated by proxmox-csi-plugin.
That seems to always start with "pvc-", followed by a UUID, so that could be detected.
Haven't found the code section that generates those names, though. I suspect it's in some library.
P.S.: my thought process here, and why I took some time to answer, was this:
that's only a 2-digit number, I wonder what happens if I create more than 100 volumes per node
find the code section that generates it, see it's actually only using lun 1-30 (Proxmox's limit is 0-30, but lun 0 is usually used for the system disk anyway)
I'm doing the following:
scsi0
/dev/sda
scsi1
, i.e./dev/sdb
This works fine, but if I then run
terraform plan
again, it says it wants to remove the disks provisioned byproxmox-csi-plugin
.A workaround I tried was to put
disks
(or even justdisks[0].scsi
) intoignore_changes
.That works to prevent Terraform from removing my disks.
However, that also prevents me from increasing the size of
scsi0
in order to, for instance, accommodate more and/or larger container images than originally anticipated.The text was updated successfully, but these errors were encountered: