Plugin initializer is loaded only once when running multiple migrations. Since plugin permissions are ignored (permissions table does not exist yet) they are not created in database and permission migration can't migrate them. Therefore we must find all plugin permission during permission migration and create them before that.
Created from redmine issue http://projects.theforeman.org/issues/5689
Upstream bug assigned to mhulan
Moving to POST since upstream bug http://projects.theforeman.org/issues/5689 has been closed
please provide verification steps
It tests upgrades from older versions of Foreman with plugins installed to the current version. It doesn't make sense to test upgrades *to* Satellite 6.0, so closing. I've just verified that the code is indeed included.