SetAPIHostPorts runs afoul of "state changing too quickly"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Michael Foord | ||
juju-core |
Fix Released
|
Critical
|
Tim Penhey |
Bug Description
user reported:
"I did a reboot of my juju state nodes and when they restarted I lost the ability to run `juju --debug status` and now get an error `health ping failed: connection is shut down` and in my `juju debug-log` I am getting ` cannot publish API server addresses: cannot set API addresses: state changing too quickly; try again soon`."
This is on 2.0 beta 12, which is what currently ships in Xenial.
Checking the code, it looks like we're hitting the same type of bug as https:/
op := txn.Op{
C: controllersC,
Id: apiHostPortsKey,
Assert: bson.D{{
"apihostports", fromNetworkHost
}},
}
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 2.0-beta16 |
Changed in juju-core: | |
assignee: | nobody → Richard Harding (rharding) |
Changed in juju-core: | |
assignee: | Richard Harding (rharding) → Michael Foord (mfoord) |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0-beta16 → none |
milestone: | none → 2.0-beta16 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
status: | Incomplete → Confirmed |
Changed in juju-core: | |
status: | Confirmed → Triaged |
Changed in juju-core: | |
assignee: | nobody → Tim Penhey (thumper) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
We need to stop asserting on the struct and change the assert to the specific values we care about. An easy fix.