Sahina Bose has uploaded a new change for review.

Change subject: engine: Show waiting for gluster tasks
......................................................................

engine: Show waiting for gluster tasks

When a gluster task is run on a volume for
the second time, before gluster returne the
newly created task, the view was fetching the
previous task's status.
Changed the view where condition to fetch the
status correctly.

Also, the view should only return job status
related to gluster async tasks.

Change-Id: Ia3a2ac3ddc2f46f24b84628cf52f3a193cdebf31
Bug-Url: https://bugzilla.redhat.com/1025304
Signed-off-by: Sahina Bose <sab...@redhat.com>
---
M packaging/dbscripts/create_views.sql
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/07/21907/1

diff --git a/packaging/dbscripts/create_views.sql 
b/packaging/dbscripts/create_views.sql
index b4f3166..d2b8b2d 100644
--- a/packaging/dbscripts/create_views.sql
+++ b/packaging/dbscripts/create_views.sql
@@ -1618,7 +1618,9 @@
 FROM gluster_volumes
 INNER JOIN job_subject_entity js ON js.entity_id = gluster_volumes.id
 INNER JOIN job on job.job_id = js.job_id
-LEFT OUTER JOIN step on step.external_id = gluster_volumes.task_id AND 
step.external_system_type = 'GLUSTER';
+               AND job.action_type in ('StartRebalanceGlusterVolume', 
'StartRemoveGlusterVolumeBricks')
+LEFT OUTER JOIN step on step.external_id = gluster_volumes.task_id AND 
step.external_system_type = 'GLUSTER'
+                AND step.job_id = js.job_id;
 
 CREATE OR REPLACE VIEW gluster_server_services_view
 AS


-- 
To view, visit http://gerrit.ovirt.org/21907
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia3a2ac3ddc2f46f24b84628cf52f3a193cdebf31
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sahina Bose <sab...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to