Live migration failure bug.

Bug #1618294 reported by James Du
This bug report is a duplicate of:  Bug #1596724: nova live-migrate failing on master. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
In Progress
Undecided
James Du

Bug Description

In nova.conf when are generated by kolla-ansible, The vncserver_listen and server_listen item should be 0.0.0.0, not the api_interface IP.
Because, the nova live migration requires vnc listen IP not bind with specific host, Here is the code in nova:
      def _check_graphics_addresses_can_live_migrate(self, listen_addrs):
        LOCAL_ADDRS = ('0.0.0.0', '127.0.0.1', '::', '::1')

        local_vnc = CONF.vnc.vncserver_listen in LOCAL_ADDRS
        local_spice = CONF.spice.server_listen in LOCAL_ADDRS

        if ((CONF.vnc.enabled and not local_vnc) or
            (CONF.spice.enabled and not local_spice)):

            msg = _('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).')
            raise exception.MigrationError(reason=msg)

Modify the nova.conf.j2 file:
   vncserver_listen = 0.0.0.0
   server_listen = 0.0.0.0

James Du (james.du)
Changed in kolla:
assignee: nobody → Pengfei Du (58750307-3)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/362577

Changed in kolla:
status: New → In Progress
Revision history for this message
Matthew Taylor (matthew-taylor-f) wrote :

This is quite insecure.. I very much do not recommend defaulting VNC to 0.0.0.0

Revision history for this message
Matthew Taylor (matthew-taylor-f) wrote :

Can you please show us your libvirt configuration no nova.conf.j2 ?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by dupengfei (<email address hidden>) on branch: master
Review: https://review.openstack.org/362577
Reason: Talk in the 349764

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.