devstack live migration fails silently.

asked 2015-04-23 11:58:53 -0500

bb gravatar image

updated 2015-04-23 12:20:09 -0500

SGPJ gravatar image

I have 3 nodes

   - Devstack-1: Controller.
   - Devstack-2: Compute-1
   - Devstack-3: Compute-2

Installed devstack on all 3 nodes and "nova service-list" reports that all nodes are up and kicking

stack@Devstack-1:~/nova/nova/conductor/tasks$ nova service-list
+----+----------------+------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary         | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+----------------+------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-conductor | Devstack-1 | internal | enabled | up    | 2015-04-23T16:45:15.000000 | -               |
| 2  | nova-cert      | Devstack-1 | internal | enabled | up    | 2015-04-23T16:45:18.000000 | -               |
| 3  | nova-network   | Devstack-1 | internal | enabled | up    | 2015-04-23T16:45:11.000000 | -               |
| 4  | nova-scheduler | Devstack-1 | internal | enabled | up    | 2015-04-23T16:45:14.000000 | -               |
| 5  | nova-compute   | Devstack-1 | nova     | enabled | up    | 2015-04-23T16:45:11.000000 | -               |
| 6  | nova-network   | Devstack-2 | internal | enabled | up    | 2015-04-23T16:45:14.000000 | -               |
| 7  | nova-compute   | Devstack-2 | nova     | enabled | up    | 2015-04-23T16:45:11.000000 | -               |
| 8  | nova-network   | Devstack-3 | internal | enabled | up    | 2015-04-23T16:45:14.000000 | -               |
| 9  | nova-compute   | Devstack-3 | nova     | enabled | up    | 2015-04-23T16:45:18.000000 | -               |
+----+----------------+------------+----------+---------+-------+----------------------------+-----------------+
stack@Devstack-1:~/nova/nova/conductor/tasks$

Installed NFS on the controller using following commands

$ sudo apt-get install nfs-kernel-server
$ sudo mkdir -p /srv/demo-stack/instances
$ sudo chmod o+x /srv/demo-stack/instances
$ sudo chown stack:stack /srv/demo-stack/instances

Add following entry on to /etc/exports
     /srv/demo-stack/instances 10.0.0.0/8(rw,fsid=0,insecure,no_subtree_check,async,no_root_squash)

Then exported the directory using sudo exportfs -ra

On each of compute nodes. Did the following

mkdir -p /opt/stack/data/instances
sudo apt-get install rpcbind nfs-common
sudo mount 10.11.181.216:/srv/demo-stack/instances /opt/stack/data/instances

Edited following on compute-nodes

/etc/libvirt/libvirtd.conf
  – listen_tls = 0
   – listen_tcp = 1
   – auth_tcp = “none”

/etc/default/libvirt-bin
     – libvirtd_opts = “ -d -l”

Restarted the libvirt on compute node using 
         sudo service libvirt-bin  restart

Changed following on the local.conf of compute-nodes and stacked again.

# set this for live migration
VNCSERVER_LISTEN=0.0.0.0
NOVA_INSTANCES_PATH=/opt/stack/data/instances

I hope above steps are fine.

Created a VM that was running on Devstack-2 and executed "nova live-migration test Devstack-3". The CLI goes thro' without any error but i don't see VM getting migrated.

I don't see any error on the logs as well.

edit retag flag offensive close merge delete

Comments

Hey have you figured out what's the problem ?

ChrisHung gravatar imageChrisHung ( 2017-07-02 20:01:02 -0500 )edit