Skip to content

github.com/openshift/origin/test/setup/start-master: /healthz failure #16273

Closed

Description

@0xmichalis
=== BEGIN TEST CASE ===
hack/lib/start.sh:281: executing 'oc get --raw /healthz --config='/tmp/openshift/test-cmd/openshift.local.config/master/admin.kubeconfig'' expecting any result and text 'ok'; re-trying every 0.25s until completion or 160.000s
FAILURE after 159.412s: hack/lib/start.sh:281: executing 'oc get --raw /healthz --config='/tmp/openshift/test-cmd/openshift.local.config/master/admin.kubeconfig'' expecting any result and text 'ok'; re-trying every 0.25s until completion or 160.000s: the command timed out
Standard output from the command:
Standard error from the command:
The connection to the server 172.17.0.2:28443 was refused - did you specify the right host or port?
... repeated 11 times
Error from server (Forbidden): User "system:admin" cannot get path "/healthz": User "system:admin" cannot "get" on "/healthz"
... repeated 15 times
Unable to connect to the server: read tcp 172.17.0.2:43986->172.17.0.2:28443: read: connection reset by peer
The connection to the server 172.17.0.2:28443 was refused - did you specify the right host or port?
... repeated 353 times
=== END TEST CASE ===

https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/15199/test_pull_request_origin_cmd/2492/
/kind test-flake

Activity

  1. added
    kind/test-flake
    on Sep 10, 2017
  2. changed the title [-]github.com/openshift/origin/test/setup/start-master: hack/lib/start.sh:281: executing 'oc get --raw /healthz --config='/tmp/openshift/test-cmd/openshift.local.config/master/admin.kubeconfig'' expecting any result and text 'ok'; re-trying every 0.25s until completion or 160.000s[/-] [+]github.com/openshift/origin/test/setup/start-master: /healthz failure[/+] on Sep 10, 2017
  3. simo5 commented on Sep 11, 2017

    @simo5

    @pweil- does not looks like an auth issue, server refuses to respond.

  4. pweil- commented on Sep 12, 2017

    @pweil-

    yeah, strangely it seems to have both no response and then a Error from server (Forbidden): User "system:admin" cannot get path "/healthz": User "system:admin" cannot "get" on "/healthz". Sending this over to @mfojtik and the Master team.

  5. assigned and unassigned on Sep 12, 2017
  6. 3 remaining items

  7. jim-minter commented on Oct 4, 2017

    @jim-minter
    Contributor

    AFAICS, during startup, the following series happens when getting /healthz at startup:
    1- until listener open, can't connect (obviously)
    2- 403 until rbac roles set up
    3- 500 until all post-start hooks done
    4- 200

  8. jim-minter commented on Oct 4, 2017

    @jim-minter
    Contributor

    (I'm not saying that's what should happen, just that's what I'm seeing).

    In https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/16678/test_pull_request_origin_cmd/4092/ , the server never finishes all its post-start hooks (evidently including initialising RBAC); it dies after 18 seconds with

    I1004 15:34:24.700820   20760 trace.go:76] Trace[279607293]: "GuaranteedUpdate etcd3: *api.RangeAllocation" (started: 2017-10-04 15:34:11.099325642 +0000 UTC) (total time: 13.601468908s):
    Trace[279607293]: [6.600515232s] [6.600515232s] initial value restored
    Trace[279607293]: [6.600596809s] [81.577µs] Transaction prepared
    Trace[279607293]: [13.601468908s] [7.000872099s] END
    F1004 15:34:24.700863   20760 controller.go:128] Unable to perform initial IP allocation check: unable to persist the updated service IP allocations: etcdserver: request timed out
    

    The test waiting for healthz ok hangs around for 160 seconds. This explains the series of:

    The connection to the server 172.17.0.2:28443 was refused - did you specify the right host or port?
    ... repeated 11 times
    Error from server (Forbidden): User "system:admin" cannot get path "/healthz": User "system:admin" cannot "get" on "/healthz"
    ... repeated 15 times
    Unable to connect to the server: read tcp 172.17.0.2:43986->172.17.0.2:28443: read: connection reset by peer
    The connection to the server 172.17.0.2:28443 was refused - did you specify the right host or port?
    ... repeated 353 times
    
  9. jim-minter commented on Oct 4, 2017

    @jim-minter
    Contributor

    Also

    2017-10-04 15:34:17.699597 W | etcdserver: apply entries took too long [5.317380054s for 11 entries]
    2017-10-04 15:34:17.699616 W | etcdserver: avoid queries with large range/delete range!
    2017-10-04 15:34:19.382340 W | etcdserver: timed out waiting for read index response
    
  10. jim-minter commented on Oct 4, 2017

    @jim-minter
    Contributor

    Current theory: I think we intend to run etcd on tmpfs, but we're not, and we're getting hit by underlying filesystem latency.

    From scripts/env/logs/scripts.log:

    [DEBUG] Creating container: `docker create  --privileged -v /var/run/docker.sock:/var/run/docker.sock -v origin-build-tmp-5ccc8607c03af855aa88252b227f97e888281083:/tmp -v origin-build-5ccc8607c03af855aa88252b227f97e888281083:/go/src/github.com/openshift/origin -e OS_VERSION_FILE= -e JUNIT_REPORT=true openshift/origin-release:golang-1.8 make test-cmd -k
    
  11. mfojtik commented on Oct 6, 2017

    @mfojtik
    Contributor

    yes, this is (known) etcd issue. i believe #16686 should make this better.

  12. openshift-bot commented on Apr 10, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  13. added
    lifecycle/stale
    on Apr 10, 2018
  14. openshift-bot commented on May 10, 2018

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  15. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on May 10, 2018
  16. openshift-bot commented on Jun 9, 2018

    @openshift-bot
    Contributor

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

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

Metadata

Metadata

Assignees

Labels

kind/test-flakelifecycle/rottenpriority/P1sig/master

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions