Actions
Bug #37961
closedf-openscap tries to seed ansible job template even if ansible is not installed
Difficulty:
Triaged:
No
Description
Seeds then fail with this
2024-10-31T13:02:16 [I|app|] Seeding foreman-openscap/db/seeds.d/75-job_templates.rb 2024-10-31T13:02:16 [D|app|] setting attributes for Run OpenSCAP remediation - Ansible Default with id: N/A rake aborted! ActiveRecord::RecordInvalid: Validation failed: Provider type Translation missing. Options considered were: - en.activerecord.errors.models.job_template.attributes.provider_type.uniq - en.activerecord.errors.models.job_template.uniq - en.activerecord.errors.messages.uniq - en.errors.attributes.provider_type.uniq - en.errors.messages.uniq foreman-remote-execution/app/models/job_template.rb:73:in `import_raw!' foreman-openscap/db/seeds.d/75-job_templates.rb:10:in `block (3 levels) in <main>' foreman-openscap/db/seeds.d/75-job_templates.rb:6:in `each' foreman-openscap/db/seeds.d/75-job_templates.rb:6:in `block (2 levels) in <main>' foreman-openscap/db/seeds.d/75-job_templates.rb:5:in `block in <main>' foreman/app/models/concerns/foreman/thread_session.rb:108:in `as' foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin' foreman-openscap/db/seeds.d/75-job_templates.rb:4:in `<main>' foreman/app/services/foreman_seeder.rb:51:in `load' foreman/app/services/foreman_seeder.rb:51:in `block (3 levels) in execute' foreman/app/models/concerns/foreman/thread_session.rb:108:in `as' foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin' foreman/app/services/foreman_seeder.rb:50:in `block (2 levels) in execute' foreman/app/services/foreman_seeder.rb:44:in `each' foreman/app/services/foreman_seeder.rb:44:in `block in execute' foreman/app/services/foreman/advisory_lock_manager.rb:21:in `block in with_transaction_lock' foreman/app/services/foreman/advisory_lock_manager.rb:17:in `with_transaction_lock' foreman/app/services/foreman_seeder.rb:38:in `execute' foreman/db/seeds.rb:15:in `<main>' foreman/config/initializers/0_print_time_spent.rb:38:in `load' foreman/config/initializers/0_print_time_spent.rb:38:in `block in load' foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark' foreman/config/initializers/0_print_time_spent.rb:38:in `load' .asdf/installs/ruby/3.1.6/bin/bundle:25:in `load' .asdf/installs/ruby/3.1.6/bin/bundle:25:in `<main>' Tasks: TOP => db:seed (See full trace by running task with --trace)
Actions