Skip to content

Conversation

@mahendrapaipuri
Copy link
Collaborator

  • Seems like certain Openstack deployments might not create XML files for instances in persistent directory /etc/libvirt/qemu. So, we need to support looking into the runtime directory /run/libvirt/qemu in the collector. By default collector will look at both directories and file found in the first directory will be used to fetch instance properties. We always give priority to persistent folder over runtime folder while looking for files.

  • Unit tests have been modified to test the behaviour of XML files in runtime and persistent directories which have different XML schemas.

Closes #403

* Seems like certain Openstack deployments might not create XML files for instances in persistent directory `/etc/libvirt/qemu`. So, we need to support looking into the runtime directory `/run/libvirt/qemu` in the collector. By default collector will look at both directories and file found in the first directory will be used to fetch instance properties. We always give priority to persistent folder over runtime folder while looking for files.

* Unit tests have been modified to test the behaviour of XML files in runtime and persistent directories which have different XML schemas.

Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
@mahendrapaipuri mahendrapaipuri added the enhancement New feature or request label Aug 28, 2025
@mahendrapaipuri mahendrapaipuri merged commit 906ba92 into main Aug 28, 2025
16 checks passed
@mahendrapaipuri mahendrapaipuri deleted the support_runtime_xml_dir_libvirt branch August 28, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support runtime XML files for libvirt collector

2 participants