Foreman instllation

can you help us me to move forward about my instllation

[root@boldforeman yum.repos.d]# foreman-installer --scenario katello --foreman-initial-admin-username admin --foreman-initial-admin-password redhat --force
2023-03-01 06:15:58 [NOTICE] [scenario_manager] Scenario /etc/foreman-installer/scenarios.d/katello.yaml was selected
2023-03-01 06:15:58 [NOTICE] [root] Due to scenario change the configuration (/etc/foreman-installer/scenarios.d/katello.yaml) was updated with /etc/foreman-installer/scenarios.d/foreman.yaml and reloaded.
2023-03-01 06:15:58 [WARN ] [boot] Unsetting environment variable ‘http_proxy’ for the duration of the install.
2023-03-01 06:15:58 [WARN ] [boot] Unsetting environment variable ‘https_proxy’ for the duration of the install.
2023-03-01 06:15:58 [NOTICE] [root] Loading installer configuration. This will take some time.
Traceback (most recent call last):
18: from /usr/sbin/foreman-installer:8:in <main>' 17: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:50:in run’
16: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in run' 15: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in new’
14: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:157:in initialize' 13: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:316:in set_parameters’
12: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/scenario_manager.rb:217:in load_and_setup_configuration' 11: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:268:in preset_defaults_from_puppet’
10: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:258:in params' 9: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:132:in modules’
8: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:396:in register_data_types' 7: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:396:in each’
6: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:397:in block in register_data_types' 5: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:397:in each’
4: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:398:in block (2 levels) in register_data_types' 3: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/data_type_parser.rb:20:in register’
2: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/data_type_parser.rb:20:in each' 1: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/data_type_parser.rb:22:in block in register’
/opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/data_type.rb:31:in `register_type’: Data type Apache::LogLevel is already registered, cannot be re-registered (ArgumentError)
[root@boldforeman yum.repos.d]#

You cannot change the scenario. You have first installed foreman without katello. You cannot add katello later. You have to reinstall the whole server and start from the beginning. Adding (or removing) the katello plugin to an existing foreman installation is not supported.

1 Like

thank you for your information. i will follow your suggestion.

we installed Forman installation completed successfully.

Now we required to install one virtual server with using this foreman server. so please suggest me next steps to move forward.

]# foreman-installer --scenario katello --foreman-initial-admin-username admin --foreman-initial-admin-password redhat 2023-03-01 10:20:03 [WARN ] [boot] Unsetting environment variable ‘http_proxy’ for the duration of the install.
2023-03-01 10:20:03 [WARN ] [boot] Unsetting environment variable ‘https_proxy’ for the duration of the install.
2023-03-01 10:20:03 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-03-01 10:20:06 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-03-01 10:20:06 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-03-01 10:20:11 [NOTICE] [configure] Starting system configuration.
2023-03-01 10:20:18 [NOTICE] [configure] 250 configuration steps out of 1361 steps complete.
2023-03-01 10:20:23 [NOTICE] [configure] 500 configuration steps out of 1363 steps complete.
2023-03-01 10:20:26 [NOTICE] [configure] 750 configuration steps out of 1368 steps complete.
2023-03-01 10:20:26 [NOTICE] [configure] 1000 configuration steps out of 1372 steps complete.
2023-03-01 10:20:56 [NOTICE] [configure] 1250 configuration steps out of 1372 steps complete.
2023-03-01 10:21:10 [NOTICE] [configure] System configuration has finished.
Executing: foreman-rake upgrade:run

Upgrade Step 1/8: katello:correct_repositories. This may take a long while.

Upgrade Step 2/8: katello:clean_backend_objects. This may take a long while.
0 orphaned consumer id(s) found in candlepin.
Candlepin orphaned consumers:

Upgrade Step 3/8: katello:upgrades:4.0:remove_ostree_puppet_content. =============================================
Upgrade Step 4/8: katello:upgrades:4.1:sync_noarch_content. =============================================
Upgrade Step 5/8: katello:upgrades:4.1:fix_invalid_pools. I, [2023-03-01T10:21:24.703961 #26745] INFO – : Corrected 0 invalid pools
I, [2023-03-01T10:21:24.704019 #26745] INFO – : Removed 0 orphaned pools

Upgrade Step 6/8: katello:upgrades:4.1:reupdate_content_import_export_perms. =============================================
Upgrade Step 7/8: katello:upgrades:4.2:remove_checksum_values. =============================================
Upgrade Step 8/8: katello:upgrades:4.4:publish_import_cvvs. Success!

]#