[one-users] Can't shutdown Virtual machine
    rajendra kumar 
    rajendra at kqinfotech.com
       
    Mon May  3 00:47:27 PDT 2010
    
    
  
Hi all,
When I do a shutdown the VM goes to shut state and removes from onevm list.
But the VM is still running on the worker node.
oned.conf
*********
VM_DIR=/var/lib/one
TM_MAD = [
      name       = "tm_nfs",
      executable = "one_tm",
      arguments  = "tm_nfs/tm_nfs.conf",
      default    = "tm_nfs/tm_nfs.conf" ]
and i have shared image directory /var/lib/one/images to all worker nodes
At front node
/var/lib/one/images
192.168.1.138/255.255.255.0(rw,async,no_root_squash,no_subtree_check)
and at worker node(sudo mount -t nfs -o nolock
192.168.1.138:/var/lib/one/images/
/var/lib/one/images)
oneadmin at rajendra:~onevm list
  ID     NAME STAT CPU     MEM        HOSTNAME        TIME
   1  vm-test runn   0  524288 labman2-desktop 00 00:04:15
   2  vm-test runn   0  524288 labman2-desktop 00 00:01:34
when i do shutdown
oneadmin at rajendra:~/templates$ onevm shutdown 2
oneadmin at rajendra:~/templates$ onevm list
  ID     NAME STAT CPU     MEM        HOSTNAME        TIME
   1  vm-test runn   0  524288 labman2-desktop 00 00:10:21
log also shows that
oneadmin at rajendra:/usr/lib/one/mads$ cat /var/log/one/2.log
Mon May  3 12:46:56 2010 [DiM][I]: New VM state is ACTIVE.
Mon May  3 12:46:56 2010 [LCM][I]: New VM state is PROLOG.
Mon May  3 12:46:56 2010 [TM][I]: tm_ln.sh: Creating directory
/var/lib/one/2/images
Mon May  3 12:46:56 2010 [TM][I]: tm_ln.sh: Executed "ssh
labman2-desktop.local mkdir -p /var/lib/one/2/images".
Mon May  3 12:46:57 2010 [TM][I]: tm_ln.sh: Executed "ssh
labman2-desktop.local chmod a+w /var/lib/one/2/images".
Mon May  3 12:46:57 2010 [TM][I]: tm_ln.sh: Link
/var/lib/one/images/ttylinux.img
Mon May  3 12:46:57 2010 [TM][I]: tm_ln.sh: Executed "ssh
labman2-desktop.local ln -s /var/lib/one/images/ttylinux.img
/var/lib/one/2/images/disk.0".
Mon May  3 12:46:57 2010 [LCM][I]: New VM state is BOOT
Mon May  3 12:46:57 2010 [VMM][I]: Generating deployment file:
/var/lib/one/2/deployment.0
Mon May  3 12:46:57 2010 [VMM][I]: Command: scp /var/lib/one/2/deployment.0
labman2-desktop.local:/var/lib/one/2/images/deployment.0
Mon May  3 12:46:58 2010 [VMM][I]: Copy success
Mon May  3 12:46:59 2010 [VMM][I]: Connecting to uri: qemu:///system
Mon May  3 12:46:59 2010 [VMM][I]: ExitCode: 0
Mon May  3 12:46:59 2010 [LCM][I]: New VM state is RUNNING
Mon May  3 12:47:25 2010 [VMM][I]: Connecting to uri: qemu:///system
Mon May  3 12:47:25 2010 [VMM][I]: ExitCode: 0
Mon May  3 12:47:25 2010 [VMM][I]: Monitor Information:
    CPU   : -1
    Memory: 524288
    Net_TX: -1
    Net_RX: -1
Mon May  3 12:54:25 2010 [VMM][I]: Connecting to uri: qemu:///system
Mon May  3 12:54:25 2010 [VMM][I]: ExitCode: 0
Mon May  3 12:54:25 2010 [VMM][I]: Monitor Information:
    CPU   : -1
    Memory: 524288
    Net_TX: -1
    Net_RX: -1
Mon May  3 12:54:33 2010 [LCM][I]: New VM state is SHUTDOWN
Mon May  3 12:54:33 2010 [VMM][I]: Connecting to uri: qemu:///system
Mon May  3 12:54:33 2010 [VMM][I]: ExitCode: 0
Mon May  3 12:54:33 2010 [LCM][I]: New VM state is EPILOG
Mon May  3 12:54:33 2010 [TM][I]: tm_delete.sh: Deleting
/var/lib/one/2/images
Mon May  3 12:54:33 2010 [TM][I]: tm_delete.sh: Executed "rm -rf
/var/lib/one/2/images".
Mon May  3 12:54:34 2010 [DiM][I]: New VM state is DONE
but virtual machine are still running at worker node
oneadmin at labman2-desktop:~/images$ virsh list
Connecting to uri: qemu:///system
 Id Name                 State
----------------------------------
  2 one-1                running
  3 one-2                running
and in log file it showing that
Mon May  3 12:54:33 2010 [TM][I]: tm_delete.sh: Deleting
/var/lib/one/2/images
Mon May  3 12:54:33 2010 [TM][I]: tm_delete.sh: Executed "rm -rf
/var/lib/one/2/images".
but /var/lib/one/2/images is still there
thanks in advance!!
-- 
Regards
Rajendra Kumar
KQ infotech
Mobile No: +91-9823565282
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100503/a0d9d07e/attachment-0002.htm>
    
    
More information about the Users
mailing list