Actions
Bug #24521
closed
support custom postgresql versions
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
When upgrading form 1.18 to 1.19, the command foreman-installer --scenario katello --upgrade failed on postgresql step. I m almost sure it s because of the version of postgresql is 9.6 (from postgresql.org repo) and the systemd service name is not just “postgresql” but “postgresql-9.6”. There is a postgresql::globals::service_name: postgresql-9.6 in custom-hiera.yaml but it s probably only used by puppet.
[root@foremandev ~]# foreman-installer --scenario katello --upgrade Resetting puppet server version param... Upgrading, to monitor the progress on all related services, please do: foreman-tail | tee upgrade-$(date +%Y-%m-%d-%H%M).log Upgrade Step: stop_services... Redirecting to 'foreman-maintain service' Running Stop Services ================================================================================ Check if command is run as root user: [OK] -------------------------------------------------------------------------------- Stop applicable services: Stopping the following service(s): rh-mongodb34-mongod, qdrouterd, qpidd, squid, pulp_resource_manager, pulp_streamer, smart_proxy_dynflow_core, foreman-proxy, pulp_celerybeat, pulp_workers, tomcat, dynflowd, httpd, puppetserver \ All services stopped [OK] -------------------------------------------------------------------------------- katello-service stop finished successfully! Upgrade Step: start_postgresql... Redirecting to 'foreman-maintain service' Running Start Services ================================================================================ Check if command is run as root user: [OK] -------------------------------------------------------------------------------- Start applicable services: Starting the following service(s): [FAIL] No services found matching your parameters -------------------------------------------------------------------------------- Scenario [Start Services] failed. The following steps ended up in failing state: [service-start] Resolve the failed steps and rerun the command. In case the failures are false positives, use --whitelist="service-start" katello-service start --only postgresql failed! Check the output for error! Upgrade step start_postgresql failed. Check logs for more information. [root@foremandev ~]# systemctl list-units "postgres*" UNIT LOAD ACTIVE SUB DESCRIPTION postgresql-9.6.service loaded active running PostgreSQL 9.6 database server
By the way, I wonder if it s possible to use an external postgresql server, maybe this other scenario is not supported too.
Updated by Anonymous over 6 years ago
Actions