Bug 903156

Summary: taskcleaner.sh utility outputs extra lines
Product: Red Hat Enterprise Virtualization Manager Reporter: Eli Mesika <emesika>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: high    
Version: 3.2.0CC: acathrow, dyasny, iheim, lpeer, pstehlik, Rhev-m-bugs, sgrinber, yeylon, ykaul, yzaslavs
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: sf6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 915537    

Description Eli Mesika 2013-01-23 10:38:00 UTC
Description of problem:
When using taskcleaner.sh utility to list task or zombie tasks, the utility outputs extra lines
For example :

--- Start---
./taskcleaner.sh -u postgres -d ovirt 
~/ovirt-engine/backend/manager/dbscripts ~/ovirt-engine/backend/manager/dbscripts
(No rows)
~/ovirt-engine/backend/manager/dbscripts
--- End---
The directories in the output are the result of pushd and popd using in the script to make it runnable from any place by its full name.
When the utility returns no data, it is important that no redundant output is generated in order to track this correctly.

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


How reproducible:
Always

Steps to Reproduce:
1.Have no running tasks (async_tasks table is empty)
2.run
   taskcleaner.sh -u postgres -d engine
3. You will get extra rows before and after the "(No rows)" row
  
Actual results:
Extra output is displayed

Expected results:
When no tasks available, only "(No rows)" should be displayed in the output

Additional info:

Comment 1 Eli Mesika 2013-01-23 10:43:32 UTC
http://gerrit.ovirt.org/#/c/11298/

Comment 3 Eli Mesika 2013-01-23 22:20:02 UTC
fixed in commit : 9393178

Comment 6 Itamar Heim 2013-06-11 09:07:35 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 09:07:35 UTC
3.2 has been released

Comment 8 Itamar Heim 2013-06-11 09:07:42 UTC
3.2 has been released

Comment 9 Itamar Heim 2013-06-11 09:36:15 UTC
3.2 has been released