relation-list cannot list a remote app for a relation id

Bug #1871480 reported by Dmitrii Shcherbakov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Achilleas Anagnostopoulos

Bug Description

With the addition of <rname>-relation-created (https://github.com/juju/juju/pull/11341), it became apparent that there are cases where a unit is unable to list a remote app for a given relation id while handling an event without a relation context.

Example:

install
cluster-relation-created # JUJU_REMOTE_APP is set
ca-relation-created # JUJU_REMOTE_APP is set
leader-elected # <--- no relation context here but also no remote units observed
# ...

update-status # <--- no relation context here units may or may not be present

It is possible to retrieve a remote app for a peer relation without the relation context because it matches the app of a unit in question. The same is not the case for other relations as `relation-list -r <rid>` does not accept any parameters to list a remote application for a given relation id.

It would be good to have something like

relation-list -r <rid> --app

for cases like this.

summary: - relation-list cannot list a remote app if no units are present
+ relation-list cannot list a remote app for a relation id
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.8-rc1
status: New → Triaged
importance: Undecided → High
Tim Penhey (thumper)
Changed in juju:
milestone: 2.8-rc1 → 2.8.1
Changed in juju:
assignee: nobody → Achilleas Anagnostopoulos (achilleasa)
status: Triaged → In Progress
Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :

PR https://github.com/juju/juju/pull/11765 implements this feature for 2.8

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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