RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1787119 - --all-logs does not collect all ovirt-hosted-engine-ha logs
Summary: --all-logs does not collect all ovirt-hosted-engine-ha logs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sos
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Pavel Moravec
QA Contact: Maros Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-31 09:28 UTC by Yedidyah Bar David
Modified: 2020-11-04 01:59 UTC (History)
7 users (show)

Fixed In Version: sos-3.9.1-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:57:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 1906 0 None closed [ovirt_hosted_engine] Collect rotated HA logs by default 2020-10-08 11:17:37 UTC
Red Hat Product Errata RHEA-2020:4534 0 None None None 2020-11-04 01:58:11 UTC

Description Yedidyah Bar David 2019-12-31 09:28:56 UTC
Description of problem:

It only collects all of /var/log/ovirt-hosted-engine-ha/*.log , but rotated logs of them look (by default) like:

# ls -ltr /var/log/ovirt-hosted-engine-ha/*
-rw-r--r--. 1 vdsm kvm 4498655 Dec 24 11:07 /var/log/ovirt-hosted-engine-ha/broker.log.2019-12-23
-rw-r--r--. 1 vdsm kvm 1870770 Dec 24 11:08 /var/log/ovirt-hosted-engine-ha/agent.log.2019-12-23
-rw-r--r--. 1 vdsm kvm 4499980 Dec 25 11:07 /var/log/ovirt-hosted-engine-ha/broker.log.2019-12-24
-rw-r--r--. 1 vdsm kvm 1870384 Dec 25 11:08 /var/log/ovirt-hosted-engine-ha/agent.log.2019-12-24
-rw-r--r--. 1 vdsm kvm 5179218 Dec 26 12:56 /var/log/ovirt-hosted-engine-ha/broker.log.2019-12-25
-rw-r--r--. 1 vdsm kvm 2238442 Dec 26 12:57 /var/log/ovirt-hosted-engine-ha/agent.log.2019-12-25
-rw-r--r--. 1 vdsm kvm 4527209 Dec 27 12:56 /var/log/ovirt-hosted-engine-ha/broker.log.2019-12-26
-rw-r--r--. 1 vdsm kvm 1871863 Dec 27 12:57 /var/log/ovirt-hosted-engine-ha/agent.log.2019-12-26
-rw-r--r--. 1 vdsm kvm 4527600 Dec 28 12:56 /var/log/ovirt-hosted-engine-ha/broker.log.2019-12-27
-rw-r--r--. 1 vdsm kvm 1871344 Dec 28 12:57 /var/log/ovirt-hosted-engine-ha/agent.log.2019-12-27
-rw-r--r--. 1 vdsm kvm 4527472 Dec 29 12:56 /var/log/ovirt-hosted-engine-ha/broker.log.2019-12-28
-rw-r--r--. 1 vdsm kvm 1871802 Dec 29 12:57 /var/log/ovirt-hosted-engine-ha/agent.log.2019-12-28
-rw-r--r--. 1 vdsm kvm 4526553 Dec 30 12:56 /var/log/ovirt-hosted-engine-ha/broker.log.2019-12-29
-rw-r--r--. 1 vdsm kvm 1871517 Dec 30 12:57 /var/log/ovirt-hosted-engine-ha/agent.log.2019-12-29
-rw-r--r--. 1 vdsm kvm 4236263 Dec 31 11:24 /var/log/ovirt-hosted-engine-ha/broker.log
-rw-r--r--. 1 vdsm kvm 1750131 Dec 31 11:24 /var/log/ovirt-hosted-engine-ha/agent.log

Version-Release number of selected component (if applicable):
All

How reproducible:
Always

Steps to Reproduce:
1. Run sosreport with --all-logs
2.
3.

Actual results:
Collects only agent.log and broker.log

Expected results:
Collects all rotated logs, agent.log* and broker.log*

Additional info:
I wonder if we should always collect all HA logs, regardless of '--all-logs', similarly to what vdsm does. It's quite annoying to get a sosreport with enough vdsm logs for a particular case but not enough HA logs...

Comment 1 Jake Hunsaker 2019-12-31 20:04:19 UTC
The rotated logs seem small enough to collect by default in my opinion. We could collect them all up to `--log-size` (25MB by default), leaving `--all-logs` to gather them without size restriction.

Proposal: https://github.com/sosreport/sos/pull/1906

Comment 2 Pavel Moravec 2020-01-01 08:18:51 UTC
Thaks for BZ and PR, scheduling to 8.3 so far.

Comment 10 errata-xmlrpc 2020-11-04 01:57:52 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 (sos bug fix and enhancement 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/RHEA-2020:4534


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