Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.