Merge "Fix live migration to use migration int. address"

This commit is contained in:
Zuul 2020-04-12 06:14:09 +00:00 committed by Gerrit Code Review
commit 969159cc17
2 changed files with 17 additions and 2 deletions

View File

@ -1,9 +1,11 @@
[libvirt]
{% if libvirt_tls | bool %}
connection_uri = "qemu+tls://{{ migration_hostname }}/system"
live_migration_uri = "qemu+tls://%s/system"
connection_uri = "qemu+tls://{{ migration_hostname | put_address_in_context('url') }}/system"
live_migration_scheme = "tls"
live_migration_inbound_addr = "{{ migration_hostname }}"
{% else %}
connection_uri = "qemu+tcp://{{ migration_interface_address | put_address_in_context('url') }}/system"
live_migration_inbound_addr = "{{ migration_interface_address }}"
{% endif %}
{% if nova_backend == "rbd" %}
images_type = rbd

View File

@ -0,0 +1,13 @@
---
fixes:
- |
Fixes an issue with Nova live migration not using
``migration_interface_address`` even when TLS was not used.
When migrating an instance to a newly added compute host, if addressing
depended on ``/etc/hosts`` and it had not been updated on the
source compute host to include the new compute host, live migration would
fail. This did not affect DNS-based name resolution.
Analogically, Nova live migration would fail if the address in
DNS/``/etc/hosts`` was not the same as ``migration_interface_address``
due to user customization.
`LP#1729566 <https://bugs.launchpad.net/kolla-ansible/+bug/1729566>`__