<div><span style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Thanks for that quick answer !<br /></span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">Yes indeed I had some connectivity troubles on this server, a strange bonding problem I am investigating on since yesterday. But with just one link, it is working ok, I have no similar errors after the ones you saw.</span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica,sans-serif; font-size: 10pt; color: #000000;">What can I do to really remove the task from the list ? Manual database cleanup ?</span></div>
<div>&nbsp;</div>
<p><br /><br /> Le 15-Mar-2018 11:15:40 +0100, eshenitz@redhat.com a &eacute;crit:</p>
<div>&nbsp;</div>
<blockquote style="margin-left: 0; padding-left: 5px; border-left: 2px solid navy;">
<div dir="ltr">Thank you for sending the logs.
<div>&nbsp;</div>
<div>According to the logs, it seems that you had some connectivity issue while you tried to preview the snapshot.</div>
<div>The preview&nbsp;operation rolled back but according to you failed to finish.</div>
<div>&nbsp;</div>
<div>It seems like you still have a connectivity issue with that host (<span style="color: #222222; font-family: arial, sans-serif; font-size: small; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: #ffff00; float: none; display: inline;">'pfm-srv-virt-1.pfm-ad.pfm.loc</span>), try to see what happens to it.</div>
<div>&nbsp;</div>
<div>Here is the relevant part from the log:</div>
<div>&nbsp;</div>
<div>
<div><span style="background-color: #ffff00;">2018-03-14 17:00:48,652+01 ERROR [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] Heartbeat exceeded for host 'pfm-srv-virt-1.pfm-ad.pfm.loc', last response arrived 2003 ms ago.</span></div>
<div>2018-03-14 17:00:53,561+01 INFO&nbsp; [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] Connecting to pfm-srv-virt-1.pfm-ad.pfm.loc/<a href="http://10.100.1.50" target="_blank">10.100.1.50</a></div>
<div>2018-03-14 17:02:21,832+01 INFO&nbsp; [org.ovirt.engine.core.utils.transaction.TransactionSupport] (EE-ManagedThreadFactory-engine-Thread-118906) []<span style="background-color: #ffff00;"> transaction rolled back</span></div>
</div>
<div>
<div>2018-03-14 17:02:21,836+01 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-118906) [] EVENT_ID: USER_TRY_BACK_TO_SNAPSHOT_FINISH_FAILURE(99), Failed to complete Snapshot-Preview AFTER_INSTALL for VM pfm-ltsp-1.</div>
<div>2018-03-14 17:02:21,836+01 ERROR [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engine-Thread-118906) [] [within thread]: endAction for action type TryBackToAllSnapshotsOfVm threw an exception.: java.lang.NullPointerException</div>
<div>at org.ovirt.engine.core.bll.snapshots.SnapshotsManager.deviceCanBeRemoved(SnapshotsManager.java:463) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.snapshots.SnapshotsManager.attempToRestoreVmConfigurationFromSnapshot(SnapshotsManager.java:415) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.snapshots.TryBackToAllSnapshotsOfVmCommand.restoreVmConfigFromSnapshot(TryBackToAllSnapshotsOfVmCommand.java:204) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.snapshots.TryBackToAllSnapshotsOfVmCommand.endSuccessfully(TryBackToAllSnapshotsOfVmCommand.java:168) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.CommandBase.internalEndSuccessfully(CommandBase.java:675) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.CommandBase.endActionInTransactionScope(CommandBase.java:630) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1936) [bll.jar:]</div>
<div>at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:202) [utils.jar:]</div>
<div>at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInRequired(TransactionSupport.java:137) [utils.jar:]</div>
<div>at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:105) [utils.jar:]</div>
<div>at org.ovirt.engine.core.bll.CommandBase.endAction(CommandBase.java:495) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.tasks.DecoratedCommand.endAction(DecoratedCommand.java:17) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.tasks.CoCoAsyncTaskHelper.endAction(CoCoAsyncTaskHelper.java:353) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.tasks.CommandCoordinatorImpl.endAction(CommandCoordinatorImpl.java:347) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.tasks.CommandAsyncTask.endCommandAction(CommandAsyncTask.java:160) [bll.jar:]</div>
<div>at org.ovirt.engine.core.bll.tasks.CommandAsyncTask.lambda$endActionIfNecessary$0(CommandAsyncTask.java:112) [bll.jar:]</div>
<div>at org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:96) [utils.jar:]</div>
<div>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_161]</div>
<div>at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_161]</div>
<div>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_161]</div>
<div>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_161]</div>
<div>at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_161]</div>
<div>at org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250) [javax.enterprise.concurrent-1.0.jar:]</div>
<div>at org.jboss.as.ee.concurrent.service.ElytronManagedThreadFactory$ElytronManagedThread.run(ElytronManagedThreadFactory.java:78)</div>
<div>&nbsp;</div>
<div>2018-03-14 17:02:21,838+01 INFO&nbsp; [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (EE-ManagedThreadFactory-engine-Thread-118906) [] CommandAsyncTask::HandleEndActionResult: endAction for action type 'TryBackToAllSnapshotsOfVm' threw an unrecoverable RuntimeException <span style="background-color: #ffff00;">the task will be cleared.</span></div>
<div>2018-03-14 17:02:21,841+01 INFO&nbsp; [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (EE-ManagedThreadFactory-engine-Thread-118906)&nbsp;</div>
</div>
<div>&nbsp;</div>
</div>
<div class="gmail_extra"><br />
<div class="gmail_quote">On Thu, Mar 15, 2018 at 11:35 AM, <span dir="ltr">&lt;<a href="mailto:spfma.tech@e.mail.fr" target="_blank" rel="noreferrer noopener">spfma.tech@e.mail.fr</a>&gt;</span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<div>Thanks for your reply.</div>
<div>&nbsp;</div>
<div>Yesterday, I realized I was doing nothing good with some the software I planed to install in a VM, so I tried to revert to a snapshot a took just after OS installation, as I always do.</div>
<div>&nbsp;</div>
<div>As I had added a second disk to the VM in between, I choose to revert to snapshot without taking care of the second disk contents.</div>
<div>&nbsp;</div>
<div>But the preview operation never ended. So I restarted the engine vm but nothing changed.</div>
<div>&nbsp;</div>
<div>This morning I tried to cleanup things, using "taskcleaner" and "unlock_entity". I could regain control over the VM, but the task is still in "finalizing" state in the GUI.</div>
<div>&nbsp;</div>
<div>I even remove the second disk to see if it was better, but nothing.</div>
<div>&nbsp;</div>
<div>You will find the engine logfile and the "vdsm.log" from the server the task is running on.</div>
<div>&nbsp;</div>
<div>I am not sure how to check engine version precisely, so I queried the rpm database in the vm :&nbsp;ovirt-engine-4.2.2-1.el7.centos.noarch</div>
<div>&nbsp;</div>
<div>Regards</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">&nbsp;</span></div>
<p><br /><br /> Le 15-Mar-2018 10:17:59 +0100, <a href="mailto:eshenitz@redhat.com" target="_blank" rel="noreferrer noopener">eshenitz@redhat.com</a> a &eacute;crit:</p>
<div>&nbsp;</div>
<blockquote style="margin-left: 0; padding-left: 5px; border-left: 2px solid #000080;">
<div dir="ltr">Hi,&nbsp;
<div>&nbsp;</div>
<div>Can you please specify the version of the engine and supply the engine.log and the vdsm.log?</div>
<div>&nbsp;</div>
<div>Moreover, can you please specify the steps that you did that led you to this issue?</div>
<div>&nbsp;</div>
<div>Thanks,</div>
</div>
<div class="gmail_extra"><br />
<div class="gmail_quote">On Thu, Mar 15, 2018 at 11:05 AM, <span dir="ltr">&lt;<a href="mailto:spfma.tech@e.mail.fr" target="_blank" rel="noreferrer noopener">spfma.tech@e.mail.fr</a>&gt;</span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">Hi,<br /></span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">I tried to rollback to a snapshot on a VM, but the preview never ended.</span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">The task has been running for about 15 hours, with this state :</span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">{<br />&nbsp;&nbsp;&nbsp; "916b67fb-8808-43d2-850c-1c12650ccc49": {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "verb": "createVolume", <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "code": 0, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "state": "finished", <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "tag": "spm", <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "result": {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "uuid": "d37ca118-820f-46a3-b99b-714018ea8b42"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "message": "1 jobs completed successfully", <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "id": "916b67fb-8808-43d2-850c-1c12650ccc49"<br />&nbsp;&nbsp;&nbsp; }<br />}<br /></span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">I just canceled it : the task list is now empty on the CLI but no change on GUI.</span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">So I restared the engine VM, but no success.</span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">With "/usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh" I was able to manually unlock the image, but the task is still "finalizing".</span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">Is this a bug ? </span></div>
<div>&nbsp;</div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">Regards</span></div>
<br /><hr />FreeMail powered by <a href="https://mail.fr" target="_blank" rel="noreferrer noopener">mail.fr</a> <br />_______________________________________________<br /> Users mailing list<br /><a href="mailto:Users@ovirt.org" target="_blank" rel="noreferrer noopener">Users@ovirt.org</a><br /><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank" rel="noreferrer noopener">http://lists.ovirt.org/mailman/listinfo/users</a><br /><br /></blockquote>
</div>
<br /><br clear="all" />
<div>&nbsp;</div>
-- <br />
<div class="m_3219954633466137927gmail_signature">
<div dir="ltr">Regards,
<div>Eyal Shenitzky</div>
</div>
</div>
</div>
</blockquote>
<br /><hr />FreeMail powered by <a href="https://mail.fr" target="_blank" rel="noreferrer noopener">mail.fr</a></blockquote>
</div>
<br /><br clear="all" />
<div>&nbsp;</div>
-- <br />
<div class="gmail_signature">
<div dir="ltr">Regards,
<div>Eyal Shenitzky</div>
</div>
</div>
</div>
</blockquote>
                    <br/><hr>FreeMail powered by <a href="https://mail.fr" target="_blank">mail.fr</a>