Describe the bug
If a server is created from snapshot, subsequent refreshes read the os_id as the underlying OS in the snapshot, not the special meaning 164 (see #95 for more info), which means that a change is always detected:
Thanks for catching this. This looks like one off behavior with our V1 API implementation which is causing issues. We are looking into addressing this issue.
Describe the bug If a server is created from snapshot, subsequent refreshes read the
os_id
as the underlying OS in the snapshot, not the special meaning164
(see #95 for more info), which means that a change is always detected:where
244
is the underlying OS (Debian in this case) in the snapshot.It's not good terraform practice to have spurious 'changes' like this, but it's worse in this case, since it actually prevents us from
apply
ing:i.e. we cannot update in-place (and we certainly don't want to re-create every time!) to the special
os_id = 164
.To Reproduce Steps to reproduce the behavior:
vultr_server
resource withos_id = 164
and validsnapshot_id
terraform apply
, wait for successterraform plan
, note the planned 'change'terraform apply
, note the failureExpected behavior
terraform plan
in reproduction step 3 should show no change.