Project: mesos
Issue MESOS-3038: Resource offers do not contain Unavailability, given a maintenance schedule
Given a schedule, defined elsewhere, any resource offers to affected slaves must include an Unavailability field. The maintenance schedule for a single slave should be held in [persistent storage|MESOS-2075] and locally by the master. i.e. In src/master/master.hpp: {code} struct Slave { ... // Existing fields. // New field that the master/allocator can access Maintenances pendingDowntime; } {code} The new field should be populated via an API call (see [MESOS-2067]). The Unavailability field can be added to Master::offer (src/master/master.cpp). {code} offer->mutable_unavailability()->MergeFrom(slave->pendingDowntime); {code} Possible test(s): * PendingUnavailibilityTest ** Start master, slave. ** Check unavailability of offer == none. ** Set unavailability to the future. ** Check offer has unavailability.
Story points: 8