Bug 2040402 - unable to use --log-size=0 option
Summary: unable to use --log-size=0 option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-log-collector
Version: 4.4.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Lev Veyde
QA Contact: Barbora Dolezalova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-13 16:16 UTC by Steffen Froemer
Modified: 2022-08-11 08:27 UTC (History)
2 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-05-26 16:23:26 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-log-collector pull 9 0 None Merged ovirt-log-collector: Remove the usage of logs.log_days sos option 2022-01-31 11:48:16 UTC
Red Hat Issue Tracker RHV-44470 0 None None None 2022-01-13 16:23:06 UTC
Red Hat Product Errata RHSA-2022:4711 0 None None None 2022-05-26 16:23:39 UTC

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


Note You need to log in before you can comment on or make changes to this bug.