Bug 2107267

Summary: ovirt-log-collector doesn't generate database dump
Product: Red Hat Enterprise Virtualization Manager Reporter: Ulhas Surse <usurse>
Component: ovirt-log-collectorAssignee: Lev Veyde <lveyde>
Status: CLOSED DUPLICATE QA Contact: Barbora Dolezalova <bdolezal>
Severity: urgent Docs Contact:
Priority: high    
Version: 4.5.0CC: bdolezal, dfodor, gdeolive, lsvaty
Target Milestone: ovirt-4.5.2Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-log-collector-4.4.6 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-28 12:13:10 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 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 ***