Traceback when accessing relation data in relation-broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
William Reade |
Bug Description
I've been attempting to use relation data during a relation-broken hook. This may lead to a feature request, but in the meantime its causing a traceback in the debug-logs and an unhandled error in debug-hooks:
root@ip-
Unhandled error in Deferred:
Traceback (most recent call last):
Failure: twisted.
The use case is: I've been hacking the mysql formula to allow multiple clients to the same database. If a relationship is broken, I'd like to revert GRANTs for that host on that database. It would be great if the relation data was still available at the point when the broken hook gets fired.
Changed in ensemble: | |
milestone: | dublin → none |
Thanks for the report Adam. This is a problem we're aware of to some extent, and a few related problems are being tracked in bug #791042, bug #767195, and bug #791370.
I'll keep this one open since I believe this is the first time we talk about actually _querying_ the dead relations, so let's see how we handle this.