Bug 2040402

Summary: unable to use --log-size=0 option
Product: Red Hat Enterprise Virtualization Manager Reporter: Steffen Froemer <sfroemer>
Component: ovirt-log-collectorAssignee: Lev Veyde <lveyde>
Status: CLOSED ERRATA QA Contact: Barbora Dolezalova <bdolezal>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.9CC: emarcus, gdeolive
Target Milestone: ovirt-4.5.0Keywords: Regression, ZStream
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-log-collector-4.4.5-1.el8ev Doc Type: Bug Fix
Doc Text:
The log_days option of the sos logs plugin has been removed. As a result, the command that used this option began to fail. In this release, the use of the option has been removed, and the program now functions as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-26 16:23:26 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 Steffen Froemer 2022-01-13 16:16:16 UTC
Description of problem:
Trying to use the argument --log-size=0, the log-collector will not be gathered.

Version-Release number of selected component (if applicable):
ovirt-log-collector-4.4.4-1.el8ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. /usr/bin/ovirt-log-collector --log-size=0


Actual results:
Use the -h option to see usage.

Expected results:


Additional info:
DEBUG: STDOUT(b'Please note the \'sosreport\' command has been deprecated in favor of the new \'sos\' command, E.G. \'sos report\'.\nRedirecting to \'sos report --batch --build --tmp-dir=/tmp/logcollector-br64e47o/working -o ovirt,rpm,libvirt,networking,hardware,process,yum,filesys,devicemapper,selinux,kernel,apache,memory,block,java,lvm2,md,pci,processor,scsi,chrony,systemd,firewalld,openvswitch,collectd,ovirt_imageio,date,host,ovn_central,grafana,ovirt_provider_ovn,logs -k rpm.rpmva=off -k apache.log=True -k dnf.history-info=on -k dnf.history=on -k ovirt.sensitive_keys=:ENGINE_DB_PASSWORD:DWH_DB_PASSWORD:CINDERLIB_DB_PASSWORD:ENGINE_PKI_TRUST_STORE_PASSWORD:ENGINE_PKI_ENGINE_STORE_PASSWORD:ENGINE_EXTERNAL_PROVIDERS_TRUST_STORE_PASSWORD:ENGINE_HTTPS_PKI_TRUST_STORE_PASSWORD:ENGINE_SSO_CLIENT_SECRET:DWH_DB_PASSWORD:ENGINE_DB_PASSWORD -k logs.log_days=1 --log-size=0 --all-logs\'

sosreport (version 4.0)

no such option "log_days" for plugin (logs)
')
DEBUG: STDERR(b'')
Use the -h option to see usage.
DEBUG: Configuration:
DEBUG: command: collect
DEBUG: Traceback (most recent call last):
DEBUG:   File "/usr/lib/python3.6/site-packages/ovirt_log_collector/__main__.py", line 2124, in <module>
DEBUG:     collector.get_engine_data()
DEBUG:   File "/usr/lib/python3.6/site-packages/ovirt_log_collector/__main__.py", line 1673, in get_engine_data
DEBUG:     collector.sosreport()
DEBUG:   File "/usr/lib/python3.6/site-packages/ovirt_log_collector/__main__.py", line 1103, in sosreport
DEBUG:     --tmp-dir='%(local_working_dir)s' -o %(reports)s %(sos_options)s"
DEBUG:   File "/usr/lib/python3.6/site-packages/ovirt_log_collector/__main__.py", line 280, in call
DEBUG:     raise Exception(stderr.decode("utf-8"))
DEBUG: Exception

Comment 6 Barbora Dolezalova 2022-05-04 11:27:43 UTC
Verified in ovirt-log-collector-4.4.5-1.el8ev.noarch
Tested with parameter --log-size=0 and logs were gathered

Comment 11 errata-xmlrpc 2022-05-26 16:23:26 UTC
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 (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.0] security update), 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://access.redhat.com/errata/RHSA-2022:4711