Bug 1288197
Summary: | RHEV engine-log-collector with --local-tmp=PATH option deletes PATH once command is executed | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ameya Charekar <achareka> |
Component: | ovirt-log-collector | Assignee: | Rafael Martins <rmartins> |
Status: | CLOSED ERRATA | QA Contact: | Gonza <grafuls> |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | 3.5.4 | CC: | adevolder, bcholler, dfediuck, didi, gklein, lsurette, mkalinin, rbalakri, Rhev-m-bugs, sbonazzo, yeylon, ykaul, ylavi |
Target Milestone: | ovirt-3.6.3 | Keywords: | Rebase |
Target Release: | 3.6.3 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | rhevm-log-collector-3.6.1-1 | Doc Type: | Rebase: Bug Fixes and Enhancements |
Doc Text: |
The engine-log-collector command option --local-tmp has been updated. When using this option to point to a temporary directory, ensure the directory is empty before running the log collector. If the local temporary directory pointed by the --local-tmp option is not empty, the command will exit with an error.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-03-09 20:00:53 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ameya Charekar
2015-12-03 19:20:56 UTC
If this behavior is intentional, than the -h output should be more clear. Currently, it states as follows: --local-tmp=PATH directory to copy reports to locally. Please note that the local-tmp directory is used only for storing temporary reports gathered from hypervisors.(default is randomly generated like: /tmp/logcollector-PelSIq) If this directory will always be deleted, it should be clearly stated here that the directory will be removed upon completion, and that the directory should be empty. I think we should keep existing behavior, and: 1. Fix --help 2. Require the directory to be empty and abort otherwise Verified with: rhevm-log-collector-3.6.1-1.el6ev.noarch # engine-log-collector collect --local-tmp=./tmp This command will collect system configuration and diagnostic information from this system. The generated archive may contain data considered sensitive and its content should be reviewed by the originating organization before being passed to any third party. No changes will be made to system configuration. ERROR: ./tmp directory is not empty. Use the -h option to see usage. 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. https://rhn.redhat.com/errata/RHEA-2016-0392.html |