Hi Håkan, Thanks again for this! This is indeed a nasty bug [1], easy to solve, but nasty anyway. The "rm" is there to prevent ONE failing when the <vid>/images/disk.n folder previously exists, but clearly it is erasing too much ;)
Regards, -Tino [1] http://dev.opennebula.org/issues/1031 -- Constantino Vázquez Blanco, MSc Project Engineer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | @tinova79 | @OpenNebula 2011/12/8 Håkan Isaksson <[email protected]>: > > Hi, > > after upgrading from vmware-2.98 to vmware-3.0.0 vm-templates that have more > than one image no longer works, > because the first image is copied and then erased when the second is copied. > > Here is a log: > > Wed Dec 7 16:11:21 2011 [DiM][I]: New VM state is ACTIVE. > Wed Dec 7 16:11:21 2011 [LCM][I]: New VM state is PROLOG. > Wed Dec 7 16:11:21 2011 [VM][I]: Virtual Machine has no context > Wed Dec 7 16:13:05 2011 [TM][D]: tm_clone.sh: > dev-clm1.init.se:/srv/cloud/one/var/images/6f741b4a8d3d1bce8898777ee74bfa49 > dev-clmesx1.init.se:/srv/cloud/one/var//105/images/disk.0 > Wed Dec 7 16:13:05 2011 [TM][D]: tm_clone.sh: DST: > /srv/cloud/one/var//105/images/disk.0 > Wed Dec 7 16:13:05 2011 [TM][I]: tm_clone.sh: Creating directory > /srv/cloud/one/var//105/images > Wed Dec 7 16:13:05 2011 [TM][I]: tm_clone.sh: Executed "rm -rf > /srv/cloud/one/var//105/images". > Wed Dec 7 16:13:05 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p > /srv/cloud/one/var//105/images/disk.0". > Wed Dec 7 16:13:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w > /srv/cloud/one/var//105/images/disk.0". > Wed Dec 7 16:13:05 2011 [TM][I]: tm_clone.sh: Cloning > /srv/cloud/one/var/images/6f741b4a8d3d1bce8898777ee74bfa49 > Wed Dec 7 16:13:05 2011 [TM][I]: tm_clone.sh: Executed "cp -r > /srv/cloud/one/var/images/6f741b4a8d3d1bce8898777ee74bfa49/* > /srv/cloud/one/var//105/images/disk.0". > Wed Dec 7 16:13:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw > /srv/cloud/one/var//105/images/disk.0". > Wed Dec 7 16:13:05 2011 [TM][I]: ExitCode: 0 > Wed Dec 7 16:13:07 2011 [TM][D]: tm_clone.sh: > dev-clm1.init.se:/srv/cloud/one/var/images/a14fae29abc5f39fade2ebed13f61646 > dev-clmesx1.init.se:/srv/cloud/one/var//105/images/disk.1 > Wed Dec 7 16:13:07 2011 [TM][D]: tm_clone.sh: DST: > /srv/cloud/one/var//105/images/disk.1 > Wed Dec 7 16:13:07 2011 [TM][I]: tm_clone.sh: Creating directory > /srv/cloud/one/var//105/images > Wed Dec 7 16:13:07 2011 [TM][I]: tm_clone.sh: Executed "rm -rf > /srv/cloud/one/var//105/images". > Wed Dec 7 16:13:07 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p > /srv/cloud/one/var//105/images/disk.1". > Wed Dec 7 16:13:07 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w > /srv/cloud/one/var//105/images/disk.1". > Wed Dec 7 16:13:07 2011 [TM][I]: tm_clone.sh: Cloning > /srv/cloud/one/var/images/a14fae29abc5f39fade2ebed13f61646 > Wed Dec 7 16:13:07 2011 [TM][I]: tm_clone.sh: Executed "cp -r > /srv/cloud/one/var/images/a14fae29abc5f39fade2ebed13f61646/* > /srv/cloud/one/var//105/images/disk.1". > Wed Dec 7 16:13:07 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw > /srv/cloud/one/var//105/images/disk.1". > Wed Dec 7 16:13:07 2011 [TM][I]: ExitCode: 0 > Wed Dec 7 16:13:07 2011 [LCM][I]: New VM state is BOOT > Wed Dec 7 16:13:07 2011 [VMM][I]: Generating deployment file: > /srv/cloud/one/var/105/deployment.0 > --- the boot gets stuck here because the OS-image no longer exist > > The line that does "rm -rf /srv/cloud/one/var//105/images" was added in > vmware-3.0.0 > > If I remove the rm line in /srv/cloud/one/lib/tm_commands/vmware/tm_clone.sh > starting the vm works. > > I guess the proper way to solve this would be to do "rm -rf > /srv/cloud/one/var//105/images/disk.<nr>" instead. > > (I'm using opennebula-3.0.0) > > > mvh Håkan Isaksson > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > _______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
