Bug 1678113 - 'postgresql-setup initdb' is obsolete
Summary: 'postgresql-setup initdb' is obsolete
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Setup.EngineCommon
Version: ---
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.3.2
: ---
Assignee: Yedidyah Bar David
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks: 1683038
TreeView+ depends on / blocked
 
Reported: 2019-02-18 07:02 UTC by Yedidyah Bar David
Modified: 2019-03-19 10:03 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.3.2
Clone Of:
: 1683038 (view as bug list)
Environment:
Last Closed: 2019-03-19 10:03:19 UTC
oVirt Team: Integration
Embargoed:
pm-rhel: ovirt-4.3+
pm-rhel: blocker+
mtessun: planning_ack+
sbonazzo: devel_ack+
lleistne: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 98009 0 master MERGED packaging: setup: Use 'postgresql-setup --initdb' 2019-02-25 08:49:28 UTC
oVirt gerrit 98021 0 ovirt-engine-4.2 ABANDONED packaging: setup: Use 'postgresql-setup --initdb' 2019-02-26 08:59:04 UTC

Description Yedidyah Bar David 2019-02-18 07:02:29 UTC
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...

Comment 1 Yedidyah Bar David 2019-02-24 10:11:58 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

Comment 2 Martin Perina 2019-02-25 13:17:41 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

Comment 4 Lucie Leistnerova 2019-03-06 17:15:25 UTC
No initdb obsolete warning in setup log for engine and also separate dwh. Installation successful.

verified in ovirt-engine-setup-4.3.2-0.1.el7.noarch

Comment 5 Sandro Bonazzola 2019-03-19 10:03:19 UTC
This bugzilla is included in oVirt 4.3.2 release, published on March 19th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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