-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
define might get silently ignored #53
Comments
I think I have run into this for a slightly different reason, that probably should be an error. I had moved past the described "domain already exists" behaviour by managing xml templates external to libvirt to catch changes. But today I was getting a silent changed==false for a domain
But that didn't bubble up to Ansible. I haven't verified the codepath in the libvirt module code yet but this seems pretty likely |
Is there an update on this? It seems as though it's currently not possible to update an existing XML description, and I'd consider that a pretty big limitation of the module. |
After further trial and error it appears that the define command does succeed when the uuid value is provided in the XML template, otherwise it is silently discarded. It would be great if it would fail with a helpful error message instead of silently discarding the possible change and returning ok. |
This was a big source of confusion for me, as I'd been trying to use ansible to resize VMs.
community.libvirt/plugins/modules/virt.py
Lines 552 to 554 in 2185098
While I expect a definition to be updated (if I use the
virsh define
command line this works as expected), instead this is just getting silently ignored.The text was updated successfully, but these errors were encountered: