we can check for the libvirt error code smth like this and act
accordingly

try:
    xml_string = domain.metatada(...)
except libvirt.libvirtError as exc:
    if exc.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN_METADATA:
        ...

It may make sense to extract that logic to a separate function in the
libvirt_utils.py module.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1930446

Title:
  Wallaby ceilometer.compute.discovery fails to get domain metadata

To manage notifications about this bug go to:
https://bugs.launchpad.net/ceilometer/+bug/1930446/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to