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
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
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