[Pkg-opennebula-devel] Bug#673427: opennebula: Fails deploying VM with shared image on same host

Olivier Berger olivier.berger at it-sudparis.eu
Fri May 18 16:33:06 UTC 2012


Package: opennebula
Version: 3.2.1-2
Severity: normal

Hi.

I'm running the image store/monitor and the execution host on the same host.

I tried creating a VM using a persistent image.

However, that failed.

Here's the logs of the VM (#29) :
root at myhost:/var/log/one# cat 29.log 
Fri May 18 17:58:44 2012 [DiM][I]: New VM state is ACTIVE.
Fri May 18 17:58:44 2012 [LCM][I]: New VM state is PROLOG.
Fri May 18 17:58:44 2012 [TM][I]: tm_ln.sh: Creating directory /var/lib/one//29/images
Fri May 18 17:58:44 2012 [TM][I]: tm_ln.sh: Executed "mkdir -p /var/lib/one//29/images".
Fri May 18 17:58:44 2012 [TM][I]: tm_ln.sh: Executed "chmod a+w /var/lib/one//29/images".
Fri May 18 17:58:44 2012 [TM][I]: tm_ln.sh: Link /var/lib/one/images/d378f408ef971dacbbb17af29db53f2a
Fri May 18 17:58:44 2012 [TM][I]: tm_ln.sh: Executed "ln -s /var/lib/one/images/d378f408ef971dacbbb17af29db53f2a /var/lib/one//29/images/disk.0".
Fri May 18 17:58:44 2012 [TM][I]: ExitCode: 0
Fri May 18 17:58:44 2012 [TM][I]: tm_context.sh: Executed "mkdir -p /var/lib/one//29/images/isofiles".
Fri May 18 17:58:44 2012 [TM][I]: tm_context.sh: Executed "cp -R /var/lib/one/29/context.sh /var/lib/one//29/images/isofiles".
Fri May 18 17:58:44 2012 [TM][I]: tm_context.sh: Executed "cp -R /var/lib/one/one-templates/debian/init.sh /var/lib/one//29/images/isofiles".
Fri May 18 17:58:44 2012 [TM][I]: tm_context.sh: Executed "cp -R /var/lib/one/.ssh/id_rsa.pub /var/lib/one//29/images/isofiles".
Fri May 18 17:58:44 2012 [TM][I]: tm_context.sh: Executed "genisoimage -o /var/lib/one//29/images/disk.1 -J -R /var/lib/one//29/images/isofiles".
Fri May 18 17:58:44 2012 [TM][I]: tm_context.sh: Executed "rm -rf /var/lib/one//29/images/isofiles".
Fri May 18 17:58:44 2012 [TM][I]: ExitCode: 0
Fri May 18 17:58:44 2012 [LCM][I]: New VM state is BOOT
Fri May 18 17:58:44 2012 [VMM][I]: Generating deployment file: /var/lib/one/29/deployment.0
Fri May 18 17:58:44 2012 [VMM][I]: ExitCode: 0
Fri May 18 17:58:44 2012 [VMM][I]: Successfully execute network driver operation: pre.
Fri May 18 17:58:46 2012 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//29/images/deployment.0 myhost 29 myhost
Fri May 18 17:58:46 2012 [VMM][I]: error: Failed to create domain from /var/lib/one//29/images/deployment.0
Fri May 18 17:58:46 2012 [VMM][I]: error: internal error process exited while connecting to monitor: kvm: -drive file=/var/lib/one//29/images/disk.0,if=none,id=drive-ide0-0-0,format=raw: could not open disk image /var/lib/one//29/images/disk.0: Permission denied
Fri May 18 17:58:46 2012 [VMM][I]: 
Fri May 18 17:58:46 2012 [VMM][E]: Could not create domain from /var/lib/one//29/images/deployment.0
Fri May 18 17:58:46 2012 [VMM][I]: ExitCode: 255
Fri May 18 17:58:46 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy.
Fri May 18 17:58:46 2012 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//29/images/deployment.0
Fri May 18 17:58:46 2012 [DiM][I]: New VM state is FAILED

Here are the files in /var/lib/one/29/ :

# ls -alrtR /var/lib/one/29/
/var/lib/one/29/:
total 24
-rw-r--r--  1 oneadmin cloud  245 mai   18 17:58 transfer.0.prolog
drwxrwxrwx  2 oneadmin cloud 4096 mai   18 17:58 images
-rw-r--r--  1 oneadmin cloud  797 mai   18 17:58 deployment.0
-rw-r--r--  1 oneadmin cloud  180 mai   18 17:58 context.sh
drwxrwxrwx  3 oneadmin cloud 4096 mai   18 17:58 .
drwxr-xr-x 37 oneadmin root  4096 mai   18 18:05 ..

/var/lib/one/29/images:
total 384
-rw-r--r-- 1 libvirt-qemu kvm   376832 mai   18 17:58 disk.1
lrwxrwxrwx 1 oneadmin     cloud     52 mai   18 17:58 disk.0 -> /var/lib/one/images/d378f408ef971dacbbb17af29db53f2a
-rw-r--r-- 1 oneadmin     cloud    798 mai   18 17:58 deployment.0
drwxrwxrwx 3 oneadmin     cloud   4096 mai   18 17:58 ..
drwxrwxrwx 2 oneadmin     cloud   4096 mai   18 17:58 .

But :
# ls -alrt /var/lib/one/images/
total 1049612
drwxrws--T  2 oneadmin root       4096 mai   18 14:25 .
-rw-rw----  1 root     root 1073741824 mai   18 14:25 d378f408ef971dacbbb17af29db53f2a
drwxr-xr-x 37 oneadmin root       4096 mai   18 18:05 ..

AFAIR, I used oneimage create and later set it to persistent state with onevm persistent.

Thanks in advance.

Best regards,

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (300, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages opennebula depends on:
ii  apg                2.2.3.dfsg.1-2
ii  genisoimage        9:1.1.11-2
ii  libc6              2.13-32
ii  libgcc1            1:4.7.0-7
ii  libmysqlclient16   5.1.61-3
ii  libsqlite3-0       3.7.11-3
ii  libssl1.0.0        1.0.1c-1
ii  libstdc++6         4.7.0-7
ii  libxml2            2.7.8.dfsg-9
ii  libxmlrpc-c++4     1.16.33-3.1
ii  libxmlrpc-core-c3  1.16.33-3.1
ii  opennebula-tools   3.2.1-2
ii  wget               1.13.4-3

opennebula recommends no packages.

Versions of packages opennebula suggests:
pn  mysql-server     <none>
pn  ruby-amazon-ec2  <none>

-- no debconf information





More information about the Pkg-opennebula-devel mailing list