[one-users] Errors in tm_clone.sh for NFS hosts
Whiffen, Richard
Richard_Whiffen at cable.comcast.com
Mon Apr 18 12:51:40 PDT 2011
I think this one is pretty straight forward, I just need someone to tell me where I set it. When I try to create a virt on a tm_nfs target, the tm_clone is cloning into the wrong directory.
It says its trying to do it right:
tm_clone.sh: io-kvm-ctrl-01.streamsage.com:/srv/cloud/var/images/83603da305e13410317b0c947f435a019644f46f sn-kvm-11:/srv/cloud/one/var/56/images/disk.0
/srv/cloud/one/var/56/images is the correct target path, but the clone script appears to be putting it in: /var/lib/one/56/images/disk.0
tm_clone.sh: DST: /var/lib/one/56/images/disk.0
Where do I set the variable for the tm_nfs config to not use '${ONE_LOCATION}' for the destination but rather use the /srv/cloud/one/var/ (/srv is the NFS mount common to both the oneadmin control box and the target host).
The log file of a failure:
Mon Apr 18 15:10:30 2011 [DiM][I]: New VM state is ACTIVE.
Mon Apr 18 15:10:30 2011 [LCM][I]: New VM state is PROLOG.
Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: io-kvm-ctrl-01.streamsage.com:/srv/cloud/var/images/83603da305e13410317b0c947f435a019644f46f sn-kvm-11:/srv/cloud/one/var/56/images/disk.0
Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: DST: /var/lib/one/56/images/disk.0
Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Creating directory /var/lib/one/56/images
Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /var/lib/one/56/images".
Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /var/lib/one/56/images".
Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/var/images/83603da305e13410317b0c947f435a019644f46f
Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/var/images/83603da305e13410317b0c947f435a019644f46f /var/lib/one/56/images/disk.0".
Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /var/lib/one/56/images/disk.0".
Mon Apr 18 15:11:53 2011 [TM][I]: tm_context.sh: Executed "mkdir -p /var/lib/one/56/images/isofiles".
Mon Apr 18 15:11:53 2011 [TM][I]: tm_context.sh: Executed "cp -R /var/lib/one/56/context.sh /var/lib/one/56/images/isofiles".
Mon Apr 18 15:11:53 2011 [TM][I]: tm_context.sh: Executed "/usr/bin/mkisofs -o /var/lib/one/56/images/disk.1 -J -R /var/lib/one/56/images/isofiles".
Mon Apr 18 15:11:53 2011 [TM][I]: tm_context.sh: Executed "rm -rf /var/lib/one/56/images/isofiles".
Mon Apr 18 15:11:55 2011 [LCM][I]: New VM state is BOOT
Mon Apr 18 15:11:55 2011 [VMM][I]: Generating deployment file: /var/lib/one/56/deployment.0
Mon Apr 18 15:12:25 2011 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var/56/images/deployment.0; else exit 42; fi'
Mon Apr 18 15:12:25 2011 [VMM][I]: STDERR follows.
Mon Apr 18 15:12:25 2011 [VMM][I]: Warning: Permanently added 'sn-kvm-11,192.168.241.41' (RSA) to the list of known hosts.
Mon Apr 18 15:12:25 2011 [VMM][I]: error: Failed to create domain from /srv/cloud/one/var/56/images/deployment.0
Mon Apr 18 15:12:25 2011 [VMM][I]: error: internal error unable to start guest: qemu: could not open disk image /srv/cloud/one/var/56/images/disk.0
Mon Apr 18 15:12:25 2011 [VMM][I]:
Mon Apr 18 15:12:25 2011 [VMM][I]: ExitCode: 255
Mon Apr 18 15:12:25 2011 [VMM][E]: Error deploying virtual machine: Warning: Permanently added 'sn-kvm-11,192.168.241.41' (RSA) to the list of known hosts.^M
Mon Apr 18 15:12:25 2011 [DiM][I]: New VM state is FAILED
Mon Apr 18 15:12:27 2011 [TM][W]: Ignored: LOG - 56 tm_delete.sh: Deleting /var/lib/one/56/images
Mon Apr 18 15:12:27 2011 [TM][W]: Ignored: LOG - 56 tm_delete.sh: Executed "rm -rf /var/lib/one/56/images".
Mon Apr 18 15:12:27 2011 [TM][W]: Ignored: TRANSFER SUCCESS 56 -
Mon Apr 18 15:13:43 2011 [DiM][I]: New VM state is DONE.
Mon Apr 18 15:13:44 2011 [HKM][I]: Hook image successfully executed.
Cheers,
Rich
--
Rich Whiffen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110418/a14f2e04/attachment.htm>
More information about the Users
mailing list