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)
Updated by Adam Ruzicka 28 days ago
- Blocked by Bug #37962: Do not seed job templates with unfulfilled requirements added
Updated by The Foreman Bot 28 days ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_openscap/pull/583 added
Updated by The Foreman Bot 27 days ago
- Fixed in Releases foreman_openscap 10.1.0 added
Updated by Anonymous 27 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_openscap|9343b99461308640a1761c08b2a2e4b6f3ef143e.
Updated by Adam Ruzicka 8 days ago
- Fixed in Releases foreman_openscap 10.0.2 added
- Fixed in Releases deleted (
foreman_openscap 10.1.0)
Actions