juju status fails, mongo replication error
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:/
and all logs can be found at:
https:/
Changed in juju: | |
milestone: | none → 2.9-next |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju: | |
milestone: | 2.9-next → none |
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.