Why does rhevm-log-collector ignore default or specified "local-tmp" location and creates output tarball at /tmp ?

Solution Unverified - Updated -

Issue

  • rhevm-log-collector ignores default value for "--local-tmp" option and creates output tarball at /tmp .
# man rhevm-log-collector
[...]
       --local-tmp=PATH

              Local directory where reports are copied (default=/tmp/logcollector).
  • rhevm-log-collector ignores specified value for "--local-tmp" option and creates output tarball at /tmp .
# rhevm-log-collector --local-tmp=/tmp/logcollector
WARNING: A deprecated configuration key has been found. Please replace the deprecated key, 'rhevm', with the new one 'engine' in /etc/ovirt-engine/logcollector.conf
INFO: /tmp/logcollector does not exist.  It will be created.    <--- Acknowledgment of desired/default location.
INFO: Gathering oVirt Engine information...
Please provide the password for the PostgreSQL user, postgres, to dump the engine PostgreSQL database instance (CTRL+D to skip): 
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip): 
About to collect information from 2 hypervisors. Continue? (Y/n): n
INFO: Aborting hypervisor collection...
Creating compressed archive...
INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20130625143213.tar.xz.  <--- tarball created at /tmp .
The MD5 for this file is 67d5fc7b0f2cd1fef083bdbfe1c92dbe and its size is 4.3M

Warning!

Setting --local-tmp=PATH will delete the directory after rhevm-log-collector command finishes. Please do not use it for existing directories as there is a chance of data loss.

Environment

  • Red Hat Enterprise Virtualization 3.2.
  • rhevm-log-collector version 3.2.2-3.el6ev.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content