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

Add "wipe=true" support for pod's instances endpoint, as it is implemented for app's tasks

    Details

    • Type: Task
    • Status: Resolved
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: DC/OS 1.12.0, DC/OS 1.11.5
    • Component/s: API
    • Labels:
      None

      Description

      Currently, the apps tasks endpoint has support for telling Marathon to simply forget about some instance (kill it, but don't wait for confirmation that it is killed). This is helpful for instances where a task is unreachable, and is critical for pods with persistent volumes, as there is not a way to delete a persistent volume for a pod, and unreachable strategy does not apply for resident pods.

      Documentation for the wipe flag for the apps tasks endpoint

      Current documentation for pod instance delete endpoint

      Acceptance criteria

      • Given a pod mypod instance deadbeef with persistent volumes
        And given that the instance becomes unreachable
        When I call DELETE /mypod::instances/DEADBEEF?wipe=true
        Then the pod becomes erased from Marathon's knowledge
        And a new pod with a new persistent volume is scheduled
        When the task associated with deadbeef becomes reachable again
        Then Marathon kills the task and removes the associated reservation and volume
      • Given a pod mypod instance deadfeeb without persistent volumes
        And given that the instance becomes unreachable
        When I call DELETE /mypod::instances/DEADFEEB?wipe=true
        Then the pod becomes erased from Marathon's knowledge
        And a new pod is scheduled
        When the task associated with deadfeeb becomes reachable again
        Then Marathon kills the task
      • The wipe parameter is documented in Marathon and DC/OS docs
      • The wipe parameter is covered by Unit and Integration Tests

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nikitamelkozerov Nikita Melkozerov (Inactive)
                Reporter:
                tharper Tim Harper
                Team:
                Orchestration Team
                Watchers:
                Chris Gaun, Ian Fraser, Josh Baverstock (Inactive), Matthias Eichstedt, Shafique Hassan, Tim Harper, Yishan Lin (Inactive)
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: