[one-users] Vm shutdown leaves VM on host in running state
Rangababu Chakravarthula
rbabu at hexagrid.com
Sat Feb 20 07:06:15 PST 2010
Thank you very much Ruben. We found the reason for that. That particular
VM was deployed using ISO for installation so obviously there was no
acpid running.
Ranga
Ruben S. Montero wrote:
> Hi
>
> KVM sends the shutdown order to the VM through acpi, so you need to
> run acpid in the VM to shutdown the VM, could you check that?. The
> success registered by OpenNebula means that the shutdown action has
> successfully sent to the VM... You can use a console or VNC to see if
> the VM starts the shutdown process...
>
> Cheers
>
> Ruben
>
> On Wed, Feb 17, 2010 at 6:35 PM, Rangababu Chakravarthula
> <rbabu at hexagrid.com> wrote:
>
>> 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
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>>
>
>
>
>
More information about the Users
mailing list