As far as I understand
- Dynflow (rpm) gets upgraded
- Foreman (rpm) gets upgraded
- Foreman gets restarted (possibly from %post?)
- As part of startup dynflow inside the foreman process migrates the db (dynflow runs migrations on startup)
- dynflow-sidekiq@whatever services are still running, but the db suddenly doesn’t match
- dynflow-sidekiq@whatever services get restarted
- dynflow-sidekiq@whatever services cannot start, because the db now contains bogus data created in 5