Juju does not show relation status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql (Juju Charms Collection) |
New
|
Undecided
|
Unassigned |
Bug Description
Juju doesn't show the status of a relation. If the relation hook script never exits, it doesn't report it.
I did:
$ juju add-relation mysql ceph
which returned quickly. However, on the mysql box the relation hook never finished, and is still lingering due to ceph issues:
$ date
Thu Nov 21 09:39:53 UTC 2013
root 3063 0.0 1.4 481004 14904 ? Ssl Nov20 0:03 /var/lib/
root 6456 0.0 1.0 48044 10208 ? S Nov20 0:00 \_ python /var/lib/
root 6566 0.0 0.0 4404 604 ? S Nov20 0:00 \_ sh -c { rbd list --id mysql --pool mysql; } 2>&1
root 6567 0.0 0.5 437556 5056 ? Sl Nov20 0:05 \_ rbd list --id mysql --pool mysql
At the same time, in juju status, the relation seems to be ok:
mysql:
charm: local:precise/
exposed: false
relations:
ceph:
- ceph
cluster:
- mysql
units:
mysql/0:
machine: "3"
I understand that this could be a fault of the charm, at the same time juju should inform me that the relation hook never completed. This is juju 1.16.3.
$ cat precise/
309
$ cat precise/
103
tags: | added: add-relation |
affects: | juju-core → mysql (Juju Charms Collection) |
We don't time hooks out -- some of them legitimately take a very long time to run. If the hook is unable to complete, it's responsible for failing out on its own.
https:/ /bugs.launchpad .net/juju- core/+bug/ 1254766 (which we intend to fix by 14.04) may be somewhat relevant -- it would allow you to distinguish between a ready and an unready mysql.