controllers view shows an inaccurate machine count

Bug #1743972 reported by Ryan Beisner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

controllers view shows an inaccurate machine count

https://paste.ubuntu.com/26409095/

Revision history for this message
Ryan Beisner (1chb1n) wrote :

There are not 23 machines, but `juju controllers` says that there are:

jenkins@juju-0d10ff-osci-16:~$ juju controllers
Use --refresh flag with this command to see the latest information.

Controller Model User Access Cloud/Region Models Machines HA Version
auto-osci-sv07* - admin superuser serverstack/serverstack 2 23 none 2.3.1

jenkins@juju-0d10ff-osci-16:~$ juju models
Controller: auto-osci-sv07

Model Cloud/Region Status Machines Cores Access Last connection
controller serverstack/serverstack available 1 4 admin just now
default serverstack/serverstack available 0 - admin 9 hours ago

jenkins@juju-0d10ff-osci-16:~$ juju status
ERROR current model for controller auto-osci-sv07 not found
jenkins@juju-0d10ff-osci-16:~$

description: updated
Revision history for this message
Ryan Beisner (1chb1n) wrote :

Using --refresh solved it. But why is this necessary?

(clients) jenkins@juju-0d10ff-osci-16:~/tools/z/charm-test-infra$ juju controllers --refresh
Controller Model User Access Cloud/Region Models Machines HA Version
auto-osci-sv07* - admin superuser serverstack/serverstack 2 1 none 2.3.1

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

--refresh is necessary as we, by default, do not go back to the server for this information. We actually cache it on the client side for a quick response. --refresh option essentially tells to go to the server (controller) to get this information.

However, we have recently worked on getting model counts more frequently to update the cache for this command.

I'll look into keeping machine count updated more frequently in a similar manner to model counts work.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
tags: added: usability
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
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.