[one-users] Opennebula 4.6 delete VM

Javier Fontan jfontan at opennebula.org
Tue May 13 03:13:35 PDT 2014


The problem seems to be caused by deploy. After deploy the script gets
the deploy_id of the newly created VM and is pushed back to OpenNebula
daemon to be saved into the database. After that all the actions use
that deploy_id.

I am not able to reproduce the error. Have you modified the VMM deploy script?

On Thu, May 8, 2014 at 7:17 AM, Гусев Павел <pgusev at qsoft.ru> wrote:
> Hi!
> I have installed opennebula 4.6 on my debian6 at x86_64
>
> I have no trouble when create VMs, but when delete/shutdown there is succesfull operation in sunstone, but in virsh vm works still, and I have these log strings..
> Wed May  7 01:58:29 2014 [ReM][D]: Req:1792 UID:0 VirtualMachineInfo invoked, 7
> Wed May  7 01:58:29 2014 [ReM][D]: Req:1792 UID:0 VirtualMachineInfo result SUCCESS, "<VM><ID>7</ID><UID>0..."
> Wed May  7 01:58:29 2014 [ReM][D]: Req:9280 UID:0 VirtualMachineAction invoked, "delete", 7
> Wed May  7 01:58:29 2014 [DiM][D]: Finalizing VM 7
> Wed May  7 01:58:29 2014 [ReM][D]: Req:9280 UID:0 VirtualMachineAction result SUCCESS, 7
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 Driver command for 7 cancelled
>
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 error: failed to get domain 'virsh'
>
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 error: Domain not found: no domain with matching name 'virsh'
>
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 error: failed to get domain 'virsh'
>
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 error: Domain not found: no domain with matching name 'virsh'
>
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 ExitCode: 0
>
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 Successfully execute virtualization driver operation: cancel.
>
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 ExitCode: 0
>
> Wed May  7 01:58:29 2014 [VMM][D]: Message received: LOG I 7 Successfully execute network driver operation: clean.
>
> Wed May  7 01:58:30 2014 [VMM][D]: Message received: LOG I 7 Successfully execute transfer manager driver operation: tm_delete.
>
> Wed May  7 01:58:30 2014 [VMM][D]: Message received: LOG I 7 Successfully execute transfer manager driver operation: tm_delete.
>
> Wed May  7 01:58:30 2014 [VMM][D]: Message received: CLEANUP SUCCESS 7
>
>
>
>
> I have some test: in /var/tmp/one/vmm/kvm/cancel I write $@ variable to file, and see:
> virsh dedicated-04 8 dedicated-04
>
> but in script  /var/tmp/one/vmm/kvm/cancel I see:
>
> deploy_id=$1
>
> TIMEOUT=60
>
> function destroy_and_monitor
> {
>     virsh --connect $LIBVIRT_URI destroy $deploy_id
>
>     virsh --connect $LIBVIRT_URI --readonly dominfo $deploy_id
>     [ "x$?" != "x0" ]
> }
>
> I think, when compare  content of variable $@ (virsh dedicated-04 8 dedicated-04) with deploy_id=$1 , deploy_id must be always eq "virsh", and then command
> virsh --connect $LIBVIRT_URI destroy virsh
> will be never work fine.
>
> I have same test on opennebula 4.4, when delete operation, script  /var/tmp/one/vmm/kvm/cancel have these arguments:
> /var/tmp/one/vmm/kvm/cancel one-170 dedicated-01 170 dedicated-01
> and all works fine.
>
> Is there a bug or I must do some configure for opennebula?
> Thank you!
>
> --
> С уважением,
> Гусев Павел
> Руководитель отдела системного администрирования
>
> QSOFT | Ведущий web-интегратор
>
> офис 7(495) 771-7363 #110 | моб. 7(926) 850-1108
> pgusev at qsoft.ru
> Москва, Авангардная улица, 3  |  qsoft.ru
> San Francisco, 222 Columbus Ave |  qsoftus.com
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan


More information about the Users mailing list