Bug 1569853

Summary: misleading info about db if misses uuid-ossp extension
Product: [oVirt] ovirt-engine Reporter: Jiri Belka <jbelka>
Component: Setup.EngineAssignee: Ido Rosenzwig <irosenzw>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: low    
Version: 4.2.3.2CC: bugs, ylavi
Target Milestone: ---Flags: sbonazzo: ovirt-4.3-
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: 2018-07-02 07:39:11 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 Jiri Belka 2018-04-20 06:38:57 UTC
Description of problem:

engine-setup
...
[ INFO  ] Stage: Setup validation
         
          PostgreSQL uuid-ossp extension is not installed in  the engine :database
 ^^^^^^^^ here, invalid db name
          Please run the following commands from psql prompt  with database administrator privileges and run  engine-setup again:
          DROP FUNCTION IF EXISTS uuid_generate_v1();
          CREATE EXTENSION "uuid-ossp";
          For DROP you should connect to the engine database,
            even though you use admin user.
[ ERROR ] Failed to execute stage 'Setup validation': uuid-ossp extension is not installed on database
[ INFO  ] Stage: Clean up
...

my dbs were: remotedb, remoteodb

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

How reproducible:
100%

Steps to Reproduce:
1. have 9.5 without uuid-ossp extension (i used remote db setup)
2. engine-setup from 4.1 to 4.2 (upgrade)
3.

Actual results:
misleading db name in the output

Expected results:
db name should be valid or db name should not be there at all

Additional info:

Comment 1 Yaniv Lavi 2018-07-02 07:39:11 UTC
Closing old bugs.
Please reopen if still relevant.
In any case patches are welcomed.