Bug 1029177 - taskcleaner.sh '-l' option does not produce logfile
Summary: taskcleaner.sh '-l' option does not produce logfile
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.3.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: 3.3.0
Assignee: Eli Mesika
QA Contact: Jiri Belka
URL:
Whiteboard: infra
Depends On:
Blocks: 3.3snap3
TreeView+ depends on / blocked
 
Reported: 2013-11-11 20:47 UTC by Derrick Ornelas
Modified: 2018-12-04 16:17 UTC (History)
5 users (show)

Fixed In Version: is24
Doc Type: Bug Fix
Doc Text:
The taskcleaner.sh -l option now correctly produces a log file.
Clone Of:
Environment:
Last Closed: 2014-01-21 17:39:19 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:0038 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.3.0 update 2014-01-21 22:03:06 UTC
oVirt gerrit 21215 0 None None None Never
oVirt gerrit 21331 0 None None None Never

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


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