Skip to content

Some containers take multiple minutes to start, resulting in timeouts and test failures #11016

Closed

Description

@0xmichalis

Our deployment test suite has started flaking more frequently due to deployer pods needing more time to become ready. We don't have any valuable data since all of our flakes are due to our tests being time-bounded.

See:
#11001
and related flakes:
#10951
#11008
#10989

cc: @derekwaynecarr @smarterclayton @mfojtik

Activity

  1. changed the title [-]Pod starting times have increased in Kube 1.4[/-] [+]post-rebase: Pod starting times have increased in Kube 1.4[/+] on Sep 20, 2016
  2. smarterclayton commented on Sep 20, 2016

    @smarterclayton
    Contributor

    Pods appear to be scheduled, but long delays between starting infra container and the remaining containers (in the cases we've seen).

  3. derekwaynecarr commented on Sep 20, 2016

    @derekwaynecarr
    Member

    There was a similar BZ reported in kube 1.3 when running density tests from 0-100 pods on AWS.

    @timothysc team was to investigate that issue to root cause. this looks the same. at the time, we suspected there were global locking issues in openshift-sdn.

    /cc @eparis

  4. eparis commented on Sep 20, 2016

    @eparis
    Member

    We did actually manage to eliminate the sdn however, before we go down that route again....

  5. smarterclayton commented on Sep 20, 2016

    @smarterclayton
    Contributor

    After some investigation today (when SDN was not in use) it may have been
    correlated to throttling on secret retrievals. In a local environment
    (bone stock origin 1.4.0-alpha.0) I was able to easily reproduce long
    delays when multiple pods are being scheduled. Calls to docker appeared to
    be fast, but the kubelet itself was reporting
    kubelet_docker_operation_latencies in the tens of seconds even for the 50th
    percentile (but the 90 and 99th were only a few seconds higher).

    On Tue, Sep 20, 2016 at 5:02 PM, Eric Paris [email protected]
    wrote:

    We did actually manage to eliminate the sdn however, before we go down
    that route again....

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #11016 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/ABG_p77Cwb9UTzI91FEYEHI61olYNCpuks5qsEnygaJpZM4KBw1L
    .

  6. timothysc commented on Sep 21, 2016

    @timothysc
  7. added
    kind/test-flake
    on Sep 21, 2016
  8. csrwng commented on Sep 21, 2016

    @csrwng
    Contributor

    Added the test-flake label because other flake issues have been closed/duped in favor of this one.

  9. csrwng commented on Sep 21, 2016

    @csrwng
    Contributor

    I see these errors in a separate failed extended image test:

    E0920 17:47:28.496490   16730 kubelet.go:1816] Unable to mount volumes for pod "mongodb-1-deploy_extended-test-mongodb-replica-a41h3-f5b9t(49f979b4-7f7b-11e6-a225-0e03779dc447)": timeout expired waiting for volumes to attach/mount for pod "mongodb-1-deploy"/"extended-test-mongodb-replica-a41h3-f5b9t". list of unattached/unmounted volumes=[deployer-token-nactn]; skipping pod
    E0920 17:47:28.496507   16730 pod_workers.go:184] Error syncing pod 49f979b4-7f7b-11e6-a225-0e03779dc447, skipping: timeout expired waiting for volumes to attach/mount for pod "mongodb-1-deploy"/"extended-test-mongodb-replica-a41h3-f5b9t". list of unattached/unmounted volumes=[deployer-token-nactn]
    I0920 17:47:28.496820   16730 server.go:608] Event(api.ObjectReference{Kind:"Pod", Namespace:"extended-test-mongodb-replica-a41h3-f5b9t", Name:"mongodb-1-deploy", UID:"49f979b4-7f7b-11e6-a225-0e03779dc447", APIVersion:"v1", ResourceVersion:"3642", FieldPath:""}): type: 'Warning' reason: 'FailedSync' Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "mongodb-1-deploy"/"extended-test-mongodb-replica-a41h3-f5b9t". list of unattached/unmounted volumes=[deployer-token-nactn]
    I0920 17:47:28.496861   16730 server.go:608] Event(api.ObjectReference{Kind:"Pod", Namespace:"extended-test-mongodb-replica-a41h3-f5b9t", Name:"mongodb-1-deploy", UID:"49f979b4-7f7b-11e6-a225-0e03779dc447", APIVersion:"v1", ResourceVersion:"3642", FieldPath:""}): type: 'Warning' reason: 'FailedMount' Unable to mount volumes for pod "mongodb-1-deploy_extended-test-mongodb-replica-a41h3-f5b9t(49f979b4-7f7b-11e6-a225-0e03779dc447)": timeout expired waiting for volumes to attach/mount for pod "mongodb-1-deploy"/"extended-test-mongodb-replica-a41h3-f5b9t". list of unattached/unmounted volumes=[deployer-token-nactn]
    

    which seem to confirm the theory that secrets are taking too long

  10. eparis commented on Sep 22, 2016

    @eparis
    Member

    reassign to tstclair as he was planning to root cause during 1.5.

  11. 108 remaining items

  12. modified the milestones: , 1.5.0 on Mar 12, 2017
  13. derekwaynecarr commented on Mar 13, 2017

    @derekwaynecarr
    Member

    xref: https://bugzilla.redhat.com/show_bug.cgi?id=1422511

    we are hitting cases where docker list images is > 1min to complete, machine is not actually memory starved in those instances where this occurs.

  14. liggitt commented on Jul 18, 2017

    @liggitt
    Contributor

    This p0 has been open for 10 months, and inactive for 4. Is it actionable? If not, is it really a p0?

  15. jwhonce commented on Jul 18, 2017

    @jwhonce
    Contributor

    @liggitt I leave the priority to you to set/change. As to news on the issue, I finally have a reproducer that uses only docker and am working with the performance team to further isolate the cause of the slow downs.

  16. jwhonce commented on Aug 1, 2017

    @jwhonce
    Contributor

    Ops updating their monitoring https://trello.com/c/cB9lX5sb . Suspected cause is volume BurstBalance being exhausted.

  17. xThomo commented on Aug 16, 2017

    @xThomo

    @jwhonce could you give more details on the reproduction of the issue and is there any update on this?

  18. jwhonce commented on Aug 16, 2017

    @jwhonce
    Contributor

    @xThomo The reproducer used docker run in multiple threads which determined the BurstBalance on the volumes was exhausted. The Ops team is now implementing monitoring of that metric to determine if that is the root cause for these issues. Or, if there are other gating factors.

  19. modified the milestones: 3.6.0, on Oct 1, 2017
  20. smarterclayton commented on Jan 23, 2018

    @smarterclayton
    Contributor

    All other issues are separate now. Closing.

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

Metadata

Metadata

Assignees

Labels

component/containerskind/test-flakepriority/P3

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions