Traceback when accessing relation data in relation-broken

Bug #804892 reported by Adam Gandelman
6
This bug affects 1 person
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-10-36-11-122:/usr/lib/ensemble/txzookeeper# relation-get database
Unhandled error in Deferred:
Traceback (most recent call last):
Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 2: No such file or directory.

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.

Revision history for this message
Adam Gandelman (gandelman-a) wrote :
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

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.

Changed in ensemble:
status: New → Incomplete
status: Incomplete → Confirmed
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

i'm thinking that in relation-broken any attempt to query the remote side of the relation should just return an empty string, local unit settings are preserved and retrievable though for the hook.

Changed in ensemble:
milestone: none → dublin
importance: Undecided → Medium
Changed in ensemble:
milestone: dublin → none
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

this was fixed per bug:903014

Changed in juju:
milestone: none → florence
assignee: nobody → William Reade (fwereade)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.