Bug 1372098

Summary: Nova fails live migration when graphic addresses are not set to localhost or 0.0.0.0
Product: Red Hat OpenStack Reporter: Stephen Gordon <sgordon>
Component: openstack-novaAssignee: Sahid Ferdjaoui <sferdjao>
Status: CLOSED NOTABUG QA Contact: Prasanth Anbalagan <panbalag>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: berrange, dasmith, eglynn, kchamart, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-15 09:24:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Stephen Gordon 2016-08-31 21:52:33 UTC
Cloned from launchpad bug 1618392.

Description:

Description
===========
At some point pre-check for graphic addresses was moved to check_can_live_migrate_source, https://review.openstack.org/#/c/254709. However, this patch introduced regression, because it only moved a pre-check, but the data needed for the check is not populated at this point.

Steps to reproduce
==================
Setup with 2 compute nodes and live migration configured is enough.
1. Edit nova.conf and set vncserver_listen to, e.g., IP assigned to management interface on both compute nodes
2. Try to live migrate an instance

Expected result
===============
live migration will succeed regardless of IP address set in vncserver_listen (127.0.0.1, 0.0.0.0 or any IP assigned to one of interfaces on a compute node)

Actual result
=============
live migration fails:
Your libvirt version does not support the VIR_DOMAIN_XML_MIGRATABLE flag or your destination node does not support retrieving listen addresses. In order  for live migration to work properly, you must configure the graphics (VNC and/or SPICE) listen addresses to be either the catch-all address (0.0.0.0 or ::) or the local address (127.0.0.1 or ::1).

Environment
===========
1. Exact version of OpenStack you are running
Trunk of nova, commit https://github.com/openstack/nova/commit/bebc86bf5598571a28dd47f17a05dd616fe0f550

2. Which hypervisor did you use?
QEMU/KVM + Libvirt

Specification URL (additional information):

https://bugs.launchpad.net/nova/+bug/1618392

Comment 2 Sahid Ferdjaoui 2017-02-15 09:24:53 UTC
Nothing to do here.

The fix which introduced the regression has been reverted https://review.openstack.org/#/c/254709/ and https://review.openstack.org/#/c/358599/ introduce a change in Ocata which will be used by Pike, backporting it on RHOS10(newton) is not going to change anything.