Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-3921

COPS-3527 make_disk_resources uses free instead of total amount of disk space available on mount volumes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: DC/OS 1.9, DC/OS 1.10, DC/OS 1.11
    • Fix Version/s: DC/OS 1.10.9, DC/OS 1.11.6
    • Component/s: dcos-installer
    • Labels:
      None
    • Sprint:
      CLI Team Sprint 26, CLI Team Sprint 27
    • Story Points:
      8

      Description

      The script https://github.com/dcos/dcos/blob/master/packages/mesos/extra/make_disk_resources.py currently creates a file /var/lib/dcos/mesos-resources used by Apache Mesos to know its resources.

      The script uses the free amount of space on each disk to create the file. When an agent is restarted this causes if the disk has been used as the amount of free space is not the same and Mesos agent process thus refuses to restart. This happens in https://github.com/apache/mesos/blob/master/src/common/resources_utils.cpp

      We need to fix https://github.com/dcos/dcos/blob/master/packages/mesos/extra/make_disk_resources.py so that it uses the total amount of space available on mounted disks, not the free amount.

      The change should be easy but testing and landing the changes will be more complicated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                agrillet Armand Grillet
                Reporter:
                agrillet Armand Grillet
                Team:
                CLI Team
                Watchers:
                Armand Grillet, Daniel Baker, Lee Hambley (Inactive), Mergebot
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: