Bug #1031
Vmware TM drivers problem with multiple images
Status: | Closed | Start date: | 12/13/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Tino Vázquez | % Done: | 0% | |
Category: | Drivers - Auth | |||
Target version: | Release 3.2 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 3.2 |
Description
From hakan.isaksson@init.se
-----
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". the boot gets stuck here because the OS-image no longer exist
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 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)
Associated revisions
bug #1031: now the folder deleted is just disk.n
bug #1031: now the folder deleted is just disk.n
(cherry picked from commit 4da7c9060f36eb40a1d5b07377487fb6375af137)
History
#1 Updated by Ruben S. Montero over 9 years ago
- Target version changed from Release 3.4 to Release 3.2
#2 Updated by Ruben S. Montero over 9 years ago
- Status changed from New to Assigned
#3 Updated by Ruben S. Montero over 9 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed