[one-users] Vm shutdown leaves VM on host in running state

Rangababu Chakravarthula rbabu at hexagrid.com
Wed Feb 17 09:35:49 PST 2010


Hello
We are using Opennabula 1.2 with KVM and shared storage
We are seeing a pattern that when we do onevm shutdown on a vm, 
opennebula says it is shutdown but when we logon to the hypervisor and 
do virsh list, vm is still there in running state. We are not able to 
identify the root cause for this. Any insight would be helpful.

Here are the logs. Replaced the actual hostname with "hostname"


_*onevm show 329
*_
VID            : 329                
UID            : 0                  
STATE          : DONE               
LCM STATE      : LCM_INIT           
DEPLOY ID      : one-329            
MEMORY         : 262144             
CPU            : 0                  
LAST POLL      : 1266412831         
START TIME     : 02/17 06:18:06     
STOP TIME      : 02/17 07:20:52     
NET TX         : 0                  
NET RX         : 0                  

....: Template :....
    DISK            : 
CLONE=no,SOURCE=/mnt/storagepoint/images/serverName0,TARGET=hda,TYPE=disk
    DISK            : 
CLONE=no,SOURCE=/mnt/storagepoint/iso/Ubuntu_Server_100000,TARGET=hdb,TYPE=cdrom
    GRAPHICS        : LISTEN=0.0.0.0,PORT=5969,TYPE=vnc
    INPUT           : TYPE=tablet        
    MEMORY          : 256                
    NAME            : serverName           
    NIC             : BRIDGE=br158,MAC=00:1a:93:0b:b3:28
    OS              : BOOT=cdrom         
    VCPU            : 1        


_*TM_NFS.log
*_
Wed Feb 17 06:18:10 2010: TRANSFER 329 /var/lib/one/329/transfer.0
Wed Feb 17 06:18:10 2010: LOG - 329 tm_ln.sh: Creating directory 
/var/lib/one//329/images
Wed Feb 17 06:18:10 2010: LOG - 329 tm_ln.sh: Executed "ssh hostName 
mkdir -p /var/lib/one//329/images".
Wed Feb 17 06:18:10 2010: LOG - 329 tm_ln.sh: Executed "ssh hostName 
chmod a+w /var/lib/one//329/images".
Wed Feb 17 06:18:10 2010: LOG - 329 tm_ln.sh: Link 
/mnt/storagepoint/images/serverName0
Wed Feb 17 06:18:10 2010: LOG - 329 tm_ln.sh: Executed "ssh hostName ln 
-s /mnt/storagepoint/images/serverName0 /var/lib/one//329/images/disk.0".
Wed Feb 17 06:18:10 2010: LOG - 329 tm_ln.sh: Creating directory 
/var/lib/one//329/images
Wed Feb 17 06:18:10 2010: LOG - 329 tm_ln.sh: Executed "ssh hostName 
mkdir -p /var/lib/one//329/images".
Wed Feb 17 06:18:11 2010: LOG - 329 tm_ln.sh: Executed "ssh hostName 
chmod a+w /var/lib/one//329/images".
Wed Feb 17 06:18:11 2010: LOG - 329 tm_ln.sh: Link 
/mnt/storagepoint/iso/Ubuntu_Server_100000
Wed Feb 17 06:18:11 2010: LOG - 329 tm_ln.sh: Executed "ssh hostName ln 
-s /mnt/storagepoint/iso/Ubuntu_Server_100000 
/var/lib/one//329/images/disk.1".
Wed Feb 17 06:18:11 2010: TRANSFER SUCCESS 329 -

_
_*_ONE_VMM_KVM.log_
*Wed Feb 17 06:18:11 2010: DEPLOY 329 hostName 
/var/lib/one//329/images/deployment.0 -
Wed Feb 17 06:18:11 2010: LOG - 329 Command: scp 
/var/lib/one/329/deployment.0 hostName:/var/lib/one//329/images/deployment.0
Wed Feb 17 06:18:11 2010: LOG - 329 Copy success
Wed Feb 17 06:18:11 2010: LOG - 329 Connecting to uri: qemu:///system
Wed Feb 17 06:18:11 2010: LOG - 329 ExitCode: 0
Wed Feb 17 06:18:11 2010: DEPLOY SUCCESS 329 one-329

Wed Feb 17 07:20:52 2010: SHUTDOWN 329 hostName one-329 -
Wed Feb 17 07:20:52 2010: LOG - 329 Connecting to uri: qemu:///system
Wed Feb 17 07:20:52 2010: LOG - 329 ExitCode: 0
Wed Feb 17 07:20:52 2010: SHUTDOWN SUCCESS 329

_
_*_ONED.log_
*
Wed Feb 17 06:18:10 2010 [DiM][D]: Deploying VM 329
Wed Feb 17 06:18:10 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Creating directory /var/lib/one//329/images
Wed Feb 17 06:18:10 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Executed "ssh hostName mkdir -p /var/lib/one//329/images".
Wed Feb 17 06:18:10 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Executed "ssh hostName chmod a+w /var/lib/one//329/images".
Wed Feb 17 06:18:10 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Link /mnt/storagepoint/images/serverName0
Wed Feb 17 06:18:10 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Executed "ssh hostName ln -s /mnt/storagepoint/images/serverName0 
/var/lib/one//329/images/disk.0".
Wed Feb 17 06:18:10 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Creating directory /var/lib/one//329/images
Wed Feb 17 06:18:10 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Executed "ssh hostName mkdir -p /var/lib/one//329/images".
Wed Feb 17 06:18:11 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Executed "ssh hostName chmod a+w /var/lib/one//329/images".
Wed Feb 17 06:18:11 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Link /mnt/storagepoint/iso/Ubuntu_Server_100000
Wed Feb 17 06:18:11 2010 [TM][D]: Message received: LOG - 329 tm_ln.sh: 
Executed "ssh hostName ln -s /mnt/storagepoint/iso/Ubuntu_Server_100000 
/var/lib/one//329/images/disk.1".
Wed Feb 17 06:18:11 2010 [TM][D]: Message received: TRANSFER SUCCESS 329 -
Wed Feb 17 06:18:11 2010 [VMM][D]: Message received: LOG - 329 Command: 
scp /var/lib/one/329/deployment.0 
hostName:/var/lib/one//329/images/deployment.0
Wed Feb 17 06:18:11 2010 [VMM][D]: Message received: LOG - 329 Copy success
Wed Feb 17 06:18:11 2010 [VMM][D]: Message received: LOG - 329 
Connecting to uri: qemu:///system
Wed Feb 17 06:18:11 2010 [VMM][D]: Message received: LOG - 329 ExitCode: 0
Wed Feb 17 06:18:11 2010 [VMM][D]: Message received: DEPLOY SUCCESS 329 
one-329
Wed Feb 17 07:20:52 2010 [DiM][D]: Shutting down VM 329
Wed Feb 17 07:20:52 2010 [VMM][D]: Message received: LOG - 329 
Connecting to uri: qemu:///system
Wed Feb 17 07:20:52 2010 [VMM][D]: Message received: LOG - 329 ExitCode: 0
Wed Feb 17 07:20:52 2010 [VMM][D]: Message received: SHUTDOWN SUCCESS 329
Wed Feb 17 07:20:52 2010 [TM][D]: Message received: LOG - 329 
tm_delete.sh: Deleting /var/lib/one//329/images
Wed Feb 17 07:20:52 2010 [TM][D]: Message received: LOG - 329 
tm_delete.sh: Executed "ssh hostName rm -rf /var/lib/one//329/images".
Wed Feb 17 07:20:52 2010 [TM][D]: Message received: TRANSFER SUCCESS 329 -
_*
ON THE HOST*_
root at 00238bbda9ba:/home/someuser# virsh list
Connecting to uri: qemu:///system
 Id Name                 State
----------------------------------
  1 one-329              running


root at 00238bbda9ba:/home/someuser# virsh dominfo 1
Connecting to uri: qemu:///system
Id:             1
Name:           one-329
UUID:           e8b26338-1eca-da5d-7791-20c143512f53
OS Type:        hvm
State:          running
CPU(s):         1
CPU time:       753.1s
Max memory:     262144 kB
Used memory:    262144 kB
Autostart:      disable

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100217/6564ecf6/attachment-0002.htm>


More information about the Users mailing list