Actions
Bug #14001
openWrapping `host.save` call into external trasnaction causes the `post_commit` orchestration to be triggered even when failures in `pre_commit` orchestration
Status:
New
Priority:
Normal
Assignee:
-
Category:
Orchestration
Target version:
-
Description
This was discovered in a foreman discovery plugin, where the controllers were
wrapped in explicit transactions (which itself should not be considered harmful).
However, trying to do this, the post_commit orchestration gets triggered
even if the pre_commit phase fails and rolls back.
I'm filling this bug in mainly for tracking the limitations of the current
orchestration that has not simple solution without rethinking the way
we do the provisioning orchestration.
Updated by Ivan Necas over 8 years ago
- Related to Bug #12256: Rollback during discovered host provisioning errors with ERF42-8175 and causes post_commit orchestration added
Updated by Ivan Necas over 8 years ago
- Related to Bug #13766: SSH-based provisioning doesn't trigger IP address validation added
Updated by Ivan Necas over 8 years ago
- Related to deleted (Bug #13766: SSH-based provisioning doesn't trigger IP address validation)
Updated by Ivan Necas over 8 years ago
- Related to Tracker #14002: Orchestration build around ActiveRecord hooks tracker added
Updated by Lukas Zapletal almost 4 years ago
This appears to be fixed in Rails 6: https://github.com/rails/rails/issues/29747
I haven't tested tho.
Actions