You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2018/01/06 02:00:00 UTC

[jira] [Created] (MESOS-8410) Reconfiguration policy fails to handle mount disk resources.

James Peach created MESOS-8410:
----------------------------------

             Summary: Reconfiguration policy fails to handle mount disk resources.
                 Key: MESOS-8410
                 URL: https://issues.apache.org/jira/browse/MESOS-8410
             Project: Mesos
          Issue Type: Bug
            Reporter: James Peach


We deployed {{--reconfiguration_policy="additive"}} on a number of Mesos agents that had mount disk resources configured, and it looks like the agent confused the size of the mount disk with the size of the work directory resource:


{noformat}
E0106 01:54:15.000123 1310889 slave.cpp:6733] EXIT with status 1: Failed to perform recovery: Configuration change not permitted under 'additive' policy: Value of scalar resource 'disk' decreased from 1830000 to 868000
{noformat}

The {{--resources}} flag is
{noformat}
--resources="[
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 868000
    }
  }
  ,
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 1830000
    },
    "disk": {
      "source": {
        "type": "MOUNT",
        "mount": {
          "root" : "/srv/mesos/volumes/a"
        }
      }
    }
  }
  ,
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 1830000
    },
    "disk": {
      "source": {
        "type": "MOUNT",
        "mount": {
          "root" : "/srv/mesos/volumes/b"
        }
      }
    }
  }
  ,
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 1830000
    },
    "disk": {
      "source": {
        "type": "MOUNT",
        "mount": {
          "root" : "/srv/mesos/volumes/c"
        }
      }
    }
  }
  ,
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 1830000
    },
    "disk": {
      "source": {
        "type": "MOUNT",
        "mount": {
          "root" : "/srv/mesos/volumes/d"
        }
      }
    }
  }
  ,
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 1830000
    },
    "disk": {
      "source": {
        "type": "MOUNT",
        "mount": {
          "root" : "/srv/mesos/volumes/e"
        }
      }
    }
  }
  ,
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 1830000
    },
    "disk": {
      "source": {
        "type": "MOUNT",
        "mount": {
          "root" : "/srv/mesos/volumes/f"
        }
      }
    }
  }
  ,
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 1830000
    },
    "disk": {
      "source": {
        "type": "MOUNT",
        "mount": {
          "root" : "/srv/mesos/volumes/g"
        }
      }
    }
  }
  ,
  {
    "name": "disk",
    "type": "SCALAR",
    "scalar": {
      "value": 1830000
    },
    "disk": {
      "source": {
        "type": "MOUNT",
        "mount": {
          "root" : "/srv/mesos/volumes/h"
        }
      }
    }
  }
]
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)