As we are using fs-lvm, Virtual Machines are deployed using Raw images instead of qcow2.When trying to deploy those Virtual Machines in a host, sometimes we got an error:
Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one/datastores/golden//132/535/deployment.0’ ‘cnsrvbld20’ 535 cnsrvbld20
After this failure if we try again in the same host, the deployment is OK.
Attached the detailed log, when it fails:
Fri Feb 12 10:29:16 2016 [Z0][VMM][D]: Message received: LOG I 535 Successfully execute network driver operation: pre.
Fri Feb 12 10:29:16 2016 [Z0][VMM][D]: Message received: LOG I 535 Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one/datastores/golden//132/535/deployment.0’ ‘cnsrvbld20’ 535 cnsrvbld20
Fri Feb 12 10:29:16 2016 [Z0][VMM][D]: Message received: LOG I 535 error: Failed to create domain from /var/lib/one/datastores/golden//132/535/deployment.0
Fri Feb 12 10:29:16 2016 [Z0][VMM][D]: Message received: LOG I 535 error: Cannot access storage file ‘/var/lib/one/datastores/golden//132/535/disk.0’ (as uid:9869, gid:9869): No such file or directory
Fri Feb 12 10:29:16 2016 [Z0][VMM][D]: Message received: LOG E 535 Could not create domain from /var/lib/one/datastores/golden//132/535/deployment.0
Fri Feb 12 10:29:16 2016 [Z0][VMM][D]: Message received: LOG I 535 ExitCode: 255
Fri Feb 12 10:29:16 2016 [Z0][VMM][D]: Message received: LOG I 535 Failed to execute virtualization driver operation: deploy.
Fri Feb 12 10:29:16 2016 [Z0][VMM][D]: Message received: DEPLOY FAILURE 535 Could not create domain from /var/lib/one/datastores/golden//132/535/deployment.0
If we look the directory of the Virtual Machine, we see that disk.0 is missing:
[root@cnsrvbld28 521]# ls -als
total 384
0 drwxrwxr-x 2 oneadmin oneadmin 96 feb 10 17:22 .
8 drwxr-xr-x 46 oneadmin oneadmin 8192 feb 11 13:00 …
8 -rw-rw-r-- 1 oneadmin oneadmin 1147 feb 11 17:15 deployment.0
368 -rw-r–r-- 1 oneadmin oneadmin 372736 feb 10 17:22 disk.1
0 lrwxrwxrwx 1 oneadmin oneadmin 45 feb 10 17:22 disk.1.iso -> /var/lib/one/datastores/golden/132/521/disk.1
[root@cnsrvbld28 521]# cd …
I have checked the drivers for fs-lvm but the problem seems to happen before.I have put some breakpoints on the drivers, but in the failing case i don’t reach the “clone” driver (this should be the tm script to be executed when doing this first deployment).
==> Can you help us?