juju status fails, mongo replication error

Bug #1968220 reported by Alexander Balderson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Unassigned

Bug Description

During a standard deployment with an HA controller, juju status started reporting that "ERROR:root:ERROR not master and slaveOk=false"
This first caused juju wait to fail, but then the end of the test run we then run juju status against the models, which also failed
Looking down the line in the test log collection it took about 20 min before a juju status call succeeded.

some short googling shows that this error can result when trying to read from a mongo replica that is not the master, but the replica isnt set with read permissions. the controller logs dont seem like they show the replicas being in a weird state though. The logs are attached.

Testrun can be found at:
https://solutions.qa.canonical.com/testruns/testRun/7355daa0-d965-4d10-9a9b-e319631eda01

and all logs can be found at:
https://oil-jenkins.canonical.com/artifacts/7355daa0-d965-4d10-9a9b-e319631eda01/index.html

Revision history for this message
Alexander Balderson (asbalderson) wrote :
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.9-next
status: New → Triaged
importance: Undecided → High
Revision history for this message
John A Meinel (jameinel) wrote :

We generally never run reading from the secondaries, so the real question is why we didn't notice that the primary had changed and switched our reads over to the primary.

Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9-next → none
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.