Comment 2 for bug 1600453

Revision history for this message
Ian Booth (wallyworld) wrote :

I have a prototype branch which does the following. It adds a new block to the show-controller output.

  controller-machines:
    "0":
      instance-id: juju-a76762-0
      ha-status: enabled
    "1":
      instance-id: juju-a76762-1
      ha-status: enabled
    "2":
      instance-id: juju-a76762-2
      ha-status: pending

The above shows that enable-ha has been run with 3 controller machines. 2 have successfully joined the replicaset, the third is still pending.

We could roll up a single overall ha status for display in list-controllers:

# pending / # configured

eg

1/3

means 3 HA controllers configured, 1 is functional in replicaset, 2 are still pending

etc

We would only show an HA column if HA is configured.

$ juju list-controllers
CONTROLLER MODEL USER ACCESS CLOUD/REGION MODELS MACHINES HA VERSION
ian* controller admin@local superuser lxd/localhost 2 4 3/3 2.0-beta18.1