Open rombert opened 9 months ago
Yeah, it was probably a mistake to set the default to be kvm
. Can you set it to the empty string to avoid the recreation?
Yeah, it was probably a mistake to set the default to be
kvm
. Can you set it to the empty string to avoid the recreation?
Thanks for the hint. With that property set the domains are no longer set to be re-created.
My immediate problem is solved, I'll leave this up to you whether you want to follow-up with a fix or just close.
Since the PR for providing a property is merged, I think this can be closed?
@scabala - do you mean https://github.com/dmacvicar/terraform-provider-libvirt/pull/1045 ? That was the one that caused the problem for me. I have a workaround but the root cause is not fixed.
Oh, I misunderstood the issue.
I think this is part of bigger idea of having non-recreating updates to domains like #1069
Yes, #1069 definitely sounds like a good idea, I sometimes change the terraform definitions then update the domains in-place to prevent disruptive operations.
System Information
Linux distribution
openSUSE Tumbleweed
Terraform version
Provider and libvirt versions
Checklist
[ ] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
[x] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
Setup
I have a very plain terraform setup, coming from the 0.6.x days. The domain definition looks like this
I upgraded from 0.6.14 to 0.7.6 and
terraform plan
now wants to recreate my domains, e.g.I checked the VM definitions via virt-manager and they all start with
Steps to Reproduce Issue
I guess start with 0.6.x and upgrade to 0.7.x?
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? No. Have you tried to reproduce the issue without them enabled? N/A
This behaviour seems to have been brought in via #1045