juju status $APP does not filter out relations section

Bug #1721357 reported by Felipe Reyes
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Anastasia

Bug Description

"juju status $APP" is expected to print only information related to $APP, it prints only units and machines related to $APP but it prints ALL relations in the model, sample output of an openstack deployment:

⟫ juju status keystone
Model Controller Cloud/Region Version SLA
keystone-ssl c1 stsstack/stsstack 2.2.4 unsupported

App Version Status Scale Charm Store Rev OS Notes
keystone 9.3.0 active 3 keystone local 1 ubuntu
keystone-hacluster active 3 hacluster local 2 ubuntu

Unit Workload Agent Machine Public address Ports Message
keystone/0 active idle 6 10.5.2.97 5000/tcp Unit is ready
  keystone-hacluster/1* active idle 10.5.2.97 Unit is ready and clustered
keystone/1 active idle 7 10.5.2.98 5000/tcp Unit is ready
  keystone-hacluster/0 active idle 10.5.2.98 Unit is ready and clustered
keystone/2* active idle 8 10.5.2.96 5000/tcp Unit is ready
  keystone-hacluster/2 active idle 10.5.2.96 Unit is ready and clustered

Machine State DNS Inst id Series AZ Message
6 started 10.5.2.97 80549036-9557-42ef-a880-632be1c809a6 xenial nova ACTIVE
7 started 10.5.2.98 4490f223-e578-40dd-8bd6-71b755b20cd9 xenial nova ACTIVE
8 started 10.5.2.96 8d1d7b4f-d9bd-4b24-a4f1-bdbb59813887 xenial nova ACTIVE

Relation provider Requirer Interface Type
cinder-hacluster:ha cinder:ha hacluster subordinate
cinder-hacluster:hanode cinder-hacluster:hanode hacluster peer
cinder:cinder-volume-service nova-cloud-controller:cinder-volume-service cinder regular
cinder:cluster cinder:cluster cinder-ha peer
glance-hacluster:ha glance:ha hacluster subordinate
glance-hacluster:hanode glance-hacluster:hanode hacluster peer
glance:cluster glance:cluster glance-ha peer
glance:image-service cinder:image-service glance regular
glance:image-service nova-cloud-controller:image-service glance regular
glance:image-service nova-compute:image-service glance regular
keystone-hacluster:ha keystone:ha hacluster subordinate
keystone-hacluster:hanode keystone-hacluster:hanode hacluster peer
keystone:cluster keystone:cluster keystone-ha peer
keystone:identity-service cinder:identity-service keystone regular
keystone:identity-service glance:identity-service keystone regular
keystone:identity-service neutron-api:identity-service keystone regular
keystone:identity-service nova-cloud-controller:identity-service keystone regular
mysql:cluster mysql:cluster percona-cluster peer
mysql:shared-db cinder:shared-db mysql-shared regular
mysql:shared-db glance:shared-db mysql-shared regular
mysql:shared-db keystone:shared-db mysql-shared regular
mysql:shared-db neutron-api:shared-db mysql-shared regular
mysql:shared-db nova-cloud-controller:shared-db mysql-shared regular
neutron-api-hacluster:ha neutron-api:ha hacluster subordinate
neutron-api-hacluster:hanode neutron-api-hacluster:hanode hacluster peer
neutron-api:cluster neutron-api:cluster neutron-api-ha peer
neutron-api:neutron-api nova-cloud-controller:neutron-api neutron-api regular
neutron-api:neutron-plugin-api neutron-gateway:neutron-plugin-api neutron-plugin-api regular
neutron-api:neutron-plugin-api neutron-openvswitch:neutron-plugin-api neutron-plugin-api regular
neutron-gateway:cluster neutron-gateway:cluster quantum-gateway-ha peer
neutron-gateway:quantum-network-service nova-cloud-controller:quantum-network-service quantum regular
neutron-openvswitch:neutron-plugin nova-compute:neutron-plugin neutron-plugin subordinate
nova-cc-hacluster:ha nova-cloud-controller:ha hacluster subordinate
nova-cc-hacluster:hanode nova-cc-hacluster:hanode hacluster peer
nova-cloud-controller:cluster nova-cloud-controller:cluster nova-ha peer
nova-compute:cloud-compute nova-cloud-controller:cloud-compute nova-compute regular
nova-compute:compute-peer nova-compute:compute-peer nova peer
rabbitmq-server:amqp cinder:amqp rabbitmq regular
rabbitmq-server:amqp glance:amqp rabbitmq regular
rabbitmq-server:amqp neutron-api:amqp rabbitmq regular
rabbitmq-server:amqp neutron-gateway:amqp rabbitmq regular
rabbitmq-server:amqp neutron-openvswitch:amqp rabbitmq regular
rabbitmq-server:amqp nova-cloud-controller:amqp rabbitmq regular
rabbitmq-server:amqp nova-compute:amqp rabbitmq regular
rabbitmq-server:cluster rabbitmq-server:cluster rabbitmq-ha peer

Expected result:

⟫ juju status keystone
Model Controller Cloud/Region Version SLA
keystone-ssl c1 stsstack/stsstack 2.2.4 unsupported

App Version Status Scale Charm Store Rev OS Notes
keystone 9.3.0 active 3 keystone local 1 ubuntu
keystone-hacluster active 3 hacluster local 2 ubuntu

Unit Workload Agent Machine Public address Ports Message
keystone/0 active idle 6 10.5.2.97 5000/tcp Unit is ready
  keystone-hacluster/1* active idle 10.5.2.97 Unit is ready and clustered
keystone/1 active idle 7 10.5.2.98 5000/tcp Unit is ready
  keystone-hacluster/0 active idle 10.5.2.98 Unit is ready and clustered
keystone/2* active idle 8 10.5.2.96 5000/tcp Unit is ready
  keystone-hacluster/2 active idle 10.5.2.96 Unit is ready and clustered

Machine State DNS Inst id Series AZ Message
6 started 10.5.2.97 80549036-9557-42ef-a880-632be1c809a6 xenial nova ACTIVE
7 started 10.5.2.98 4490f223-e578-40dd-8bd6-71b755b20cd9 xenial nova ACTIVE
8 started 10.5.2.96 8d1d7b4f-d9bd-4b24-a4f1-bdbb59813887 xenial nova ACTIVE

Relation provider Requirer Interface Type
keystone-hacluster:ha keystone:ha hacluster subordinate
keystone-hacluster:hanode keystone-hacluster:hanode hacluster peer
keystone:cluster keystone:cluster keystone-ha peer
keystone:identity-service cinder:identity-service keystone regular
keystone:identity-service glance:identity-service keystone regular
keystone:identity-service neutron-api:identity-service keystone regular
keystone:identity-service nova-cloud-controller:identity-service keystone regular
mysql:shared-db keystone:shared-db mysql-shared regular

Felipe Reyes (freyes)
tags: added: usability
Tim Penhey (thumper)
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.3.0
tags: added: bitesize
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Status filtering, as written now, is not strictly limiting to what you expect.
Unfortunately, Juju will also pull in everything related.
For example, if there are units of another application XXXX on the machines with the units of an application that you are interested in, all information about XXXX will be displayed.

This behavior has led to unexpected results before and I think we have other bugs related to this.

Tim Penhey (thumper)
Changed in juju:
milestone: 2.3.0 → 2.3-rc1
importance: Medium → High
Changed in juju:
assignee: nobody → Anastasia (anastasia-macmood)
Revision history for this message
Anastasia (anastasia-macmood) wrote :
Changed in juju:
status: Triaged → In Progress
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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