def stop(hosts): resp = complete_maintenance(hosts, client=client[0]) if not resp: log.error("Complete maintenance failed:" + resp) return resp # The mesos-agent containers needs to be started explicitly as they would # have been stopped when the agents transition to DOWN Container(hosts).start() del draining_hosts[:] return resp
def stop(hosts): resp = complete_maintenance(hosts) if not resp: log.error("Complete maintenance failed:" + resp) return resp for h in hosts: draining_hosts.remove(h) # The mesos-agent containers needs to be started explicitly as they would # have been stopped when the agents transition to DOWN Container([h]).start() return resp