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

Bug 1683038

Summary: [downstream clone - 4.2.9] 'postgresql-setup initdb' is obsolete
Product: Red Hat Enterprise Virtualization Manager Reporter: RHV bug bot <rhv-bugzilla-bot>
Component: ovirt-engineAssignee: Yedidyah Bar David <didi>
Status: CLOSED EOL QA Contact: Lucie Leistnerova <lleistne>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: bugs, lleistne, mperina, mtessun, ratamir, Rhev-m-bugs
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1678113 Environment:
Last Closed: 2019-02-26 08:58:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1678113    
Bug Blocks:    

Description RHV bug bot 2019-02-26 07:06:45 UTC
+++ This bug is an upstream to downstream clone. The original bug is: +++
+++   bug 1678113 +++
======================================================================

Description of problem:

In both current scl pg 9.5 and scl pg 10 (copying from engine-setup logs):


2019-02-17 02:47:42,455-0500 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine.provisioning.postgres plugin.execute:926 execute-output: ('/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup', 'initdb') stderr:
WARNING: using obsoleted argument syntax, try --help
WARNING: arguments transformed to: postgresql-setup --initdb --unit rh-postgresql95-postgresql
 * Initializing database in '/var/opt/rh/rh-postgresql95/lib/pgsql/data'
 * Initialized, logs are in /var/lib/pgsql/initdb_rh-postgresql95-postgresql.log


2019-02-03 12:26:35,558+0200 DEBUG otopi.plugins.ovirt_engine_setup.cinderlib.provisioning.postgres plugin.execute:926 execute-output: ('/opt/rh/rh-postgresql10/root/usr/bin/postgresql-setup', 'initdb') stderr:
WARNING: using obsoleted argument syntax, try --help
WARNING: arguments transformed to: postgresql-setup --initdb --unit rh-postgresql10-postgresql
 * Initializing database in '/var/opt/rh/rh-postgresql10/lib/pgsql/data'
 * Initialized, logs are in /var/lib/pgsql/initdb_rh-postgresql10-postgresql.log


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

Current scl pg (affects both 4.2 and 4.3/master)

How reproducible:

Always

Steps to Reproduce:
1. install and setup engine on clean machine
2.
3.

Actual results:

Warning above

Expected results:

No warning

Additional info:

Need to check when 'initdb' is going to be removed - then, current bug will be more urgent, better prepare beforehand...

(Originally by didi)

Comment 2 RHV bug bot 2019-02-26 07:06:47 UTC
Seems like the message was added almost 5 years ago [1], perhaps it's enough to fix in 4.3.

[1] https://github.com/devexp-db/postgresql-setup/commit/1a206187ca761c75e13989eab92430df689e1eca

(Originally by didi)

Comment 3 RHV bug bot 2019-02-26 07:06:49 UTC
(In reply to Yedidyah Bar David from comment #1)
> Seems like the message was added almost 5 years ago [1], perhaps it's enough
> to fix in 4.3.
> 
> [1]
> https://github.com/devexp-db/postgresql-setup/commit/
> 1a206187ca761c75e13989eab92430df689e1eca

I agree, I'd fix only in 4.3

(Originally by Martin Perina)

Comment 4 Yedidyah Bar David 2019-02-26 08:58:38 UTC
(In reply to RHV Bugzilla Automation and Verification Bot from comment #3)
> (In reply to Yedidyah Bar David from comment #1)
> > Seems like the message was added almost 5 years ago [1], perhaps it's enough
> > to fix in 4.3.
> > 
> > [1]
> > https://github.com/devexp-db/postgresql-setup/commit/
> > 1a206187ca761c75e13989eab92430df689e1eca
> 
> I agree, I'd fix only in 4.3
> 
> (Originally by Martin Perina)

OK, closing current (for 4.2).