# foreman-installer --scenario katello --no-enable-puppet --no-enable-foreman-plugin-bootdisk --no-enable-foreman-proxy --foreman-initial-organization "cadence" --foreman-initial-location "sanjose" --foreman-initial-admin-username admin --foreman-initial-admin-password C@dence$123 --foreman-proxy-foreman-base-url=https://satellite.cadence.com --foreman-db-host sjprdsatdb01.cadence.com --foreman-db-password cadence --foreman-db-database foreman --foreman-db-manage false --katello-candlepin-db-host sjprdsatdb01.cadence.com --katello-candlepin-db-name candlepin --katello-candlepin-db-password cadence --katello-candlepin-manage-db false --foreman-proxy-content-pulpcore-manage-postgresql false --foreman-proxy-content-pulpcore-postgresql-host sjprdsatdb01.cadence.com --foreman-proxy-content-pulpcore-postgresql-db-name pulpcore --foreman-proxy-content-pulpcore-postgresql-password cadence --foreman-proxy-content-pulpcore-postgresql-user pulp --certs-server-cert "/root/foreman_cert/satellite_cadence_com_cert.pem" --certs-server-key "/root/foreman_cert/foreman_cert_key.pem" --certs-server-ca-cert "/root/foreman_cert/ca_cert_bundle.pem" --enable-foreman-plugin-memcache --enable-foreman-plugin-discovery --enable-foreman-plugin-default-hostgroup --enable-foreman-plugin-column-view --enable-foreman-compute-vmware
2022-12-21 00:02:36 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-12-21 00:02:38 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-12-21 00:02:38 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-12-21 00:02:44 [NOTICE] [configure] Starting system configuration.
2022-12-21 00:02:52 [NOTICE] [configure] 250 configuration steps out of 1242 steps complete.
2022-12-21 00:02:55 [NOTICE] [configure] 500 configuration steps out of 1244 steps complete.
2022-12-21 00:02:57 [NOTICE] [configure] 750 configuration steps out of 1249 steps complete.
2022-12-21 00:03:35 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]
2022-12-21 00:03:35 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]
2022-12-21 00:03:35 [NOTICE] [configure] 1000 configuration steps out of 1251 steps complete.
2022-12-21 00:03:42 [ERROR ] [configure] Systemd start for foreman-proxy failed!
2022-12-21 00:03:42 [ERROR ] [configure] journalctl log for foreman-proxy:
2022-12-21 00:03:42 [ERROR ] [configure] -- Logs begin at Fri 2022-12-16 14:13:29 EST, end at Wed 2022-12-21 00:03:42 EST. --
2022-12-21 00:03:42 [ERROR ] [configure] Dec 21 00:03:42 sjprdsatapp01 systemd[1]: Starting Foreman Proxy...
2022-12-21 00:03:42 [ERROR ] [configure] Dec 21 00:03:42 sjprdsatapp01 systemd[1]: foreman-proxy.service: Main process exited, code=exited, status=1/FAILURE
2022-12-21 00:03:42 [ERROR ] [configure] Dec 21 00:03:42 sjprdsatapp01 systemd[1]: foreman-proxy.service: Failed with result 'exit-code'.
2022-12-21 00:03:42 [ERROR ] [configure] Dec 21 00:03:42 sjprdsatapp01 systemd[1]: Failed to start Foreman Proxy.
2022-12-21 00:03:42 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Service/Service[foreman-proxy]/ensure: change from 'stopped' to 'running' failed: Systemd start for foreman-proxy failed!
2022-12-21 00:03:42 [ERROR ] [configure] journalctl log for foreman-proxy:
2022-12-21 00:03:42 [ERROR ] [configure] -- Logs begin at Fri 2022-12-16 14:13:29 EST, end at Wed 2022-12-21 00:03:42 EST. --
2022-12-21 00:03:42 [ERROR ] [configure] Dec 21 00:03:42 sjprdsatapp01 systemd[1]: Starting Foreman Proxy...
2022-12-21 00:03:42 [ERROR ] [configure] Dec 21 00:03:42 sjprdsatapp01 systemd[1]: foreman-proxy.service: Main process exited, code=exited, status=1/FAILURE
2022-12-21 00:03:42 [ERROR ] [configure] Dec 21 00:03:42 sjprdsatapp01 systemd[1]: foreman-proxy.service: Failed with result 'exit-code'.
2022-12-21 00:03:42 [ERROR ] [configure] Dec 21 00:03:42 sjprdsatapp01 systemd[1]: Failed to start Foreman Proxy.
2022-12-21 00:03:42 [NOTICE] [configure] 1250 configuration steps out of 1251 steps complete.
2022-12-21 00:03:44 [NOTICE] [configure] System configuration has finished.
There were errors detected during install.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.
The full log is at /var/log/foreman-installer/katello.log
Is this your first installation? I highly recommend to follow the docs and start with a simple installation and then later add additional plugins. If you follow the docs you wouldn’t break it to start with. --no-enable-foreman-proxy is definitively never mentioned in any katello server docs and it absolutely doesn’t make any sense, in particular if you even add foreman-proxy options, too.
Follow the docs. You’ll need the standard options, certs, and for the database. Add the rest later, if you really need, one by one.
And as the error message tells you at the end:
The log file should show why it cannot seed the database or what failed exactly.
Yes, that is expected. That’s one of the problems if you start installing with so many options: all your previous options are saved and remembered. Some configuration has already been applied. With –no-enable-foreman-plugin-default-hostgroup you only tell the installer not to use the default-hostgroup plugin configuration module, i.e. it does not consider it and doesn’t make any changes to that part, but any configuration already in the database is still there. --no-enable-... doesn’t undo everything the enable option did before.
The safest way would be to start over on a new system with a fresh os installation, only using the absolutely necessary configuration options and later add plugins one by one… Otherwise you make the whole thing overly complicated.
@evgeni Any timeline for the patch so that I can use ‘–enable-foreman-plugin-default-hostgroup’?
Also want to test couple of options.
–enable-foreman-plugin-memcache
–enable-foreman-plugin-discovery
Will it work if I just run below command or do I have to install again from scratch?
foreman-installer --scenario katello --enable-foreman-plugin-memcache --enable-foreman-plugin-discovery
There is no need to reinstall Foreman/Katello again. You can install plug-ins such as discovery later. See Configuring the Discovery Service in Provisioning Hosts guide.
I was able to install couple of plugins. installed them one by one.
–enable-foreman-plugin-discovery
–enable-foreman-plugin-default-hostgroup
However, getting errors when I ran below.
[root@sjprdsatapp01 ~]# foreman-installer --enable-foreman-plugin-memcache --enable-foreman-plugin-column-view
2023-01-19 03:15:36 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-01-19 03:15:39 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-01-19 03:15:39 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-01-19 03:15:44 [NOTICE] [configure] Starting system configuration.
2023-01-19 03:15:53 [NOTICE] [configure] 250 configuration steps out of 1230 steps complete.
2023-01-19 03:15:55 [NOTICE] [configure] 500 configuration steps out of 1232 steps complete.
2023-01-19 03:15:58 [NOTICE] [configure] 750 configuration steps out of 1238 steps complete.
2023-01-19 03:16:17 [NOTICE] [configure] 1000 configuration steps out of 1239 steps complete.
2023-01-19 03:16:24 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_host[foreman-sjprdsatapp01.cadence.com]: Could not evaluate: Error making GET request to Foreman at https://sjprdsatapp01.cadence.com/api/v2/hosts: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on sjprdsatapp01.cadence.com for detailed information
2023-01-19 03:16:24 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-sjprdsatapp01.cadence.com]: Could not evaluate: Error making GET request to Foreman at https://satellite.cadence.com/api/v2/hosts: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on satellite.cadence.com for detailed information
2023-01-19 03:16:24 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[sjprdsatapp01.cadence.com]: Could not evaluate: Error making GET request to Foreman at https://satellite.cadence.com/api/v2/smart_proxies: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on satellite.cadence.com for detailed information
2023-01-19 03:16:26 [NOTICE] [configure] System configuration has finished.
There were errors detected during install.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.
The full log is at /var/log/foreman-installer/katello.log
Attaching ‘/var/log/foreman/production.log’ for reference.
Appears to be issue with discovery service. Is there any way to roll back changes?
2023-01-18T03:30:03 [I|app|] Rails cache backend: File
2023-01-18T03:30:04 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2023-01-18T03:30:04 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2023-01-18T03:30:05 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2023-01-18T03:30:05 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2023-01-18T03:30:06 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2023-01-18T03:30:07 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2023-01-18T03:30:07 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2023-01-18T03:30:08 [W|app|] Scoped order is ignored, it's forced to be batch order.
2023-01-18T03:30:09 [W|app|] unknown class DiscoveryRule, ignoring
2023-01-18T03:30:09 [I|app|] Backtrace for 'unknown class DiscoveryRule, ignoring' error (NameError): uninitialized constant DiscoveryRule
[production.log.gz|attachment](upload://wtLOLszW2kepKNWB1xX1edfFjQl.gz) (214.4 KB)