Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4985

Destroy a container while it's provisioning can lead to leaked provisioned directories.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.28.0
    • 0.28.1
    • containerization

    Description

      Here is the possible sequence of events:
      1) containerizer->launch
      2) provisioner->provision is called. it is fetching the image
      3) executor registration timed out
      4) containerizer->destroy is called
      5) container->state is still in PREPARING
      6) provisioner->destroy is called

      So we can be calling provisioner->destory while provisioner->provision hasn't finished yet. provisioner->destroy might just skip since there's no information about the container yet, and later, provisioner will prepare the root filesystem. This root filesystem will not be destroyed as destroy already finishes.

      Attachments

        Issue Links

          Activity

            People

              gilbert Gilbert Song
              jieyu Jie Yu
              Jie Yu Jie Yu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: