nova/releasenotes/notes/bp-libvirt-driver-ip-metadata-8754c623dbd13126.yaml
Nobuhiro MIKI 838370a490
libvirt: add IP address to libvirt guest metadata
Libvirt XML contains useful configuration information such as instance names,
flavors and images as metadata. This change extends this metadata to include
the IP addresses of the instances.

Example:
<metadata>
  <nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.1">
    ...
    <nova:ports>
      <nova:port uuid="567a4527-b0e4-4d0a-bcc2-71fda37897f7">
        <nova:ip type="fixed" address="192.168.1.1" ipVersion="4"/>
        <nova:ip type="fixed" address="fe80::f95c:b030:7094" ipVersion="6"/>
        <nova:ip type="floating" address="11.22.33.44" ipVersion="4"/>
      </nova:port>
    </nova:ports>
    ...
  </nova:instance>
</metadata>

Change-Id: I45f1df4935905170957c2ea2496c8a698a7464a2
blueprint: libvirt-driver-ip-metadata
Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
2021-02-18 16:05:01 +09:00

8 lines
323 B
YAML

---
features:
- |
Added IP addresses to the metadata in libvirt XML. If an instance has more
than one IP address, enumerate those IP addresses. The port attach or
detach is performed dynamically after the creation of the instance. Every
time there is a change, it is reflected in the contents of the XML.