Live migration always fails when VNC/SPICE is listening at non-local, non-catch-all address

Bug #1615613 reported by Paulo Matias on 2016-08-22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
John Garbutt

Bug Description

When VNC or SPICE is configured to listen only at a specific IP address (e.g. on the management network in an OpenStack-Ansible deploy), the check performed by check_can_live_migrate_source always fails, because check_can_live_migrate_destination does not return the attributes needed to retrieve listen_addrs using libvirt_migrate.graphics_listen_addrs.

Steps to reproduce:

 * Deploy OpenStack-Ansible from master.

 * Create an instance.

 * Try to live migrate the instance to another host.

Expected result: live migration should be carried.

Actual result (nova-compute.log):

ERROR oslo_messaging.rpc.server MigrationError: Migration error: 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 ( or ::) or the local address ( or ::1).


* Multi-node OpenStack-Ansible deploy.

* Nova from git (commit 32b7526b3cf40f40c5430034f75444fc64ac0e04).

* Libvirt + KVM

Changed in nova:
status: New → In Progress
assignee: nobody → Paulo Matias (paulo-matias)
Changed in nova:
importance: Undecided → High

This is regression introduced in Newton, corresponding patch - Mitaka is not affected.

sahid (sahid-ferdjaoui) on 2016-09-01
tags: added: mitaka-backport-potential
Paul Murray (pmurray) on 2016-09-07
tags: added: newton-rc-potential

Submitter: Jenkins
Branch: master

commit 2ba8fd42901c49a698b8f85f6d8058ce606380d8
Author: John Garbutt <email address hidden>
Date: Mon Sep 12 13:50:36 2016 +0100

    Revert "libvirt: move graphic/serial consoles check to pre_live_migration"

    This reverts the key bits of commit

    Change-Id: I0425b254595371eaa618b10d8c81520b0f6018a5
    Related-Bug: #1615613

Matt Riedemann (mriedem) on 2016-09-13
Changed in nova:
status: In Progress → Fix Released
assignee: Paulo Matias (paulo-matias) → John Garbutt (johngarbutt)

Submitter: Jenkins
Branch: master

commit 3ec1eca4ef1f4e3b23cf88ce9c3b845933a128ee
Author: Paulo Matias <email address hidden>
Date: Mon Aug 22 09:22:37 2016 -0300

    Fill destination check data with VNC/SPICE listen addresses

    We move were we populate the data around the listen addresses, so in a
    future release we can move the check into

    Change-Id: I64aebdfc132d319be6fc04efe456cdc541f5b2e8
    Related-Bug: #1615613

Change abandoned by Lee Yarwood (<email address hidden>) on branch: stable/newton
Reason: Apologies, I missed that the revert was the real bugfix here, already merged in stable/newton.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers