Problem: Getting the following errors, when trying to enable foreman-plugin-ansible and foreman-proxy-plugin-ansible.
Expected outcome: foreman-plugin-ansible and foreman-proxy-plugin-ansible enabled without errors.
Foreman and Proxy versions: foreman-3.6.1 and foreman-proxy-3.6.1
Foreman and Proxy plugin versions: foreman-3.6.1 and foreman-proxy-3.6.1
Distribution and version: RHEL 8.7
Other relevant data:
I followed the Foreman :: Plugin Manuals
Following is what I am getting when I run foreman-installer --enable-foreman-plugin-ansible --enable-foreman-proxy-plugin-ansible…
[root@]# foreman-installer --enable-foreman-plugin-ansible --enable-foreman-proxy-plugin-ansible
2023-04-19 17:59:07 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-04-19 17:59:10 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-04-19 17:59:10 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-04-19 17:59:13 [NOTICE] [configure] Starting system configuration.
2023-04-19 17:59:24 [NOTICE] [configure] 250 configuration steps out of 1491 steps complete.
2023-04-19 17:59:28 [NOTICE] [configure] 500 configuration steps out of 1493 steps complete.
2023-04-19 17:59:30 [NOTICE] [configure] 750 configuration steps out of 1498 steps complete.
2023-04-19 17:59:31 [NOTICE] [configure] 1000 configuration steps out of 1502 steps complete.
2023-04-19 17:59:52 [ERROR ] [configure] ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2023-04-19 17:59:52 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from ‘notrun’ to [‘0’] failed: ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2023-04-19 18:00:04 [NOTICE] [configure] 1250 configuration steps out of 1502 steps complete.
2023-04-19 18:00:10 [NOTICE] [configure] 1500 configuration steps out of 1502 steps complete.
2023-04-19 18:00:12 [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
Please help, this is a new installation and the installation of Katello was successful, but the foreman-plugin-ansible and foreman-proxy-plugin-ansible are failing.
Thanks @evgeni! I’m working on fixing that bug. @Balaji_Arun_Kumar_Sa As Evgeni mentioned, without the log file we can’t know for sure if that’s the issue here.
The foreman version 3.5 and Katello version 4.7 worked just fine for the command “foreman-installer --enable-foreman-plugin-ansible --enable-foreman-proxy-plugin-ansible”, but when I tried to run the command “foreman-installer --enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-ssh” it errors with “ERROR: Unrecognised option ‘–enable-foreman-proxy-plugin-remote-execution-ssh’”.
When I checked foreman-installer help, I see the following…
[root@ ~]# foreman-installer --help|grep remote-execution
–[no-]enable-foreman-cli-remote-execution Enable ‘foreman_cli_remote_execution’ puppet module (default: true)
–[no-]enable-foreman-plugin-remote-execution Enable ‘foreman_plugin_remote_execution’ puppet module (default: true)
–[no-]enable-foreman-plugin-remote-execution-cockpit Enable ‘foreman_plugin_remote_execution_cockpit’ puppet module (default: false)
–[no-]enable-foreman-proxy-plugin-remote-execution-script Enable ‘foreman_proxy_plugin_remote_execution_script’ puppet module (default: false)
–foreman-plugin-remote-execution-cockpit-origins Specify additional Cockpit Origins to configure cockpit.conf.
–foreman-proxy-plugin-remote-execution-script-cockpit-integration Enables/disables Cockpit integration (current: true)
–foreman-proxy-plugin-remote-execution-script-mode Operation Mode of the plugin. (current: “ssh”)
Is the “–foreman-proxy-plugin-remote-execution-script-mode” a replacement for “–foreman-proxy-plugin-remote-execution-ssh”?