Bug 2107267 - ovirt-log-collector doesn't generate database dump
Summary: ovirt-log-collector doesn't generate database dump
Keywords:
Status: CLOSED DUPLICATE of bug 2081684
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-log-collector
Version: 4.5.0
Hardware: All
OS: Linux
high
urgent
Target Milestone: ovirt-4.5.2
: ---
Assignee: Lev Veyde
QA Contact: Barbora Dolezalova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-14 15:48 UTC by Ulhas Surse
Modified: 2022-09-08 10:24 UTC (History)
4 users (show)

Fixed In Version: ovirt-log-collector-4.4.6
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-28 12:13:10 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-47691 0 None None None 2022-07-14 15:53:25 UTC

Description Ulhas Surse 2022-07-14 15:48:16 UTC
Description of problem:

1] ovirt-log-collector --no-hypervisors doesn't generate database dump and have to generate again for the db separately. 

~~~~~~
# ovirt-log-collector --no-hypervisors --local-tmp=/root/LC
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.
INFO: Gathering oVirt Engine information...
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
ERROR: Could not collect PostgreSQL information: 'PostgresData' object has no attribute 'sos_version'. <<=========
INFO: Skipping hypervisor collection...
INFO: Creating compressed archive...
INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20220714204308.tar.xz
The sha256 for this file is cbe81068fa65f9cfab605f70057525890b4c362f7ce21590ed5904667ea48670 and its size is 108.4M
~~~~~~

Version-Release number of selected component (if applicable):
RHV 4.4 SP1

How reproducible:
Always

Steps to Reproduce:
1. Run ovirt-log-collector --no-hypervisors
2. Try to extract it
3. No db dump file in dir: 

[root@vm62 sosreport-LogCollector-20220714205446]# cd log-collector-data/
[root@vm62 log-collector-data]# ll
total 0
[root@vm62 log-collector-data]# pwd
/tmp/sosreport-LogCollector-20220714205446/log-collector-data


Actual results:
database dump not generated.

Expected results:
database dump to be generated. 

Additional info:

Comment 1 Milan Zamazal 2022-07-14 16:45:20 UTC
This is not a Virt bug. Not sure whether it should go to Infra or Integration, please choose appropriately.

Comment 3 Lev Veyde 2022-07-20 08:41:34 UTC
Can you please check the version of ovirt-log-collector you have on a system?

Comment 4 Lev Veyde 2022-07-21 10:31:44 UTC
The issue should not exist after ovirt-log-collector-4.4.5, so ovirt-log-collector-4.4.6 or the latest ovirt-log-collector-4.4.7 should not have this issue. (Which is basically a duplicate of BZ#2081684).

Comment 7 Guilherme Santos 2022-07-25 09:00:17 UTC
bdolezal could you pls take a look?

Comment 9 Ulhas Surse 2022-07-26 10:21:42 UTC
(In reply to Lev Veyde from comment #4)
> The issue should not exist after ovirt-log-collector-4.4.5, so
> ovirt-log-collector-4.4.6 or the latest ovirt-log-collector-4.4.7 should not
> have this issue. (Which is basically a duplicate of BZ#2081684).

Sorry for the late reply, it was ovirt-log-collector-4.4.5-1.el8ev.noarch when I reported the issue but now it can create dump with ovirt-log-collector-4.4.6 version. 
I think we can mark duplicate of 2081684 and close.

Comment 10 Barbora Dolezalova 2022-07-28 12:13:10 UTC

*** This bug has been marked as a duplicate of bug 2081684 ***


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