Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1862169

Summary: log-collector raises Error when getting PostgreSQL data but succeeds
Product: Red Hat Enterprise Virtualization Manager Reporter: Guilherme Santos <gdeolive>
Component: ovirt-log-collectorAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-30 23:45:40 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 Guilherme Santos 2020-07-30 15:52:18 UTC
Description of problem:
When running the log-collector, when it gets to the step of:"Gathering PostgreSQL the oVirt Engine database and log files from localhost" it returns the following error:
ERROR: Could not collect PostgreSQL information: [Errno 2] No such file or directory: '/tmp/logcollector-7gp51cfp/working/log-collector-data/sosreport-Z-Z-Z-Z-2020-07-30-wetccry.tar.xz.sha256' -> '/tmp/logcollector-7gp51cfp/working/log-collector-data/postgresql-sosreport-Z-Z-Z-Z-2020-07-30-wetccry.tar.xz.sha256'

However the workflow continues and log-collector prompts if user wants to continue to collect information about X hosts and replying with Y, it succeeds.

Version-Release number of selected component (if applicable):
ovirt-log-collector-4.4.2-1.el8ev.noarch
ovirt-engine-4.4.1.8-0.7.el8ev.noarch

How reproducible:
always

Steps to Reproduce:
1. # ovirt-log-collector

Actual results:
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.
Please provide the REST API password for the %admin@internal oVirt Engine user (CTRL+D to skip): 
WARNING: This ovirt-log-collector call will collect logs from all available hosts. This may take long time, depending on the size of your deployment
INFO: Gathering oVirt Engine information...
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
ERROR: Could not collect PostgreSQL information: [Errno 2] No such file or directory: '/tmp/logcollector-7gp51cfp/working/log-collector-data/sosreport-Z-Z-Z-Z-2020-07-30-wetccry.tar.xz.sha256' -> '/tmp/logcollector-7gp51cfp/working/log-collector-data/postgresql-sosreport-Z-Z-Z-Z-2020-07-30-wetccry.tar.xz.sha256'
About to collect information from 1 hypervisors. Continue? (Y/n): y
INFO: Data center 'Default' volume chains to be collected by None
INFO: Gathering information from selected hypervisors...
INFO: collecting information from Z.Z.Z.Z
INFO: finished collecting information from Z.Z.Z.Z
INFO: Creating compressed archive...
INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20200730174656.tar.xz
The sha256 for this file is 5f234050a8f74f3802f4933d9bedab4a and its size is 123.0M


Expected results:
No error

Additional info:
IP obfuscated (Z-Z-Z-Z/Z.Z.Z.Z)

Comment 1 Douglas Schilling Landgraf 2020-07-30 23:45:40 UTC

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