Project

General

Profile

Actions

Bug #37335

open

PostgreSQL parameters have no effect

Added by Michael Arlt 22 days ago. Updated 12 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
foreman-installer script
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:

Description

RHEL9 + Foreman 3.10 + Katello 4.12

Adjusting settings via postgresql::server::config_entries in /etc/foreman-installer/custom-hiera.yaml or parameter --tuning medium creates these settings in /etc/postgresql.conf instead of /var/lib/pgsql/data/postgresql.conf.
The parameter postgresql::server::postgresql_conf_path does not change anything.

The settings have no effect (during and after the installation) as one can see with:

psql -c 'show max_connections' # as user postgres -> 100

As a result the installation fails with 8 cores since there are too few connections possible.

With 6 cores it works but the performance for further tasks is really bad and the settings must manually be fixed.

foreman-installer \
  --scenario katello \
  --no-enable-puppet \
  --certs-server-cert ... \
  --certs-server-key ... \
  --certs-server-ca-cert ... \
  --foreman-initial-admin-email ... \
  --foreman-email-reply-address ... \
  --foreman-initial-location ... \
  --foreman-initial-organization ... \
  --skip-puppet-version-check \
  -v # or with additional --tuning medium
Actions #1

Updated by Michael Arlt 22 days ago

  • Description updated (diff)
Actions #2

Updated by Michael Arlt 12 days ago

  • Found in Releases 3.11.0 added
Actions #3

Updated by Michael Arlt 12 days ago

reproducible with Foreman 3.11.0 nightly:

$ rpm -qa|grep -i foreman
foreman-release-3.11.0-0.1.develop.el9.noarch
rubygem-foreman_maintain-1.6.4-1.el9.noarch
foreman-selinux-3.11.0-0.1.develop.20240226091422gita8664f9.el9.noarch
foreman-installer-3.11.0-0.1.develop.20240418031237gitd83807b.el9.noarch
foreman-installer-katello-3.11.0-0.1.develop.20240418031237gitd83807b.el9.noarch
rubygem-hammer_cli_foreman-3.11.0-0.1.pre.develop.20240326195053git0debe18.el9.noarch
rubygem-hammer_cli_foreman_tasks-0.0.21-1.fm3_11.el9.noarch
foreman-3.11.0-0.4.develop.20240418155255git42e7178.el9.noarch
rubygem-foreman-tasks-9.1.1-1.fm3_11.el9.noarch
rubygem-foreman_remote_execution-13.0.0-1.fm3_11.el9.noarch
foreman-postgresql-3.11.0-0.4.develop.20240418155255git42e7178.el9.noarch
foreman-service-3.11.0-0.4.develop.20240418155255git42e7178.el9.noarch
foreman-dynflow-sidekiq-3.11.0-0.4.develop.20240418155255git42e7178.el9.noarch
foreman-redis-3.11.0-0.4.develop.20240418155255git42e7178.el9.noarch
foreman-proxy-3.11.0-0.1.develop.20240402162104gite8fe59f.el9.noarch
foreman-cli-3.11.0-0.4.develop.20240418155255git42e7178.el9.noarch
rubygem-hammer_cli_foreman_remote_execution-0.3.0-1.el9.noarch

Actions

Also available in: Atom PDF