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
Verified in ovirt-log-collector-4.4.5-1.el8ev.noarch Tested with parameter --log-size=0 and logs were gathered
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