live migration nfs backend incorrect file ownership

asked 2014-02-14 11:23:41 -0600

luigi.romagnoli gravatar image

updated 2014-02-14 11:24:29 -0600

lab: two node the node2 share /var/lib/nova/instance trough NFS, node1 mount that share

mount
192.168.251.8:/ on /var/lib/nova/instances type nfs (rw,vers=4,addr=192.168.251.8,clientaddr=192.168.251.6)

permission

[root@node1 nova(keystone_admin)]# ls -ld /var/lib/nova/instances/
drwxr-xr-x 5 nova nova 4096 Feb 14 17:36 /var/lib/nova/instances/

all firewall roules are ok

before migration:

    [root@node1 ef13c293-f227-453c-b8d5-d7e537168dac(keystone_admin)]# ll
    -rw-rw---- 1 qemu qemu  11472 Feb 14  2014 console.log
    -rw-r--r-- 1 qemu qemu 262656 Feb 14 17:46 disk
    -rw-r--r-- 1 nova nova   1668 Feb 14 17:46 libvirt.xml

after migration

[root@node1 ef13c293-f227-453c-b8d5-d7e537168dac(keystone_admin)]# nova live-migration ef13c293-f227-453c-b8d5-d7e537168dac  node1.lab.priv
[root@node1 ef13c293-f227-453c-b8d5-d7e537168dac(keystone_admin)]# ll
total 8524
-rw-rw---- 1 qemu qemu       0 Feb 14 17:47 console.log
-rw-r--r-- 1 qemu qemu 8781824 Feb 14 17:46 disk
-rw-r--r-- 1 nova nova    1668 Feb 14 17:46 libvirt.xml
[root@node1 ef13c293-f227-453c-b8d5-d7e537168dac(keystone_admin)]# ll
total 8524
-rw-rw---- 1 qemu qemu      64 Feb 14 17:47 console.log
-rw-r--r-- 1 root root 8781824 Feb 14 17:46 disk
-rw-r--r-- 1 nova nova    1668 Feb 14 17:46 libvirt.xml

wrong file ownership of disk and disk corrupted!

nova migration has no problem

edit retag flag offensive close merge delete