Project

General

Profile

Actions

Bug #5495

closed

upgrade on 2.11 does not end correctly

Added by Vincent MEMBRÉ over 9 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

An error occurs during rudder-server-root upgradewhen you upgrade between two 2.11 versions:

It occurs during the check of postgresql of rudder, and only in non distributed mode.

INFO: Checking PostgreSQL service status............PostgreSQL service verification failed after 10 tries. Aborting the migration.
Please restart the Rudder service, and start the migration script again:
# /etc/init.d/rudder-server-root restart
# /opt/rudder/bin/rudder-upgrade
dpkg: error processing rudder-webapp (--configure):
 subprocess installed post-installation script returned error exit status 1

command ran by upgrade process is:

psql -q -h server.rudder.local -p 5432 -U rudder -t -d rudder -c 'select count(ruleid) from rules'

This does not work because postgresql is configured to listen on localhost only on rudder server

We get that hostname because we get the hostname of the sql server from '/var/rudder/cfengine-community/inputs/rudder-server-roles.conf'

rudder-db:server.rudder.local

previously we lookedrudder-db:server.rudder.local for that value in /opt/rudder/etc/rudder-web.properties (which contain localhost).

My guess is that we should look if rudder-reports is installed on the local machine to define that variable and lese look to server-roles

Actions #1

Updated by Jonathan CLARKE over 9 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/477
Actions #2

Updated by Jonathan CLARKE over 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset packages:commit:763dbab0fa020afbec450a825cbc671f57e38b1d.

Actions #3

Updated by Benoît PECCATTE over 9 years ago

Applied in changeset packages:commit:fb14fb5f5ee5f99efd512217263a9b36bdd835c3.

Actions #4

Updated by Vincent MEMBRÉ over 9 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.3, which was released on the 25/09/2014.

Actions

Also available in: Atom PDF