Re: Maintenance API question

2016-08-31 Thread Joseph Wu
eph Wu" <jos...@mesosphere.io> > > À: "dev" <dev@mesos.apache.org> > > Envoyé: Mercredi 31 Août 2016 17:16:57 > > Objet: Re: Maintenance API question > > > > Most likely, the hostname and IP you've put into the "machine_Ids" > >

Re: Maintenance API question

2016-08-31 Thread Olivier Sallou
- Mail original - > De: "Joseph Wu" <jos...@mesosphere.io> > À: "dev" <dev@mesos.apache.org> > Envoyé: Mercredi 31 Août 2016 17:16:57 > Objet: Re: Maintenance API question > > Most likely, the hostname and IP you've put into the "

Re: Maintenance API question

2016-08-31 Thread Joseph Wu
Most likely, the hostname and IP you've put into the "machine_Ids" does not *exactly match* the hostname and IP the agent is identifying itself as. If in doubt, you can check the master's /slaves endpoint. Or, you can manually set the hostname and IP when starting the agent. On Wed, Aug 31,

Maintenance API question

2016-08-31 Thread Olivier Sallou
Hi, I am trying to use the /maintenance API for mesos slave maintenance/drain. I follow doc at http://mesos.apache.org/documentation/latest/maintenance/ I use mesos 1.0.1 on a single machine (for dev). When scheduling a node using { "windows" : [ { "machine_ids" : [ { "hostname" :