Change in ovirt-engine[master]: core:Async Tasks cleaner utility...

emesika at redhat.com emesika at redhat.com
Wed Jan 16 15:26:13 UTC 2013


Eli Mesika has submitted this change and it was merged.

Change subject: core:Async Tasks cleaner utility...
......................................................................


core:Async Tasks cleaner utility...

Adding a utility to clean async tasks.
The utility enables to
 Display
     All async tasks
     Only Zombie tasks
  Delete
      All tasks
      All Zombie tasks
      A task related to a given task id
      A Zombie task related to a given task id
      All tasks related to a given command id
      All Zombie tasks related to a given command id
   Flags may be added (-C, -J) to specify if Job Steps & Compensation
data
   should be cleaned as well.

Usage: taskcleaner.sh [-h] [-s server] [-p PORT]] [-d DATABASE] [-u
USERNAME] [-l LOGFILE]  [-t taskId] [-c commandId] [-z] [-R] [-C]
[-J] [-q] [-v]

-s SERVERNAME - The database servername for the database  (def.
localhost)
-p PORT       - The database port for the database        (def.
5432)
-d DATABASE   - The database name                         (def.
engine)
-u USERNAME   - The admin username for the database.
-l LOGFILE    - The logfile for capturing output          (def.
taskcleaner.sh.log)
-t TASK_ID    - Removes a task by its Task ID.
-c COMMAND_ID - Removes all tasks related to the given Command
Id.
-z            - Removes/Displays a Zombie task.
-R            - Removes all Zombie tasks.
-C            - Clear related compensation entries.
-J            - Clear related Job Steps.
-q            - Quite mode, do not prompt for confirmation.
-v            - Turn on verbosity
(WARNING: lots of output)
-h            - This help text.

Change-Id: Idffc35eb5fca0e72c9e4c9e3a08c5b9799569fca
Signed-off-by: Eli Mesika <emesika at redhat.com>
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=891639
Signed-off-by: Eli Mesika <emesika at redhat.com>
---
A backend/manager/dbscripts/taskcleaner.sh
A backend/manager/dbscripts/taskcleaner_sp.sql
2 files changed, 340 insertions(+), 0 deletions(-)

Approvals:
  Eli Mesika: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Idffc35eb5fca0e72c9e4c9e3a08c5b9799569fca
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Alex Lourie <alourie at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list