
------=_Part_2103610_137760378.1469454733068 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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@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@node5 ~]# vdsClient -s 0 stopTask "bc688cfd-a839-43b5-9a35-c8f56df00d19" Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411 [root@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@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@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@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@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",) 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." ------=_Part_2103610_137760378.1469454733068 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><= div style=3D'font-family: arial,helvetica,sans-serif; font-size: 10pt; colo= r: #000000'>I start moving a disk to a secondary storage, and one task hung= s up<br><br>try to stop the task several times with vdsClient, but it keeps= in running state<br>please let me know how to force stop the task.<br><br>= thanks<br><br>[root@node5 ~]# vdsClient -s 0 getAllTasksStatuses<br>{'statu= s': {'message': 'OK', 'code': 0}, 'allTasksStatus': {'bc688cfd-a839-43b5-9a= 35-c8f56df00d19': {'message': 'running job 1 of 1', 'code': 0, 'taskID': 'b= c688cfd-a839-43b5-9a35-c8f56df00d19', 'taskResult': '', 'taskState': 'runni= ng'}}}<br><br>[root@node5 ~]# vdsClient -s 0 stopTask "bc688cfd-a839-43b5-9= a35-c8f56df00d19"<br>Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d1= 9' - code 411<br>[root@node5 ~]# vdsClient -s 0 stopTask "bc688cfd-a839-43b= 5-9a35-c8f56df00d19" stop async task<br>Task is aborted: u'bc688cfd-a839-43= b5-9a35-c8f56df00d19' - code 411<br>[root@node5 ~]# vdsClient -s 0 stopTask= "bc688cfd-a839-43b5-9a35-c8f56df00d19" stop async task<br>Task is aborted:= u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411<br>[root@node5 ~]# vdsC= lient -s 0 stopTask "bc688cfd-a839-43b5-9a35-c8f56df00d19" stop async task<= br>Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411<br>[= root@node5 ~]# vdsClient -s 0 stopTask "bc688cfd-a839-43b5-9a35-c8f56df00d1= 9" stop async task<br>Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d= 19' - code 411<br>[root@node5 ~]# vdsClient -s 0 clearTask "bc688cfd-a839-4= 3b5-9a35-c8f56df00d19" clear async task<br>Operation is not allowed in this= task state: ("can't clean in state running",)<br><br><div><span name=3D"x"=
</span>Juan Carlos Lin<br>Unisoft S.A.<br>+595-993-288330<span name=3D"x">= </span><br></div></div> <br>= <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML lang=3D"es"> <HEAD> <TITLE>System-wide Disclaimer</TITLE> </HEAD> <BODY>---------------------------------------------------<br>"Antes de imprimir, recu=C3=A9rdese de su compromiso con el Medio Ambiente"<br>"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=C3=B3n del contenido no est=C3=A1 autorizada fuera del contexto de su env=C3=ADo y a quien corresponde. El uso no autorizado de la informaci=C3=B3n en este mensaje se halla penado por las leyes vigentes en todo el mundo. Si ha recibido este mensaje por error, por favor b=C3=B3rrala 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." </BODY> </HTML> <br>= </body></html> ------=_Part_2103610_137760378.1469454733068--

On Mon, Jul 25, 2016 at 4:52 PM, Juan Carlos YJ. Lin <lin@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@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@node5 ~]# vdsClient -s 0 stopTask "bc688cfd-a839-43b5-9a35-c8f56df00d19" Task is aborted: u'bc688cfd-a839-43b5-9a35-c8f56df00d19' - code 411 [root@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@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@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@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@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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Juan Carlos YJ. Lin
-
Nir Soffer