Hi Rinaldo, sorry about the trouble you're having in getting this to work! If I got this one right, the original requirement was...
I have some tasks that need to run on different types of agents. for that, I think you can use either (or both) of `roles` and `attributes` (see the Configuration doc [0] for more info). If you would like to run a 0.24 Mesos on your Mac for testing, you could use the Mesosphere published packages[1] or, if Vagrant is more your thing, feel free to "take inspiration" form [2]. Finally, to build on OSX, you'll need to install libsvn-1 as described in [3]. I'm afraid I don't know enough about Dynamic Reservation to really be able to help here; but I suspect that, if you run *without* authentication enabled, it will accept *any* principal (did you try that already? what error did you get?) Feel free to drop me a line if you're still having trouble. [0] http://mesos.apache.org/documentation/latest/configuration/ [1] http://mesosphere.com/downloads [2] https://github.com/massenz/zk-mesos/tree/develop/vagrant [3] http://mesos.apache.org/gettingstarted/ (see the OSX section; in particular: `$ brew install autoconf automake libtool subversion maven`) *Marco Massenzio* *Distributed Systems Engineerhttp://codetrips.com <http://codetrips.com>* On Mon, Sep 28, 2015 at 1:59 PM, DiGiorgio, Mr. Rinaldo S. < [email protected]> wrote: > > On Sep 21, 2015, at 7:33 PM, Guangya Liu <[email protected]> wrote: > > HI Rinaldo, > > I think that you can use dynamic reservation feature to achieve this: You > can launch your tasks after reservation succeeds. Actually, all of the > dynamic reservation feature with endpoint has been finished except ACL > part, so you can use this feature now if you do not care ACL part. > > Thanks, > > > Hi Guangya, > > I have bene trying to get dynamic reservations to work. I downloaded the > latest from git and created a small environment on OS X 10.10. I am trying > to use reservations and I am not making much progress. I tried to get it > to work without authentication and was unable to. I used the ANY option and > it still required a principal. I am unable to configure the master to work > without authentication. Do you have some simple configs for starting a > master with no authentication required so that it can be used to set > dynamic reservations. > > The output below is for authentication. I tried to authenticate from a > slave and it failed with a coredump. > > > > I start mesos like this: > > mesos-master.sh —ip=nnn,nnn,nnn,nnn --work_dir=/var/lib/mesos > --acls=$BASE/acls --credentials=$BASE/credentials > > bash-3.2# cat attributes/acls > { > "register_frameworks": [ > { > "principals": { "type": "mesos-mach5-beta" }, > "roles": { "values": "ANY" } > } > ], > "run_tasks": [ > { > "principals": { "values": "ANY" }, > "users": { "values": "ANY" } > } > ], > "shutdown_frameworks": [ > { > "principals": { "values": "mesos-mach5-beta" }, > "framework_principals": { "values": "ANY" } > } > ] > } > > bash-3.2# cat attributes/credentials > { > "credentials": [ > { > "principal": "mesos-mach5-beta", > "secret": "password" > } > ] > } > > > > When I try the following I am told I am not authorized. > > > > Guangya > > On Tue, Sep 22, 2015 at 6:32 AM, DiGiorgio, Mr. Rinaldo S. < > [email protected]> wrote: > >> Hi, >> >> I have some tasks that need to run on different types of agents. I >> don’t want the tasks to run unless I am going to have all the resources. >> Can someone suggest how I could accomplish that with mesos. I read about >> reservations here: >> http://mesos.apache.org/documentation/latest/reservation/ >> >> I could iterate over all the resources I need and if I get them >> proceed. >> >> Is that the only way to do it? >> >> Any idea when coming soon will be available? >> >> /reserve (*Coming Soon*) >> >> Suppose we want to reserve 8 CPUs and 4096 MB of RAM for the ads role on >> a slave with id=<slave_id>. We send an HTTP POST request to the /reserve HTTP >> endpoint like so: >> >> >> Rinaldo >> >> >> > >

