Bug #18977

Do not raise an exception when creating a role during plugin initialization

Added by Adam Ruzicka about 1 year ago. Updated about 1 year ago.

Assigned To:Adam Ruzicka
Target version:Team Ivan Iteration 12
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4396
Story points-
Velocity based estimate-
Release1.15.0Release relationshipAuto


When a plugin defines a role depending on a permission added by core's seeds, the plugin will fail to initialize on a unseeded database. Logging the error instead of raising would make the plugin initialize. Roles will be added on later restarts.

For more information see discussions on these PRs:

Associated revisions

Revision 6dea4e94
Added by adamruzicka about 1 year ago

Fixes #18977 - Do not raise on creating a role in plugin when in Rake


#1 Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4396 added

#2 Updated by Anonymous about 1 year ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal about 1 year ago

  • Category set to Plugins-Engines

#4 Updated by Ohad Levy about 1 year ago

  • Release set to 1.15.0

Also available in: Atom PDF