Project

General

Custom queries

Profile

Actions

Bug #12792

closed

Datasources postinst SQL does not use Rudder connection parameters

Added by François ARMAND about 7 years ago. Updated about 3 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 #4

Updated by Nicolas CHARLES almost 7 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 #6

Updated by Nicolas CHARLES almost 7 years ago

  • Status changed from Discussion to Pending release

Applied in changeset commit:rudder-plugins|d13c648ecfcde87ffc97099d067fc3898aa4e5a5.

Actions #7

Updated by Vincent MEMBRÉ almost 7 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

Also available in: Atom PDF