[ovirt-users] canot cancel a task

Nir Soffer nsoffer at redhat.com
Mon Jul 25 14:57:50 UTC 2016


On Mon, Jul 25, 2016 at 4:52 PM, Juan Carlos YJ. Lin <lin at unisoft.com.py> wrote:
> I start moving a disk to a secondary storage, and one task hungs up
>
> try to stop the task several times with vdsClient, but it keeps in running
> state
> please let me know how to force stop the task.
>
> thanks
>
> [root at node5 ~]# vdsClient -s 0 getAllTasksStatuses
> {'status': {'message': 'OK', 'code': 0}, 'allTasksStatus':
> {'bc688cfd-a839-43b5-9a35-c8f56df00d19': {'message': 'running job 1 of 1',
> 'code': 0, 'taskID': 'bc688cfd-a839-43b5-9a35-c8f56df00d19', 'taskResult':
> '', 'taskState': 'running'}}}
>
> [root at node5 ~]# vdsClient -s 0 stopTask
> "bc688cfd-a839-43b5-9a35-c8f56df00d19"
> Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411
> [root at node5 ~]# vdsClient -s 0 stopTask
> "bc688cfd-a839-43b5-9a35-c8f56df00d19" stop async task
> Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411
> [root at node5 ~]# vdsClient -s 0 stopTask
> "bc688cfd-a839-43b5-9a35-c8f56df00d19" stop async task
> Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411
> [root at node5 ~]# vdsClient -s 0 stopTask
> "bc688cfd-a839-43b5-9a35-c8f56df00d19" stop async task
> Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411
> [root at node5 ~]# vdsClient -s 0 stopTask
> "bc688cfd-a839-43b5-9a35-c8f56df00d19" stop async task
> Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411
> [root at node5 ~]# vdsClient -s 0 clearTask
> "bc688cfd-a839-43b5-9a35-c8f56df00d19" clear async task
> Operation is not allowed in this task state: ("can't clean in state
> running",)

Sound like a bug.

You can kill the process started by this task - since 3.6 this we use only
qemu-img, before that we use also dd for copying volumes.

Killing the underlying process doing the copy is safe, the operation should
fail and engine will delete the halfy-copied volumes.

Adding vdsm logs from the time you started the task will help to understand
why aborting and clearing the task did not work.

Nir

>
> Juan Carlos Lin
> Unisoft S.A.
> +595-993-288330
>
> ---------------------------------------------------
> "Antes de imprimir, recuérdese de su compromiso con el Medio Ambiente"
> "Aviso: Este mensaje es dirigido para su destinatario y contiene
> informaciones que no pueden ser usadas por otras personas que no sean su(s)
> destinatario(s). La retransmisión del contenido no está autorizada fuera del
> contexto de su envío y a quien corresponde. El uso no autorizado de la
> información en este mensaje se halla penado por las leyes vigentes en todo
> el mundo. Si ha recibido este mensaje por error, por favor bórrala y
> notifique al remitente en la brevedad posible. El contenido de este mensaje
> no es responsabilidad de la Empresa y debe ser atribuido siempre a su autor.
> Gracias."
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



More information about the Users mailing list