Bug 1029177

Summary: taskcleaner.sh '-l' option does not produce logfile
Product: Red Hat Enterprise Virtualization Manager Reporter: Derrick Ornelas <dornelas>
Component: ovirt-engine-setupAssignee: Eli Mesika <emesika>
Status: CLOSED ERRATA QA Contact: Jiri Belka <jbelka>
Severity: low Docs Contact:
Priority: low    
Version: 3.3.0CC: acathrow, bazulay, iheim, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: All   
OS: Linux   
Whiteboard: infra
Fixed In Version: is24 Doc Type: Bug Fix
Doc Text:
The taskcleaner.sh -l option now correctly produces a log file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 17:39:19 UTC 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: 1038284    

Description Derrick Ornelas 2013-11-11 20:47:08 UTC
Description of problem:
When specifying the '-l' option to taskcleaner.sh, no log file is created at all.  Also, the default taskcleaner.sh.log file is never created when '-l' is not used even though the usage claims this is the default log file.   


Version-Release number of selected component (if applicable):
rhevm-setup-3.3.0-0.30.beta1.el6ev
rhevm-setup-3.2.4-0.44.el6ev


How reproducible:  100%


Steps to Reproduce:
1.  Run taskcleaner.sh

# PGPASSWORD="0261pskW" /usr/share/ovirt-engine/setup/dbutils/taskcleaner.sh -l /tmp/test.log -t ca18f523-56b0-4faa-a21c-504fb0a0cfe3
 This will remove the given Task!!! 
Caution, this operation should be used with care. Please contact support prior to running this command
Are you sure you want to proceed? [y/n]
y
-[ RECORD 1 ]-----+--
deleteasync_tasks | 0



Actual results:

# ls -l /tmp/test.log
ls: cannot access /tmp/test.log: No such file or directory


Expected results:

The /tmp/test.log file exists and contains at least what was printed to stdout

Comment 1 Jiri Belka 2013-11-20 16:05:26 UTC
ok is24. 

# PGPASSWORD=$PASSWORD /usr/share/ovirt-engine/setup/dbutils/taskcleaner.sh -l /tmp/test.log -t ca18f523-56b0-4faa-a21c-504fb0a0cfe3
 This will remove the given Task!!! 
Caution, this operation should be used with care. Please contact support prior to running this command
Are you sure you want to proceed? [y/n]
y
-[ RECORD 1 ]-----+--
deleteasync_tasks | 0

# ls -l /tmp/test.log
-rw-r--r--. 1 root root 181 Nov 20 17:04 /tmp/test.log

Comment 2 errata-xmlrpc 2014-01-21 17:39:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2014-0038.html