Ask Your Question
0

VM is not responsive after a successful live migration

asked 2016-08-30 22:02:09 -0600

fifi gravatar image

Hi,

I have a problem after each block live migration attempt. After each successful block live migration, the vm is not responsive anymore, and i need to restart it to make it work. Does any one know what causes this problem and how I can fix it?

I'm using KVM/QEMU and libvirt. My image is a qcow2 ubuntu trusty.

Thanks

edit retag flag offensive close merge delete

Comments

Is there anything unusual in Nova logs (nova-api, nova-compute)?

stavitskiy gravatar imagestavitskiy ( 2016-08-31 03:00:19 -0600 )edit

No. Nothing unusual. No error message or warning or ...

fifi gravatar imagefifi ( 2016-08-31 11:30:22 -0600 )edit

What does it mean 'not responsive'? You can't ping it?

stavitskiy gravatar imagestavitskiy ( 2016-09-01 02:57:07 -0600 )edit

I cannot ping, or ssh to it. I have to restart it. Btw, ssh and icmp are allowed in security group.

fifi gravatar imagefifi ( 2016-09-01 12:14:55 -0600 )edit

1 answer

Sort by » oldest newest most voted
-1

answered 2016-09-26 03:42:29 -0600

Ajaycs gravatar image

Few things needs to set: 1) file -> /etc/nova/nova.conf (controller & compute1, compute2) live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE

2) file -> /etc/sysconfig/libvirtd on compute1, compute2 LIBVIRTD_ARGS=”–listen”

3) file -> /etc/libvirt/libvirtd.conf listen_tls = 0 listen_tcp = 1 listen_addr = "0.0.0.0"

4) netstat -lntp | grep libvirtd

[root@controller ~]# . demo-openrc

[root@controller ~]# nova live-migration 12 compute2 ERROR (Forbidden): Policy doesn't allow os_compute_api:os-migrate-server:migrate _live to be performed. (HTTP 403) (Request-ID: req-e7e57b87-cad1-4e4c-9eb3-d76e8 5651b67)

[root@controller ~]# openstack server list +--------------------------------------+----------------------------+---------+---------------------------------+ | ID | Name | Status | Networks | +--------------------------------------+----------------------------+---------+---------------------------------+ | 7decbd6a-b23f-4e04-a96e-20fdca2d62c6 | 12 | ACTIVE | selfservice=10.0.0.53 | | 2f93159c-48db-4506-8318-b4989741dde6 | Share | SHUTOFF | selfservice=10.0.0.9, 10.0.2.32 | | 85e292e7-6d68-4daa-87d2-81a3a711c2cd | stack2-server-eudnfu7jiekf | SHUTOFF | selfservice=10.0.0.8 | +--------------------------------------+----------------------------+---------+---------------------------------+ [root@controller ~]# . admin-openrc [root@controller ~]# nova live-migration 7decbd6a-b23f-4e04-a96e-20fdca2d62c6 compute2 [root@controller ~]# nova live-migration 7decbd6a-b23f-4e04-a96e-20fdca2d62c6 compute1

Note - source admin-openrc before migration.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-08-30 22:02:09 -0600

Seen: 140 times

Last updated: Sep 26 '16