Skip to content

client: etcd cluster is unavailable or misconfigured #7243

Closed

Description

@smarterclayton

https://ci.openshift.redhat.com/jenkins/job/origin_extended/617/consoleFull

Is this the disk stall thing?

[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

Activity

  1. liggitt commented on Feb 12, 2016

    @liggitt
    Contributor

    Hrmm, I don't remember seeing that error. I'm used to timeout and failed to propose issues

  2. mfojtik commented on Feb 12, 2016

    @mfojtik
    Contributor

    do we health check etcd when starting the server?

  3. deads2k commented on Feb 12, 2016

    @deads2k
    Contributor

    Hrmm, I don't remember seeing that error. I'm used to timeout and failed to propose issues

    Could be a new error with the new client. Remember DANGER in the rebase?

  4. liggitt commented on Feb 12, 2016

    @liggitt
    Contributor

    I think you're right. The extended jenkins tests aren't doing anything for the disk workaround

  5. smarterclayton commented on Feb 12, 2016

    @smarterclayton
    ContributorAuthor
  6. changed the title [-]extended tests fail with etcd cluster not available[/-] [+]client: etcd cluster is unavailable or misconfigured[/+] on Feb 12, 2016
  7. deads2k commented on Feb 15, 2016

    @deads2k
    Contributor

    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.

  8. deads2k commented on Feb 25, 2016

    @deads2k
    Contributor

    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.

  9. smarterclayton commented on Feb 25, 2016

    @smarterclayton
    ContributorAuthor

    There are three options I'm considering

    1. The known EBS sync delay is causing this - testable by a) retry causing
      the problem to go away, b) logs and SAR
    2. 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
    3. 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:

    Sorry, this link:
    https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/github.com/coreos/etcd/wal/wal.go#L398-L408

    —
    Reply to this email directly or view it on GitHub
    #7243 (comment).

  10. smarterclayton commented on Feb 25, 2016

    @smarterclayton
    ContributorAuthor

    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

    1. The known EBS sync delay is causing this - testable by a) retry causing
      the problem to go away, b) logs and SAR
    2. 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
    3. 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:

    Sorry, this link:
    https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/github.com/coreos/etcd/wal/wal.go#L398-L408

    —
    Reply to this email directly or view it on GitHub
    #7243 (comment).

  11. deads2k commented on Feb 25, 2016

    @deads2k
    Contributor

    Other things to test - putting etcd on memory storage. I don't expect we
    need more than 1-20M of data in etcd.

    We do that for the merge queue and it rarely (never) hits this problem.

  12. smarterclayton commented on Feb 25, 2016

    @smarterclayton
    ContributorAuthor

    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:

    Other things to test - putting etcd on memory storage. I don't expect we
    need more than 1-20M of data in etcd.

    We do that for the merge queue and it rarely (never) hits this problem.

    —
    Reply to this email directly or view it on GitHub
    #7243 (comment).

  13. 28 remaining items

  14. smarterclayton commented on Feb 29, 2016

    @smarterclayton
    ContributorAuthor
  15. smarterclayton commented on Mar 4, 2016

    @smarterclayton
    ContributorAuthor

    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.

  16. smarterclayton commented on Mar 4, 2016

    @smarterclayton
    ContributorAuthor

    Nope, 37 minutes

  17. smarterclayton commented on Mar 4, 2016

    @smarterclayton
    ContributorAuthor

    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.

  18. liggitt commented on Mar 5, 2016

    @liggitt
    Contributor

    ...

  19. smarterclayton commented on Mar 5, 2016

    @smarterclayton
    ContributorAuthor

    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).

  20. smarterclayton commented on Mar 5, 2016

    @smarterclayton
    ContributorAuthor

    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.

  21. deads2k commented on Mar 7, 2016

    @deads2k
    Contributor

    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.

  22. smarterclayton commented on Mar 7, 2016

    @smarterclayton
    ContributorAuthor

    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:

    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).

  23. smarterclayton commented on Jan 23, 2017

    @smarterclayton
    ContributorAuthor

    Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions