Installation failed - uninitialized constant `ForemanTasks::Lock::OWNER_LOCK_NAME`

Hey All,

Problem:

I just made a fresh install of foreman 2.4, I try to do the same setup as I made in the previous version foreman 2.3 and run the command as below.

foreman-installer \
  --enable-foreman-compute-ovirt \
  --enable-foreman-plugin-{remote-execution,ansible} \
  --enable-foreman-proxy-plugin-{ansible,remote-execution-ssh}

It failed with this error:

2021-03-27 03:28:13 [NOTICE] [root] Loading default values from puppet modules...
2021-03-27 03:28:17 [NOTICE] [root] ... finished
2021-03-27 03:28:19 [NOTICE] [root] Running validation checks
2021-03-27 03:28:23 [NOTICE] [configure] Starting system configuration.
  The total number of configuration tasks may increase during the run.
  Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-03-27 03:28:33 [NOTICE] [configure] 100 out of 1562 done.
2021-03-27 03:28:33 [NOTICE] [configure] 200 out of 1562 done.
2021-03-27 03:28:34 [NOTICE] [configure] 300 out of 1562 done.
2021-03-27 03:28:34 [NOTICE] [configure] 400 out of 1562 done.
2021-03-27 03:28:34 [NOTICE] [configure] 500 out of 1564 done.
2021-03-27 03:28:34 [NOTICE] [configure] 600 out of 1564 done.
2021-03-27 03:28:34 [NOTICE] [configure] 700 out of 1566 done.
2021-03-27 03:28:35 [NOTICE] [configure] 800 out of 1572 done.
2021-03-27 03:28:35 [NOTICE] [configure] 1000 out of 1576 done.
2021-03-27 03:29:00 [ERROR ] [configure] '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
2021-03-27 03:29:00 [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]
2021-03-27 03:29:12 [NOTICE] [configure] 1100 out of 1576 done.
2021-03-27 03:29:12 [NOTICE] [configure] 1200 out of 1576 done.
2021-03-27 03:29:12 [NOTICE] [configure] 1300 out of 1576 done.
2021-03-27 03:29:12 [NOTICE] [configure] 1400 out of 1576 done.
2021-03-27 03:29:12 [NOTICE] [configure] 1500 out of 1576 done.
2021-03-27 03:29:15 [NOTICE] [configure] System configuration has finished.

After seeing that I try to run foreman-rake command to see what is going on:

foreman-rake db:migrate --trace

So this is the output

** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
** Execute db:load_config
** Invoke plugin:refresh_migrations (first_time)
** Invoke environment 
** Execute plugin:refresh_migrations
** Execute db:migrate
== 20180927120509 AddUserId: migrating ========================================
-- add_reference(:foreman_tasks_tasks, :user, {:type=>:integer, :foreign_key=>true})
   -> 0.0484s
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

uninitialized constant ForemanTasks::Lock::OWNER_LOCK_NAME
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.0.0/db/migrate/20180927120509_add_user_id.foreman_tasks.rb:40:in `user_locks'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.0.0/db/migrate/20180927120509_add_user_id.foreman_tasks.rb:7:in `block in up'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.0.0/db/migrate/20180927120509_add_user_id.foreman_tasks.rb:6:in `up'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:831:in `exec_migration'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:812:in `block (2 levels) in migrate'
/opt/rh/rh-ruby25/root/usr/share/ruby/benchmark.rb:293:in `measure'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:811:in `block in migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:in `with_connection'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:810:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1002:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1310:in `block in execute_migration_in_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1361:in `block in ddl_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `block in transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/transactions.rb:212:in `transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1361:in `ddl_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1309:in `execute_migration_in_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1281:in `block in migrate_without_lock'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1280:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1280:in `migrate_without_lock'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1229:in `block in migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1382:in `with_advisory_lock'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1229:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1061:in `up'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1036:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/tasks/database_tasks.rb:238:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:86:in `block (3 levels) in <top (required)>'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:84:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:84:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `block in execute'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `each'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `execute'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:195:in `block in invoke_with_call_chain'
/opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in `mon_synchronize'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:181:in `invoke'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:160:in `invoke_task'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `each'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `block in top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:125:in `run_with_threads'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:110:in `top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:83:in `block in run'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:80:in `run'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/opt/rh/rh-ruby25/root/usr/bin/rake:23:in `load'
/opt/rh/rh-ruby25/root/usr/bin/rake:23:in `<main>'

Caused by:
NameError: uninitialized constant ForemanTasks::Lock::OWNER_LOCK_NAME
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.0.0/db/migrate/20180927120509_add_user_id.foreman_tasks.rb:40:in `user_locks'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.0.0/db/migrate/20180927120509_add_user_id.foreman_tasks.rb:7:in `block in up'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.0.0/db/migrate/20180927120509_add_user_id.foreman_tasks.rb:6:in `up'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:831:in `exec_migration'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:812:in `block (2 levels) in migrate'
/opt/rh/rh-ruby25/root/usr/share/ruby/benchmark.rb:293:in `measure'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:811:in `block in migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:in `with_connection'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:810:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1002:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1310:in `block in execute_migration_in_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1361:in `block in ddl_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `block in transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/transactions.rb:212:in `transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1361:in `ddl_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1309:in `execute_migration_in_transaction'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1281:in `block in migrate_without_lock'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1280:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1280:in `migrate_without_lock'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1229:in `block in migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1382:in `with_advisory_lock'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1229:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1061:in `up'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:1036:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/tasks/database_tasks.rb:238:in `migrate'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:86:in `block (3 levels) in <top (required)>'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:84:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:84:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `block in execute'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `each'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `execute'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:195:in `block in invoke_with_call_chain'
/opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in `mon_synchronize'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:181:in `invoke'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:160:in `invoke_task'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `each'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `block in top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:125:in `run_with_threads'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:110:in `top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:83:in `block in run'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:80:in `run'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/opt/rh/rh-ruby25/root/usr/bin/rake:23:in `load'
/opt/rh/rh-ruby25/root/usr/bin/rake:23:in `<main>'
Tasks: TOP => db:migrate

Logs in /var/log/foreman-installer/foreman.log

2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/31-cdn_setting.rb returned nil
2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/34-pulpcore_directory_layout.rb returned nil
2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/99-post_install_message.rb returned nil
2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/99-version_locking.rb returned nil
2021-03-27 03:44:36 [INFO  ] [post] All hooks in group post finished
2021-03-27 03:44:36 [DEBUG ] [root] Exit with status code: 4 (signal was 4)
2021-03-27 03:44:36 [DEBUG ] [root] Cleaning /tmp/kafo_installation20210327-27216-m50q9k
2021-03-27 03:44:36 [DEBUG ] [root] Cleaning /tmp/kafo_installation20210327-27216-s2zvkq
2021-03-27 03:44:36 [DEBUG ] [root] Cleaning /tmp/default_values.yaml
2021-03-27 03:44:36 [DEBUG ] [root] Installer finished in 58.000292391 seconds
[root@foreman ~]# tail -20 /var/log/foreman-installer/foreman.log 
2021-03-27 03:44:34 [DEBUG ] [configure] /File[/etc/puppetlabs/puppet/ssl/public_keys/foreman.zyzyx.virtnet.pem]: Adding autorequire relationship with File[/etc/puppetlabs/puppet/ssl/public_keys]
2021-03-27 03:44:34 [DEBUG ] [configure] /File[/etc/puppetlabs/puppet/ssl/certs/ca.pem]: Adding autorequire relationship with File[/etc/puppetlabs/puppet/ssl/certs]
2021-03-27 03:44:34 [DEBUG ] [configure] /File[/etc/puppetlabs/puppet/ssl/crl.pem]: Adding autorequire relationship with File[/etc/puppetlabs/puppet/ssl]
2021-03-27 03:44:34 [DEBUG ] [configure] /File[/opt/puppetlabs/puppet/cache/facts.d]: Adding autorequire relationship with File[/opt/puppetlabs/puppet/cache]
2021-03-27 03:44:34 [DEBUG ] [configure] /File[/opt/puppetlabs/puppet/cache/locales]: Adding autorequire relationship with File[/opt/puppetlabs/puppet/cache]
2021-03-27 03:44:34 [DEBUG ] [configure] Finishing transaction 50562080
2021-03-27 03:44:34 [DEBUG ] [configure] Received report to process from foreman.zyzyx.virtnet
2021-03-27 03:44:36 [NOTICE] [configure] System configuration has finished.
2021-03-27 03:44:36 [INFO  ] [post] Executing hooks in group post
2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/30-upgrade.rb returned nil
2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/31-cdn_setting.rb returned nil
2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/34-pulpcore_directory_layout.rb returned nil
2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/99-post_install_message.rb returned nil
2021-03-27 03:44:36 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/99-version_locking.rb returned nil
2021-03-27 03:44:36 [INFO  ] [post] All hooks in group post finished
2021-03-27 03:44:36 [DEBUG ] [root] Exit with status code: 4 (signal was 4)
2021-03-27 03:44:36 [DEBUG ] [root] Cleaning /tmp/kafo_installation20210327-27216-m50q9k
2021-03-27 03:44:36 [DEBUG ] [root] Cleaning /tmp/kafo_installation20210327-27216-s2zvkq
2021-03-27 03:44:36 [DEBUG ] [root] Cleaning /tmp/default_values.yaml
2021-03-27 03:44:36 [DEBUG ] [root] Installer finished in 58.000292391 seconds

Expected outcome:
compute resource provider installation successful.

Foreman and Proxy versions:
2.4.0

Distribution and version:
CentOS Linux release 7.9.2009 (Core)

This is my first time posting in this forum. Apologize if i messed up the formatting. do let me know. I will improve it next time.

Other relevant data:

This looks like actually an issue with Foreman @tasks plugin, perhaps one of its developers can take a look?

1 Like

Tracked as Bug #32094: Mop up after split from locks to locks and links - foreman-tasks - Foreman , already fixed in master, not released yet.

This should unblock you until it goes out in a proper release

sed -ibak 's/ForemanTasks::Lock::OWNER_LOCK_NAME/:task_owner/' \
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.0.0/db/migrate/20180927120509_add_user_id.foreman_tasks.rb
2 Likes

It’s work Thanks @tbrisker and @aruzicka.

[root@foreman ~]# foreman-installer   --enable-foreman-compute-ovirt ;
2021-03-29 19:13:50 [NOTICE] [root] Loading default values from puppet modules...
2021-03-29 19:13:55 [NOTICE] [root] ... finished
2021-03-29 19:13:57 [NOTICE] [root] Running validation checks
2021-03-29 19:14:01 [NOTICE] [configure] Starting system configuration.
  The total number of configuration tasks may increase during the run.
  Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-03-29 19:14:11 [NOTICE] [configure] 100 out of 1562 done.
2021-03-29 19:14:12 [NOTICE] [configure] 200 out of 1562 done.
2021-03-29 19:14:12 [NOTICE] [configure] 300 out of 1562 done.
2021-03-29 19:14:12 [NOTICE] [configure] 400 out of 1562 done.
2021-03-29 19:14:12 [NOTICE] [configure] 500 out of 1564 done.
2021-03-29 19:14:12 [NOTICE] [configure] 600 out of 1564 done.
2021-03-29 19:14:13 [NOTICE] [configure] 700 out of 1566 done.
2021-03-29 19:14:13 [NOTICE] [configure] 800 out of 1572 done.
2021-03-29 19:14:13 [NOTICE] [configure] 1000 out of 1576 done.
2021-03-29 19:14:59 [NOTICE] [configure] 1100 out of 1576 done.
2021-03-29 19:14:59 [NOTICE] [configure] 1200 out of 1576 done.
2021-03-29 19:15:27 [NOTICE] [configure] 1300 out of 1576 done.
2021-03-29 19:16:14 [NOTICE] [configure] 1400 out of 1576 done.
2021-03-29 19:16:15 [NOTICE] [configure] 1500 out of 1576 done.
2021-03-29 19:16:19 [NOTICE] [configure] System configuration has finished.
1 Like