Bug 1374171 - Commands are not polled properly
Summary: Commands are not polled properly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Infra
Version: 4.0.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.0.6
: 4.0.6
Assignee: Ravi Nori
QA Contact: Jiri Belka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 07:41 UTC by Arik
Modified: 2017-01-18 07:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-18 07:28:43 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
rule-engine: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)
engine log (5.71 MB, application/x-gzip)
2016-09-08 07:41 UTC, Arik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 64232 0 master MERGED engine: Add extra debug information in AsyncTaskManager 2016-10-06 13:19:14 UTC
oVirt gerrit 65186 0 ovirt-engine-4.0 MERGED engine: Add extra debug information in AsyncTaskManager 2016-10-07 07:50:12 UTC
oVirt gerrit 65234 0 ovirt-engine-4.0.5 MERGED engine: Add extra debug information in AsyncTaskManager 2016-10-13 09:55:50 UTC

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.
...
~~~


Note You need to log in before you can comment on or make changes to this bug.