Project

General

Profile

Actions

Bug #12792

closed

Datasources postinst SQL does not use Rudder connection parameters

Added by François ARMAND almost 6 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Datasource plugin has a script which create the needed table in `rudder` database. But the script doesn't use postgresql conection parameters and assume a local database, leading to:

./rudder-pkg install-file /tmp/rudder-plugin-datasources-4.3-1.3-SNAPSHOT.rpkg
Installing /tmp/rudder-plugin-datasources-4.3-1.3-SNAPSHOT.rpkg
...
psql: could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?

It can be workaround by executing by hand:

psql -U rudder -h pg_host_server_ip -p pg_port_default_is5432 -d rudder -f /opt/rudder/share/plugins/datasources/datasources-schema.sql

Subtasks 1 (0 open1 closed)

Bug #12925: SQL postinst is too verbose in datasourceReleasedNicolas CHARLESActions
Actions #1

Updated by Benoît PECCATTE almost 6 years ago

  • Assignee set to Benoît PECCATTE
Actions #2

Updated by Vincent MEMBRÉ almost 6 years ago

  • Assignee changed from Benoît PECCATTE to Nicolas CHARLES
Actions #3

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from New to In progress
Actions #4

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-plugins/pull/51
Actions #5

Updated by Rudder Quality Assistant almost 6 years ago

  • Status changed from Pending technical review to Discussion
  • Assignee changed from Alexis Mousset to Nicolas CHARLES
Actions #6

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from Discussion to Pending release

Applied in changeset commit:rudder-plugins|d13c648ecfcde87ffc97099d067fc3898aa4e5a5.

Actions #7

Updated by Vincent MEMBRÉ almost 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.13, 4.2.7 and 4.3.3 which were released today.

Actions #8

Updated by Vincent MEMBRÉ over 5 years ago

  • Project changed from Rudder to 54
  • Category deleted (71)
  • Target version changed from 4.1.13 to 432
  • Priority changed from 65 to 64
Actions #9

Updated by Vincent MEMBRÉ over 5 years ago

  • Project changed from 54 to Datasources
  • Target version changed from 432 to 4.3-1.4
  • Priority changed from 64 to 62
Actions #10

Updated by Alexis Mousset almost 2 years ago

  • Priority changed from 62 to 0
Actions

Also available in: Atom PDF