Project

General

Profile

Actions

Bug #37961

closed

f-openscap tries to seed ansible job template even if ansible is not installed

Added by Adam Ruzicka 28 days ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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)


Related issues 1 (0 open1 closed)

Blocked by Foreman Remote Execution - Bug #37962: Do not seed job templates with unfulfilled requirementsClosedAdam RuzickaActions
Actions

Also available in: Atom PDF