Update compute.discovery to get nova domain meta

Nova changed the namespace for nova specific
data to version 1.1 for the wallaby cycle .

Closes-Bug: #1930446
Change-Id: I2aa34cf142c6429a7a0a3b8f232c3ed83f7d9981
This commit is contained in:
Christophe Useinovic 2021-10-05 15:44:04 +02:00
parent b73ae4e6de
commit 252698de6a

View File

@ -140,7 +140,7 @@ class InstanceDiscovery(plugin_base.DiscoveryBase):
try:
xml_string = domain.metadata(
libvirt.VIR_DOMAIN_METADATA_ELEMENT,
"http://openstack.org/xmlns/libvirt/nova/1.0")
"http://openstack.org/xmlns/libvirt/nova/1.1")
except libvirt.libvirtError as e:
if libvirt_utils.is_disconnection_exception(e):
# Re-raise the exception so it's handled and retries