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
I am running into a idempotency issue whenever an ide drive is added, Terraform will attempt to reshuffle all attached disk on all subsequent calls to terraform <plan/apply>.
So for a baseline, if you add two scsi disks testing for idempotency will pass.
Once you add an ide drive (cdrom or cloudinit), the shuffling will occur.
If you only have two ide drives (cdrom), the shuffling does not occur, however, the issue described in New Disk feature block issue #1090 occurs.
This is problematic when you want to add a cloud-init drive to VMs and occurs in the 3.0.1-rc4 release, master and newdisk branches.
@trfore the shuffling in the Terraform state is due to the complexity of the disk block. Putting the disks in by id in alphanumeric irder seems to mostly fix this. This is due to a limitation in Terraform, and partially the reason why the disks block was introduced.
As far as I'm aware, the old disk block had this same problem but would actually mutate the vm.
FYI, we currently use the ordered list type for disk. I've tried many times to get the unordered list working. The ordered list allows us to somewhat mitigate this with the alphanumeric id ordering, whereas the unordered list makes it completely random.
If someone knows a terraform provider that handles these big objects in an unordered list please point me to it.
This issue is stale because it has been open for 60 days with no activity. Please update the provider to the latest version and, in the issue persist, provide full configuration and debug logs
I am running into a idempotency issue whenever an
ide
drive is added, Terraform will attempt to reshuffle all attached disk on all subsequent calls toterraform <plan/apply>
.scsi
disks testing for idempotency will pass.ide
drive (cdrom
orcloudinit
), the shuffling will occur.ide
drives (cdrom
), the shuffling does not occur, however, the issue described in New Disk feature block issue #1090 occurs.This is problematic when you want to add a cloud-init drive to VMs and occurs in the
3.0.1-rc4
release,master
andnewdisk
branches.Code Example
Terraform Output
Log output after initial
apply
:The text was updated successfully, but these errors were encountered: