Unable to tell if a remote unit has joined a relation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Wishlist
|
Unassigned |
Bug Description
In a -relation-joined or -relation-changed hook, a charm is unable to tell if the remote unit has not yet joined the relation, or if the remote unit has joined and not set any data.
It would be useful to tell if the remote end of a relation has run its relation-joined hook or one or more iterations of relation-changed yet. This could be exposed on the relation as standard relation data (like the IP address).
As the information is being set by juju rather than the charm, it would be available even if the remote unit does not even have a corresponding relation hook wired up.
The use is it would allow a charm to know if the remote unit has chosen to set no data on a relation and should be provided with 'default' settings, or that the remote unit has not yet had an opportunity to speak its mind and we should wait until a future -relation-changed hook before allocating resources and responding.
As a strawman proposal, I suggest adding a 'last-relation-
summary: |
- Unable to tell if a remote service has joined a relation + Unable to tell if a remote unit has joined a relation |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
tags: | added: charm charmers hooks |
This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.