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
bpg
changed the title
Disk speed always gets updated to same value if set
Disk speed always gets updated to same value if set to all zeros
Sep 21, 2024
If the speed block contains all zeros (i.e., its default value), it is treated as undefined. In other words, the provider can't distinguish between two configurations: one with a speed block set to all zeros, and another without a speed block. This means no remote configuration changes related to this block are applied to the remote VM, and nothing corresponding to this block is read back, making it inconsequential and thus removed from the state.
This behavior is not ideal, but it would be difficult to change in the current implementation. In #1231, we'll have more flexibility in managing the current state and defaults, so this use case could be handled differently in the future. However, for now, the provider can't properly support it.
I'm going to close it as "won't do" for 0.x, and we'll check this case in the future 1.x.
Hi,
Describe the bug
After setting the disk speed to 0 (unlimited), rerun always wants to set the same 0 value again for the VM.
To Reproduce
Steps to reproduce the behavior:
terraform apply
after the VM created:terraform apply
again:Expected behavior
Terraform should not try to change 0 value with a 0 value.
If the speed settings are on their default values, terraform doesn't want to change these values.
TF_LOG=DEBUG terraform apply
):The text was updated successfully, but these errors were encountered: