Bug 1294984

Summary: [RFE][TEXT] - add warning when running log collector without filters.
Product: [oVirt] ovirt-log-collector Reporter: Yaniv Lavi <ylavi>
Component: RFEsAssignee: Rafael Martins <rmartins>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kubica <pkubica>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.0CC: bugs, didi, grafuls, lveyde, melewis, pstehlik, rmartins, sbonazzo, stirabos
Target Milestone: ovirt-4.0.0-betaKeywords: EasyFix, FutureFeature, Improvement
Target Release: 4.0.0Flags: rule-engine: ovirt-4.0.0+
grafuls: testing_plan_complete-
ylavi: planning_ack+
sbonazzo: devel_ack+
pstehlik: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Previously, if ovirt-log-collector was called without filters in large scale environments hours of logs were collected and the output was large. Now, ovirt-log-collector shows a warning if called without any filters.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-01 12:27:02 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:
Bug Depends On: 1351988    
Bug Blocks: 971853    

Description Yaniv Lavi 2015-12-31 12:53:13 UTC
Description of problem:
Log collector doesn't require any filters. In a scale environment this can mean hours of log collection and big output size. We should warn the user when doing this.

Comment 1 Sandro Bonazzola 2016-05-02 10:01:46 UTC
Moving from 4.0 alpha to 4.0 beta since 4.0 alpha has been already released and bug is not ON_QA.

Comment 2 Petr Kubica 2016-07-26 06:42:52 UTC
Verified in ovirt-log-collector-4.0.0-1.el7ev.noarch

# ovirt-log-collector 
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.
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip): 
WARNING: This ovirt-log-collector call will collect logs from all available hosts. This may take long time, depending on the size of your deployment
INFO: Gathering oVirt Engine information...
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
About to collect information from 2 hypervisors. Continue? (Y/n): y
INFO: Gathering information from selected hypervisors...