Hi all,<br><br><br>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.<br><br>oned.conf<br>*********<br>VM_DIR=/var/lib/one<br>TM_MAD = [<br> name = "tm_nfs",<br>
executable = "one_tm",<br> arguments = "tm_nfs/tm_nfs.conf",<br> default = "tm_nfs/tm_nfs.conf" ]<br><br>and i have shared image directory /var/lib/one/images to all worker nodes<br>
<br>At front node <br>/var/lib/one/images <a href="http://192.168.1.138/255.255.255.0(rw,async,no_root_squash,no_subtree_check)">192.168.1.138/255.255.255.0(rw,async,no_root_squash,no_subtree_check)</a><br><br>and at worker node(sudo mount -t nfs -o nolock 192.168.1.138:/var/lib/one/images/ /var/lib/one/images)<br>
<br><br>oneadmin@rajendra:~onevm list<br><br> ID NAME STAT CPU MEM HOSTNAME TIME<br> 1 vm-test runn 0 524288 labman2-desktop 00 00:04:15<br> 2 vm-test runn 0 524288 labman2-desktop 00 00:01:34<br>
<br><br>when i do shutdown <br><br>oneadmin@rajendra:~/templates$ onevm shutdown 2<br>oneadmin@rajendra:~/templates$ onevm list<br> ID NAME STAT CPU MEM HOSTNAME TIME<br> 1 vm-test runn 0 524288 labman2-desktop 00 00:10:21<br>
<br><br>log also shows that <br><br>oneadmin@rajendra:/usr/lib/one/mads$ cat /var/log/one/2.log <br>Mon May 3 12:46:56 2010 [DiM][I]: New VM state is ACTIVE.<br>Mon May 3 12:46:56 2010 [LCM][I]: New VM state is PROLOG.<br>
Mon May 3 12:46:56 2010 [TM][I]: tm_ln.sh: Creating directory /var/lib/one/2/images<br>Mon May 3 12:46:56 2010 [TM][I]: tm_ln.sh: Executed "ssh labman2-desktop.local mkdir -p /var/lib/one/2/images".<br>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".<br>
Mon May 3 12:46:57 2010 [TM][I]: tm_ln.sh: Link /var/lib/one/images/ttylinux.img<br>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".<br>
Mon May 3 12:46:57 2010 [LCM][I]: New VM state is BOOT<br>Mon May 3 12:46:57 2010 [VMM][I]: Generating deployment file: /var/lib/one/2/deployment.0<br>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<br>
Mon May 3 12:46:58 2010 [VMM][I]: Copy success<br>Mon May 3 12:46:59 2010 [VMM][I]: Connecting to uri: qemu:///system<br>Mon May 3 12:46:59 2010 [VMM][I]: ExitCode: 0<br>Mon May 3 12:46:59 2010 [LCM][I]: New VM state is RUNNING<br>
Mon May 3 12:47:25 2010 [VMM][I]: Connecting to uri: qemu:///system<br>Mon May 3 12:47:25 2010 [VMM][I]: ExitCode: 0<br>Mon May 3 12:47:25 2010 [VMM][I]: Monitor Information:<br> CPU : -1<br> Memory: 524288<br>
Net_TX: -1<br> Net_RX: -1<br>Mon May 3 12:54:25 2010 [VMM][I]: Connecting to uri: qemu:///system<br>Mon May 3 12:54:25 2010 [VMM][I]: ExitCode: 0<br>Mon May 3 12:54:25 2010 [VMM][I]: Monitor Information:<br> CPU : -1<br>
Memory: 524288<br> Net_TX: -1<br> Net_RX: -1<br><br>Mon May 3 12:54:33 2010 [LCM][I]: New VM state is SHUTDOWN<br>Mon May 3 12:54:33 2010 [VMM][I]: Connecting to uri: qemu:///system<br>Mon May 3 12:54:33 2010 [VMM][I]: ExitCode: 0<br>
Mon May 3 12:54:33 2010 [LCM][I]: New VM state is EPILOG<br>Mon May 3 12:54:33 2010 [TM][I]: tm_delete.sh: Deleting /var/lib/one/2/images<br>Mon May 3 12:54:33 2010 [TM][I]: tm_delete.sh: Executed "rm -rf /var/lib/one/2/images".<br>
Mon May 3 12:54:34 2010 [DiM][I]: New VM state is DONE<br><br><br>but virtual machine are still running at worker node<br><br>oneadmin@labman2-desktop:~/images$ virsh list<br>Connecting to uri: qemu:///system<br> Id Name State<br>
----------------------------------<br> 2 one-1 running<br> 3 one-2 running<br> <br>and in log file it showing that<br><br>Mon May 3 12:54:33 2010 [TM][I]: tm_delete.sh: Deleting /var/lib/one/2/images<br>
Mon May 3 12:54:33 2010 [TM][I]: tm_delete.sh: Executed "rm -rf /var/lib/one/2/images".<br><br>but /var/lib/one/2/images is still there<br><br>thanks in advance!!<br><br><br><br><br><br><br clear="all"><br>-- <br>
<br>Regards<br>Rajendra Kumar<br>KQ infotech<br>Mobile No: +91-9823565282<br>