Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-8295

Cleaner way to unreserve wiped reservation

    Details

    • Type: Task
    • Status: Accepted
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Storage Volumes
    • Labels:

      Description

      The current logic lives in OfferMatcherReconciler and it basically unreserve all the reservations that we don't know from the current instance state from InstanceTracker. That's potentially dangerous. When killing with wipe=true we force expunge the instance in TaskKiller and with that we ensure that the reservation is wiped next time we get an offer.

      Better approach would be:

      1. we receive kill with wipe=true for resident instance
      2. we set the goal to decommissioned
      3. we wait for the task to be killed
      4. we do NOT expunge
      5. we wait for the reservation to come back in offer
      6. we wait till the unreserve operation is ACKed from mesos (offer operation feedback?)
      7. then we expunge

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alenavarkockova Alena Varkockova
                Team:
                Orchestration Team
                Watchers:
                Alena Varkockova, Ken Sipe
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: