"juju status <app>" shows all the existing relations

Bug #1768240 reported by Alvaro Uria
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned

Bug Description

I'm running Juju 2.3.5. If I run "juju status cinder", the apps, units and machines sections will only list the applications involved with cinder. However, the relations section lists all the existing relations in the model.

Could the relations be also filtered to only list the ones related to cinder?

Thank you.

Revision history for this message
Anastasia (anastasia-macmood) wrote :

This seems to be a regression from a bug # 1721357 that I have fixed previously.

Any chance you could give us a 'juju status' output that has unexpected entries?

Changed in juju:
status: New → Incomplete
Revision history for this message
Alvaro Uria (aluria) wrote :
Changed in juju:
status: Incomplete → New
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Alvaro Uría (aluria),

Thank you for the pastebin.

Yes, I see - the code is correct and even though the relation list appears big, it is actually filtered based on the list of the applications that are in the status 'app' section.

The list of applications in this section is correctly built using the criteria that you provided to the command, including the applications that reside on the same machine, etc.

This is not a bug. This behavior is by design.

Changed in juju:
status: New → Invalid
Revision history for this message
James Troup (elmo) wrote : Re: [Bug 1768240] Re: "juju status <app>" shows all the existing relations

Anastasia <email address hidden> writes:

> @Alvaro Uría (aluria),
>
> Thank you for the pastebin.
>
> Yes, I see - the code is correct and even though the relation list
> appears big, it is actually filtered based on the list of the
> applications that are in the status 'app' section.
>
> The list of applications in this section is correctly built using the
> criteria that you provided to the command, including the applications
> that reside on the same machine, etc.
>
> This is not a bug. This behavior is by design.

Then the design is buggy.

Take, for example, from the pastebin line 43:

  ceilometer:juju-info landscape-client:container juju-info subordinate

We asked for status information on designate. While designate is
obviously related to landscape-client, it doesn't follow from that
that I want to know about the *other* (non-designate) relations
landscape-client has.

--
James

Changed in juju:
status: Invalid → New
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Completely agree :)

When a user requests to filter juju status using a criteria, they do not want to see "and here is everything else". This specific design alteration is tracked in bug # 1592872.

I am marking this report as duplicate.

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.