You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
client: etcd cluster is unavailable or misconfigured #7243
[INFO] OpenShift server health checks done at:
Thu Feb 11 20:37:15 EST 2016
[INFO] Installing the registry
deploymentconfig "docker-registry" created
service "docker-registry" created
[INFO] Waiting for command to finish: '[[ "$(oc get endpoints docker-registry --output-version=v1 --template="{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}" --config=${ADMIN_KUBECONFIG} || echo "0")" != "0" ]]'...
Error from server: endpoints "docker-registry" not found
[INFO] Success running command: '[[ "$(oc get endpoints docker-registry --output-version=v1 --template="{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}" --config=${ADMIN_KUBECONFIG} || echo "0")" != "0" ]]' after 7 seconds
[INFO] Installing the router
serviceaccount "router" created
securitycontextconstraints "privileged" replaced
[INFO] Generating router TLS certificate
password for stats user admin has been set to KrLgnvWlAb
deploymentconfig "router" created
service "router" created
[INFO] Creating image streams
imagestream "nodejs" created
imagestream "perl" created
imagestream "php" created
imagestream "python" created
imagestream "wildfly" created
imagestream "mysql" created
imagestream "postgresql" created
imagestream "mongodb" created
imagestream "jenkins" created
Error from server: client: etcd cluster is unavailable or misconfigured
!!! Error in test/extended/core.sh:74
'oc create -n openshift -f examples/image-streams/image-streams-centos7.json --config="${ADMIN_KUBECONFIG}"' exited with status 1
Call stack:
1: test/extended/core.sh:74 main(...)
Exiting with status 1
Well, we can see the error now and it looks to be the same "has no leader" with a comment: // TODO: make sure this is a no leader response. I have no good ideas for how to solve this problem.
The known EBS sync delay is causing this - testable by a) retry causing
the problem to go away, b) logs and SAR
An unknown, smaller EBS sync delay causing this (due to random network
delays in production) - testable by retry causing the problem to go away,
SAR, and possibly looking at IOP budget
A leader stability issue, or other internal issue that only occurs in
the first few seconds of an etcd instance - testable by retry causing the
problem to go away, logs in etcd
Right now, integration tests are triggering this early the server start
process. I haven't yet seen one during the actual test.
On Thu, Feb 25, 2016 at 10:29 AM, David Eads [email protected]
wrote:
Other things to test - putting etcd on memory storage. I don't expect we
need more than 1-20M of data in etcd.
On Thu, Feb 25, 2016 at 10:50 AM, Clayton Coleman [email protected]
wrote:
There are three options I'm considering
The known EBS sync delay is causing this - testable by a) retry causing
the problem to go away, b) logs and SAR
An unknown, smaller EBS sync delay causing this (due to random network
delays in production) - testable by retry causing the problem to go away,
SAR, and possibly looking at IOP budget
A leader stability issue, or other internal issue that only occurs in
the first few seconds of an etcd instance - testable by retry causing the
problem to go away, logs in etcd
Right now, integration tests are triggering this early the server start
process. I haven't yet seen one during the actual test.
On Thu, Feb 25, 2016 at 10:29 AM, David Eads [email protected]
wrote:
We have 0 indication this is anything other than normal behavior of
the EBS system until you write to all blocks, coupled with an
arbitrarily low timeout, in an environment where we have unrealistic
(non real world) expectations of zero failed calls.
If you expect zero failures in a test, then by definition an arbitrary
timeout is the source of the problem.
I don't know how log writing to the entire disk takes but it's worth
finding out. It needs to be tolerant to picking the correct disk
size. Even if we did that, I'd still increase the timeout because
there is no guarantee of bounded delay on network attached disk.
Best fio seems to be able to do is 40 minutes (reading) because we're limited to 100 iops. Writing 8gb isn't enough. It might be possible to do randreads and writes for a probabilistic part of the disk (randomly write enough blocks) but my fio-fu does not extend that far. I'm going to merge the timeout increase in the meantime and we can roll it back if someone can figure out a way to make this faster.
It looks like there are no stalls now in the tests (that I can see) - peaks of 40-60% iowait for up to a second or two, but that's it. It kills me to spend 12 minutes on this at the beginning of a build.
It looks like there are no stalls now in the tests (that I can see) - peaks of 40-60% iowait for up to a second or two, but that's it. It kills me to spend 12 minutes on this at the beginning of a build.
Ok, so now we have both the long etcd timeout and the pre-read? Why not create a smaller block device and use that. I wouldn't expect us to use more than 100 megs or so in etcd.
Yeah, we don't need to run our tests on the base volume (anything that has
snapshots has this behavior, it's reads and not writes), we only need to
run our tests on a drive. We could do memory (fast), block (slow), or a
combination. We can shrink the size of the main drive, use local disk (if
available), or split into two devices. But whatever device we use can't be
based on a snapshot. Once we make that change, we can revert both this and
the long wait.
It looks like there are no stalls now in the tests (that I can see) -
peaks of 40-60% iowait for up to a second or two, but that's it. It kills
me to spend 12 minutes on this at the beginning of a build.
Ok, so now we have both the long etcd timeout and the pre-read? Why not
create a smaller block device and use that. I wouldn't expect us to use
more than 100 megs or so in etcd.
—
Reply to this email directly or view it on GitHub #7243 (comment).
Activity
liggitt commentedon Feb 12, 2016
Hrmm, I don't remember seeing that error. I'm used to timeout and failed to propose issues
mfojtik commentedon Feb 12, 2016
do we health check etcd when starting the server?
deads2k commentedon Feb 12, 2016
Could be a new error with the new client. Remember
DANGERin the rebase?liggitt commentedon Feb 12, 2016
I think you're right. The extended jenkins tests aren't doing anything for the disk workaround
smarterclayton commentedon Feb 12, 2016
[-]extended tests fail with etcd cluster not available[/-][+]client: etcd cluster is unavailable or misconfigured[/+]deads2k commentedon Feb 15, 2016
Well, we can see the error now and it looks to be the same "has no leader" with a comment:
// TODO: make sure this is a no leader response. I have no good ideas for how to solve this problem.deads2k commentedon Feb 25, 2016
Since I have the link handy. This used to be caused by slowness here: https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/github.com/coreos/etcd/client/client.go#L294-L296. We'd probably be well served to enable and gather prometheus metrics during test-integration to see if that's still the spot with weird spikes.
deads2k commentedon Feb 25, 2016
Sorry, this link: https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/github.com/coreos/etcd/wal/wal.go#L398-L408
smarterclayton commentedon Feb 25, 2016
There are three options I'm considering
the problem to go away, b) logs and SAR
delays in production) - testable by retry causing the problem to go away,
SAR, and possibly looking at IOP budget
the first few seconds of an etcd instance - testable by retry causing the
problem to go away, logs in etcd
Right now, integration tests are triggering this early the server start
process. I haven't yet seen one during the actual test.
On Thu, Feb 25, 2016 at 10:29 AM, David Eads [email protected]
wrote:
smarterclayton commentedon Feb 25, 2016
Other things to test - putting etcd on memory storage. I don't expect we
need more than 1-20M of data in etcd.
On Thu, Feb 25, 2016 at 10:50 AM, Clayton Coleman [email protected]
wrote:
deads2k commentedon Feb 25, 2016
We do that for the merge queue and it rarely (never) hits this problem.
smarterclayton commentedon Feb 25, 2016
I think I've seen merge queue fail today on this problem, will check.
On Thu, Feb 25, 2016 at 10:54 AM, David Eads [email protected]
wrote:
28 remaining items
smarterclayton commentedon Feb 29, 2016
smarterclayton commentedon Mar 4, 2016
Not sure we have to write, just read: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-initialize.html
smarterclayton commentedon Mar 4, 2016
It takes 3 minutes to read the entire disk. We have to do this for each instance we want to test to avoid read stalls. This is not write specific.
smarterclayton commentedon Mar 4, 2016
Nope, 37 minutes
smarterclayton commentedon Mar 4, 2016
Best fio seems to be able to do is 40 minutes (reading) because we're limited to 100 iops. Writing 8gb isn't enough. It might be possible to do randreads and writes for a probabilistic part of the disk (randomly write enough blocks) but my fio-fu does not extend that far. I'm going to merge the timeout increase in the meantime and we can roll it back if someone can figure out a way to make this faster.
smarterclayton commentedon Mar 5, 2016
BAHAHAHA https://travis-ci.org/openshift/origin/jobs/113777883
liggitt commentedon Mar 5, 2016
...
smarterclayton commentedon Mar 5, 2016
I'm wondering whether ansible zeros the disk now...
On Mar 4, 2016, at 8:28 PM, Jordan Liggitt [email protected] wrote:
...
—
Reply to this email directly or view it on GitHub
#7243 (comment).
smarterclayton commentedon Mar 5, 2016
It looks like there are no stalls now in the tests (that I can see) - peaks of 40-60% iowait for up to a second or two, but that's it. It kills me to spend 12 minutes on this at the beginning of a build.
deads2k commentedon Mar 7, 2016
Ok, so now we have both the long etcd timeout and the pre-read? Why not create a smaller block device and use that. I wouldn't expect us to use more than 100 megs or so in etcd.
smarterclayton commentedon Mar 7, 2016
Yeah, we don't need to run our tests on the base volume (anything that has
snapshots has this behavior, it's reads and not writes), we only need to
run our tests on a drive. We could do memory (fast), block (slow), or a
combination. We can shrink the size of the main drive, use local disk (if
available), or split into two devices. But whatever device we use can't be
based on a snapshot. Once we make that change, we can revert both this and
the long wait.
On Mon, Mar 7, 2016 at 7:43 AM, David Eads [email protected] wrote:
smarterclayton commentedon Jan 23, 2017
Fixed.