cannot create leadership lease client: end of read window preceded beginning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
John A Meinel | ||
2.1 |
Fix Released
|
Critical
|
Ian Booth |
Bug Description
As seen here:
http://
Juju dies with "cannot create leadership lease client: end of read window preceded beginning".
This is a new intermittent failure, first seen here.
http://
We saw it again today, three days later. And that was over a weekend, when there is less testing. As such, I'm classifying it as a regression even though it is intermittent.
Full example:
2017-02-03 10:59:35 INFO juju --show-log list-models -c azure-arm-
10:59:35 INFO juju.cmd supercommand.go:63 running juju [2.1-beta5 gc go1.6.2]
10:59:35 INFO juju.juju api.go:72 connecting to API addresses: [13.64.
10:59:35 INFO juju.api apiclient.go:590 dialing "wss://
10:59:35 INFO juju.api apiclient.go:590 dialing "wss://
10:59:36 INFO juju.api apiclient.go:521 connection established to "wss://
10:59:36 INFO juju.juju api.go:72 connecting to API addresses: [13.64.
10:59:36 INFO juju.api apiclient.go:590 dialing "wss://
10:59:36 INFO juju.api apiclient.go:590 dialing "wss://
10:59:36 INFO juju.api apiclient.go:521 connection established to "wss://
10:59:38 ERROR cmd supercommand.go:458 cannot get model details: getting model a9d5bd58-
summary: |
- annot create leadership lease client: end of read window preceded + cannot create leadership lease client: end of read window preceded beginning |
Changed in juju: | |
importance: | Critical → High |
Changed in juju: | |
milestone: | none → 2.2.0-alpha1 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
This looks like a case of clock skew between the client used to bootstrap and the machines started in the cloud. ie the client machine's time is wrong.
The client says that bootstrap finished at 10:59:35.
it then goes to run list-models
The machine 0 logs (unfortunately only at INFO) show that bootstrap appears to complete at 10:59:42
So the bootstrap client machine is 7 seconds behind what it should be. Juju requires all machines to have accurate clocks. This is not a regression since that invariant has always been the case.