PostgreSQL version decreased in CentOs7

Bug #1523544 reported by Alexander Kislitsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Artem Silenkov

Bug Description

Current version of the PostgreSQL is 9.2: postgresql-server-9.2.14-1.el7_1.x86_64
On CentOs6 we had 9.3 version. It is critical to have the same DB version in CentOs7.

In the PostgreSQL yum repo 9.3 and 9.4 versions are available:

http://yum.postgresql.org/repopackages.php

Revision history for this message
Roman Vyalov (r0mikiam) wrote :

Why PostgreSQL version 9.3 is blocker for you ?

Changed in fuel:
assignee: Fuel build team (fuel-build) → MOS Packaging Team (mos-packaging)
tags: added: area-mos
removed: area-build
Changed in fuel:
milestone: none → 8.0
Revision history for this message
Dmitry Teselkin (teselkin-d) wrote :

Don't think it's critical unless there are features in 9.3 that are missed in 9.2 but needed for us.
Upgrade from mos7 to mos8 likely to be done in a way of data migration, so we could eliminate the difference between databases.

Revision history for this message
Dmitry Teselkin (teselkin-d) wrote :

Alexander, please provide any reason why it's critical.

Revision history for this message
Artem Silenkov (asilenkov) wrote :

Postgresql should be rebuild with 9.3. It is critical, downgrade is hardly possible in case of master node upgrades.

Changed in fuel:
assignee: MOS Packaging Team (mos-packaging) → Artem Silenkov (asilenkov)
Revision history for this message
Roman Vyalov (r0mikiam) wrote :
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to fuel-infra/jeepyb-config (master)

Related fix proposed to branch: master
Change author: Artem Silenkov <email address hidden>
Review: https://review.fuel-infra.org/14470

Changed in fuel:
status: New → In Progress
Revision history for this message
Sergii Golovatiuk (sgolovatiuk) wrote :

As far as I know we do not use functionality of 9.3. Also there won't be upgrade from CentOs 6 master nodes to CentOs 7. The original plan is to dump configuration, create a new master node on CentOS 7 and load configuration.

Revision history for this message
Artem Silenkov (asilenkov) wrote :

Still. It's not polite to downgrade software version in new product release version without very strong reasons. Let's rebuild.

Revision history for this message
Alexander Kislitsky (akislitsky) wrote :
Revision history for this message
Dmitry Teselkin (teselkin-d) wrote :
Revision history for this message
Artem Silenkov (asilenkov) wrote :

Let me remind that 9.2 was no tested, only 9.3 we have in Fuel 7.0 and fuel 6.1. We could bring a lot of regressions with version downgrade. I insist on repackaging to 9.3 at least.

tags: added: centos7
Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

Folks,

First of all we don't use JSONB [1], we use JSON [2] type. As Dmitry T. has pointed, the JSON type was introduced in PostgreSQL 9.2. That means, I see no reason why we need to upgrade PostgreSQL. Let's be as close as possible to distributive package, and do not maintain our own one.

[1] http://docs.sqlalchemy.org/en/latest/dialects/postgresql.html#sqlalchemy.dialects.postgresql.JSONB
[2] http://docs.sqlalchemy.org/en/latest/dialects/postgresql.html#sqlalchemy.dialects.postgresql.JSON

I believe we should move it to Invalid.

Changed in fuel:
status: In Progress → Invalid
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

Igor, operations with JSON introduced in PostgreSQL 9.2 definitely are not enough. There are no indexing and searching by JSON value content. As Artem S. pointed, 9.3 was in the Fuel 7.0 and Fuel 6.1 and was tested. Do we really want to introduce unexpected regression by introducing not tested old version of the DB? Is this risk is acceptable only for saving provided by default package?

I want to point, that current stable version of PostgeSQL is 9.4.

Changed in fuel:
status: Invalid → In Progress
tags: added: feature-vips
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to fuel-infra/jeepyb-config (master)

Reviewed: https://review.fuel-infra.org/14470
Submitter: Mateusz Matuszkowiak <email address hidden>
Branch: master

Commit: 7d41d8d5bd55e8e7705184751c9535f793267ce9
Author: Artem Silenkov <email address hidden>
Date: Fri Dec 11 10:41:12 2015

postgresql added for centos7 liberty 8.0

* packages/centos7/postgresql

Change-Id: I2afb1a4a62541286f7b895593aef55205c4ea7e2
Related-Bug: #1523544

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to packages/centos7/postgresql (8.0)

Related fix proposed to branch: 8.0
Change author: Artem Silenkov <email address hidden>
Review: https://review.fuel-infra.org/14623

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to packages/centos7/postgresql (8.0)

Reviewed: https://review.fuel-infra.org/14623
Submitter: Pkgs Jenkins <email address hidden>
Branch: 8.0

Commit: 70dbe36a5778352097f1c4c3a465b36a5a51567c
Author: Artem Silenkov <email address hidden>
Date: Fri Dec 11 19:51:11 2015

postgresql-server-9.3 packaged for centos7 liberty 8.0

* sources are taken from http://koji.fedoraproject.org/koji/packageinfo?packageID=655

Change-Id: I7580a400797f63bd642ff46e868e25f6c4a31187
Related-Bug: #1523544

Revision history for this message
Artem Silenkov (asilenkov) wrote :

Please reply if any objections. Package removal is manual procedure.

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Alexander Zatserklyany (zatserklyany) wrote :

[root@nailgun ~]# find / -type f -name postgresql*.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-upgrade-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-plperl-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-libs-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-test-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-plpython-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-devel-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-pltcl-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-docs-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-server-9.3.10-1.el7~mos2.x86_64.rpm
/var/www/nailgun/liberty-8.0/mos-centos/x86_64/Packages/postgresql-contrib-9.3.10-1.el7~mos2.x86_64.rpm
[root@nailgun ~]# cat /etc/fuel/version.yaml
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "461"

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.