Skip to content

Garbage collector deleted deployer pod prematurely #13995

Closed

Description

@ncdc

Forking from #13943 (comment)

In at least 1 CI run, the kube garbage collector controller decided to delete the ipfailover-1-deploy pod shortly after it was created and scheduled to a node. It looks like it fell through to here which resulted in the deletion.

cc @Kargakis @mfojtik @smarterclayton @sttts @deads2k @liggitt @soltysh

Activity

  1. 0xmichalis commented on May 2, 2017

    @0xmichalis
    Contributor

    @mfojtik probably unrelated but I just realized that you set the DC ref into the deployer pods.. Should be the RC.

  2. mfojtik commented on May 2, 2017

    @mfojtik
    Contributor

    hrm. i thought the deployer pods already have owner ref set.

  3. ncdc commented on May 2, 2017

    @ncdc
    ContributorAuthor

    It does, but GC couldn't find it?

  4. ncdc commented on May 2, 2017

    @ncdc
    ContributorAuthor

    I ran oc delete ...; oadm ipfailover in a loop and was not able to reproduce locally.

  5. mfojtik commented on May 29, 2017

    @mfojtik
    Contributor

    @ncdc the #13996 should properly set the owner reference for the deployer pod and also for the lifecycle pods.

    @Kargakis ok to close this or is there something left (besides dc->rc) ?

  6. 0xmichalis commented on Jun 2, 2017

    @0xmichalis
    Contributor

    IIUC, the problem wasn't that we were setting the wrong Kind in the owner reference since the GC only cares about the UID. If that's correct, then this issue is not fixed?

  7. liggitt commented on Jun 2, 2017

    @liggitt
    Contributor

    the GC only cares about the UID. If that's correct, then this issue is not fixed?

    I don't think that is correct... GC cares about kind as well, right @deads2k ?

  8. 0xmichalis commented on Jun 2, 2017

    @0xmichalis
    Contributor

    I am pretty sure we (@mfojtik and I) tested this and it was just the UID.

  9. deads2k commented on Jun 2, 2017

    @deads2k
    Contributor

    I am pretty sure we (@mfojtik and I) tested this and it was just the UID.

    If its just the UID, that sounds like a bug.

  10. 31 remaining items

  11. mfojtik commented on Jun 9, 2017

    @mfojtik
    Contributor

    @Kargakis yes that is the problem we seeing in free-int, rolling back will at least allow us to proceed with upgrade (not sure in what state that will leave the prod)

  12. 0xmichalis commented on Jun 9, 2017

    @0xmichalis
    Contributor

    In order for automatic rollback to work, a complete deployment needs to exist in the history of a DC.

  13. mfojtik commented on Jun 9, 2017

    @mfojtik
    Contributor

    @Kargakis router-384 doesn't seems like an initial deployement.

  14. 0xmichalis commented on Jun 9, 2017

    @0xmichalis
    Contributor

    @mfojtik not sure that's helpful. Do you have controller logs somewhere and the actual manifests? router-384 doesn't seem to be included in Justin's link.

  15. smarterclayton commented on Jun 9, 2017

    @smarterclayton
    Contributor

    All of the DCs already existed.

  16. mfojtik commented on Jun 9, 2017

    @mfojtik
    Contributor

    @Kargakis was answering the question of previous deployment needs to exists :-)

    my question is why the automatic rollback on failure had not kicked in...

    don't have controller/api master logs, but it is easy to reproduce locally, just delete deployer pod in middle of the deployment. what @smarterclayton is saying is that in such case we should rollback automatically and not leave the deployment in failed state (in this case with 0 pods running).

  17. smarterclayton commented on Jun 9, 2017

    @smarterclayton
    Contributor

    Let's spawn the "didn't rollback" as a separate high priority issue.

  18. 0xmichalis commented on Jun 10, 2017

    @0xmichalis
    Contributor

    That's what I was going to suggest - opened #14561

  19. 0xmichalis commented on Jun 10, 2017

    @0xmichalis
    Contributor

    Two out of three controller manager instaces fail on leader election for more than 2 hours, from 18:10 up until 20:38(EOF) and there is an unusual amount of dropped watches and TLS handshake errors in the API servers.

  20. mfojtik commented on Jun 11, 2017

    @mfojtik
    Contributor

    I wonder if we can enable more verbose logging in free-int, to see the REST requests at least which will give us timeline of events (why and by whom the RC/deployer was deleted)

  21. jupierce commented on Jun 11, 2017

    @jupierce
    Contributor

    Which RC? I deleted docker-registry RC in this environment before to force a redeployment. On June 8th sometime. This problem observed in free-int appears to be affecting all DCs, not just docker-registry.

  22. mfojtik commented on Jun 12, 2017

    @mfojtik
    Contributor

    Seems like the wrong apiVersion in ownerRef was used: #14582

  23. stevekuznetsov commented on Jun 12, 2017

    @stevekuznetsov
    Contributor

    Router/registry rollout confirmation for Ansible is here: openshift/openshift-ansible#4402

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