juju HA primary controller machine concept

Bug #1860291 reported by Anastasia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Anastasia

Bug Description

Currently, Juju gives no indication which controller machine in HA is primary.
From Juju perspective the concept is not necessarily useful as any controller machine can accept request and correctly pass them to a primary mongo instance.

However, sometimes it's important for the users to know which controller machine has a local mongo instance which is primary in a replicaset.

We should surface it in a status.

Changed in juju:
status: Triaged → In Progress
assignee: nobody → Anastasia (anastasia-macmood)
Revision history for this message
Richard Harding (rharding) wrote :

Should it be in status? HA status is in the show-controller output and I'd think that, for the most part, status of that doesn't need much attention unless you were looking for it. Maybe we can tack the primary indicator to the existing data?

juju show-controller

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

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

TBH, it should be in both - 'status' and 'show-controller' output. 'status' in yaml and json also shows the state of controller machines voting 'hasVote', 'wantsVote', etc.

So I was going to add 'ha-primary: true' or something along these lines.

Revision history for this message
Richard Harding (rharding) wrote : Re: [Bug 1860291] Re: juju HA primary controller machine concept

Fair enough on the status YAML output. Thanks, appreciate it.

On Mon, Jan 20, 2020 at 5:20 PM Anastasia <email address hidden>
wrote:

> TBH, it should be in both - 'status' and 'show-controller' output.
> 'status' in yaml and json also shows the state of controller machines
> voting 'hasVote', 'wantsVote', etc.
>
> So I was going to add 'ha-primary: true' or something along these lines.
>
> --
> You received this bug notification because you are subscribed to juju.
> https://bugs.launchpad.net/bugs/1860291
>
> Title:
> juju HA primary controller machine concept
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1860291/+subscriptions
>

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

PR against develop (heading into 2.8): https://github.com/juju/juju/pull/11131

Changed in juju:
status: In Progress → Fix Committed
milestone: none → 2.8-beta1
Harry Pidcock (hpidcock)
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.