Bug 786751

Summary: Repeated run of the logcollector fails if previous one not cleared.
Product: [Retired] oVirt Reporter: Alex Lourie <alourie>
Component: ovirt-engine-logcollectorAssignee: Alex Lourie <alourie>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, iheim, kroberts, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-02 13:41:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alex Lourie 2012-02-02 10:17:06 UTC
Description of problem:

Repeated run of the logcollector after previous failed execution also fails due to leftovers in /tmp directory:

engine-log-collector collect
ERROR: the scratch directory for temporary storage of RHEVH reports is not
empty.
ERROR: It should be empty so that reports from a prior invocation of the log
collector are not collected again.
ERROR: The directory is: /tmp/logcollector/RHEVH-and-PostgreSQL-reports'

Additionally, it uses RHEVM names instead of oVirt-Engine.

Version-Release number of selected component (if applicable):
ovirt-engine-log-collector-3.0.0_0001-1.4.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1.engine-log-collector collect
2.
3.
  
Actual results:
Error, the execution stops.

Expected results:
Execution should warn about the problem, handle it and continue.

Additional info:

This bug is a split from bug #786143 to allow separate fix.