From 284f0266f20659f125b1c40479de026da54186ca Mon Sep 17 00:00:00 2001 From: Gerry Kopec Date: Wed, 28 Nov 2018 22:06:51 -0500 Subject: [PATCH] Fix live-migration in containers setup Based on lab testing, need to set per host config option libvirt/live_migration_inbound_addr to an IP instead of hostname based address as nova-compute pod can't translate the host address. Setting will be primary infra address if it exists or else primary management address. This may require further revision to support IPv6 addresses. Goal is to enable further integration testing in the near term. We can move back to a hostname based address when that becomes available. Story: 2003909 Task: 27081 Change-Id: I8727583186f2f3253bd44d0fa22017261d30c7ca Signed-off-by: Gerry Kopec --- sysinv/sysinv/sysinv/sysinv/helm/nova.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysinv/sysinv/sysinv/sysinv/helm/nova.py b/sysinv/sysinv/sysinv/sysinv/helm/nova.py index 09748387d7..c0edb48482 100644 --- a/sysinv/sysinv/sysinv/sysinv/helm/nova.py +++ b/sysinv/sysinv/sysinv/sysinv/helm/nova.py @@ -356,7 +356,7 @@ class NovaHelm(openstack.OpenstackBaseHelm): elif ip_family == 6: vnc_config.update({'vncserver_listen': '::0'}) - libvirt_config.update({'live_migration_inbound_addr': str(host.hostname) + '-infra'}) + libvirt_config.update({'live_migration_inbound_addr': migration_ip}) vnc_config.update({'vncserver_proxyclient_address': mgmt_ip}) def _update_host_memory(self, host, default_config):