Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-29574

Installer loads plugins from /opt/puppetlabs/puppet/cache/lib/, breaking PostgreSQL config updates and thus upgrades from 6.15 to 6.16 (max_connections is not updated)

XMLWordPrintable

    • 8
    • False
    • rubygem-kafo-7.6.1
    • Important
    • Satellite Rocket Sprint 1, Satellite Rocket Sprint 2
    • sat-rocket
    • Bug Fix
    • Hide
      .Satellite installer no longer uses local plugins

      Before this update, Puppet loaded plugins from the `/opt/puppetlabs/puppet/cache/lib/` directory. As a consequence, the Satellite installer used plugins that did not match the rest of the installer modules. This update changes how the installer uses Puppet and no longer loads plugins from `/opt/puppetlabs/puppet/cache/lib/`. As a result, the installer only uses plugins provided by the installer, and no other plugins that could be present on the system.
      Show
      .Satellite installer no longer uses local plugins Before this update, Puppet loaded plugins from the `/opt/puppetlabs/puppet/cache/lib/` directory. As a consequence, the Satellite installer used plugins that did not match the rest of the installer modules. This update changes how the installer uses Puppet and no longer loads plugins from `/opt/puppetlabs/puppet/cache/lib/`. As a result, the installer only uses plugins provided by the installer, and no other plugins that could be present on the system.
    • Done
    • Manual
    • Yes

      Issue: Upgrade from 6.15.4.2. to 6.16 fails due to the lack of connections to the database 

       

      If we start 6.15.4.2 upgrade with the max_connections to 1000 in the /var/lib/pgsql/postgresql.conf , During the upgrade to 6.16 the /var/lib/pgsql/data is backed up to /var/lib/pgsql/data-old and a new config is created in the /var/lib/pgsql/postgresql.conf but with max_connections = 100

      During that upgrade it will fail due to the lack of connections to the database even when you have specified it in /etc/foreman-installer/custom-hiera.yml:

      ---
      postgresql::server::config_entries:
        max_connections: 1000
        shared_buffers: 6GB
        work_mem: 8MB
        autovacuum_vacuum_cost_limit: 2000
      

      If we then change the max_connections to 1000 manually and restart the upgrade it will succeed.

              egolov@redhat.com Evgeni Golov
              rhn-support-amiagarw Amit Agarwal
              Giovanni Formisano
              Jameer Pathan Jameer Pathan
              Jan Fiala Jan Fiala
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: