Skip to content

operator should handle MCD sync gracefully #407

Closed

Description

@cgwalters

We need to start doing testing of oc adm upgrade including a new MCO codebase.

Rolling out a new MCC may involve e.g. new configs being generated, which could start machine updates. If the MCD on a node is involved in trying to do that sync, it's going to be disruptive to have it be replaced by the MCO updating the MCD daemonset.

Offhand...I think if we're operating on an existing cluster, the operator should pause until the pools are idle, then roll out the MCD first?

Activity

  1. changed the title [-]operator should hande MCD sync gracefully[/-] [+]operator should handle MCD sync gracefully[/+] on Feb 21, 2019
  2. runcom commented on Feb 22, 2019

    @runcom
    Member

    what I'm seeing on oc adm upgrade is that the new operator is (ofc) the one being rolled out, do you mean we should pause the new operator until all old pools are idle?

  3. cgwalters commented on Feb 22, 2019

    @cgwalters
    MemberAuthor

    At the moment it's dangerous to kill the MCD unless it's idle. We can and should harden things against that - there are small things we could do which would make it more reliable, but getting to "100% interruptable"...not easy.

    Simplest thing I think is to enforce the property "if a pool is updating" then "ds/machine-config-daemon is complete".

    do you mean we should pause the new operator until all old pools are idle?

    So in this case yeah I think the new operator would come on and see the pools are active, and avoid rolling out the new MCD.

    Maybe what we want is something like a Paused element in the controller config; the operator sets that when it detects it's upgrading, and the render controller would then stop generating new rendered MCs. That way we ensure progress

    Another thing we should do that would be complementary is for the daemon to catch the SIGTERM for pod termination and if it's actively working, ignore it. And we can bump terminationGracePeriodSeconds.

  4. runcom commented on Mar 13, 2019

    @runcom
    Member

    can this be closed due to #477

  5. runcom commented on Mar 15, 2019

    @runcom
    Member

    as discussed during sync, we feel #477 cover pretty much this, closing, feel free to reopen if you feel otherwise

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions