Problem:
Foreman Ansible plugin fails to Install correctly
Expected outcome:
Install the Ansible module to be able to run roles
Foreman and Proxy versions:
3.1.1
Foreman and Proxy plugin versions:
3.1.1
Distribution and version:
CentOS 8 Stream
Other relevant data:
Looks like their is an issue with the DB doing a migrate but not a 100% sure. I have been able to Install other plugins in, it always fails on the Ansible plugin.
[root@foreman ~]# foreman-installer --enable-foreman-plugin-ansible --enable-foreman-proxy-plugin-ansible
2022-01-31 16:04:47 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-01-31 16:04:51 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-01-31 16:04:51 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-01-31 16:04:57 [NOTICE] [configure] Starting system configuration.
2022-01-31 16:05:06 [NOTICE] [configure] 250 configuration steps out of 1458 steps complete.
2022-01-31 16:05:07 [NOTICE] [configure] 500 configuration steps out of 1460 steps complete.
2022-01-31 16:05:07 [NOTICE] [configure] 750 configuration steps out of 1465 steps complete.
2022-01-31 16:05:19 [ERROR ] [configure] '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
2022-01-31 16:05:19 [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]
2022-01-31 16:05:24 [NOTICE] [configure] 1000 configuration steps out of 1467 steps complete.
2022-01-31 16:05:25 [NOTICE] [configure] 1250 configuration steps out of 1467 steps complete.
2022-01-31 16:05:27 [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/foreman.log