Bug 903156 - taskcleaner.sh utility outputs extra lines
Summary: taskcleaner.sh utility outputs extra lines
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.2.0
Assignee: Eli Mesika
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks: 915537
TreeView+ depends on / blocked
 
Reported: 2013-01-23 10:38 UTC by Eli Mesika
Modified: 2016-02-10 19:16 UTC (History)
10 users (show)

Fixed In Version: sf6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 11298 0 None None None Never

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


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