Bug 1374171

Summary: Commands are not polled properly
Product: [oVirt] ovirt-engine Reporter: Arik <ahadas>
Component: BLL.InfraAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: high Docs Contact:
Priority: high    
Version: 4.0.3CC: ahadas, bugs, didi, mgoldboi, michal.skrivanek, mperina, oourfali
Target Milestone: ovirt-4.0.6Flags: rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
rule-engine: devel_ack+
pstehlik: testing_ack+
Target Release: 4.0.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 07:28:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine log none

Description Arik 2016-09-08 07:41:10 UTC
Created attachment 1198923 [details]
engine log

Description of problem:
In this particular case, it is RestoreAllSnapshotCommand that is not polled.
VM: didi-rhel6-engine (9beb6974-d078-41da-a9bb-7abec821e9d1)
Command: RestoreAllSnapshotsCommand (2016-09-07 15:25:22,129 (default task-253) [27207670]).


Version-Release number of selected component (if applicable):
4.0.3

How reproducible:
Rarely

Steps to Reproduce:
Not clear

Actual results:
The 'execute' phase of the commands ends successfully, task is being created, but the command doesn't end in several hours.
Only after restarting the engine (~2016-09-07 20:57:51,063), the command is being ended (2016-09-07 20:58:58,004).

Expected results:
The command should be polled properly and end in a reasonable time.

Additional info:
This is not the first time we faced this issue on rhev.tlv.
This time we checked the command_entities table and it contained 33 entries at ~16:30.

Comment 1 Red Hat Bugzilla Rules Engine 2016-09-08 07:44:01 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 6 Jiri Belka 2016-11-18 09:13:04 UTC
ok, ovirt-engine-backend-4.0.6-0.1.el7ev.noarch

the change adds more DEBUG logging for AsyncTask, see diff above if needed.

~~~
...
2016-11-18 08:11:06,023 DEBUG [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler3) [] Task of command AddImageFromScratch with id 'a2f2f724-1fad-48b5-9a51-af06f2a1c2e1' has succeeded, executing success logic.
...
~~~