/srv/irclogs.ubuntu.com/2014/03/26/#maas.txt

bigjoolshey jtv did you merge your intergration branch changes into trunk again?04:45
bradmif I was to have some nodes I wanted to allocate to a maas user, how would I do that?05:01
bradmbigjools: ^^ any ideas?05:06
bigjoolsbradm: there's no feature to do that on someone's behalf05:07
bigjoolsyou would need the user to have a maas account05:07
bradmbigjools: when I mean a maas user, I mean a maas account05:07
bradmbigjools: ie, I created the account, I want to allocate some nodes to it, but the account doesn't have much in the way of perms05:08
bigjoolsbradm: sorry I don't really understand what you mean05:08
bigjoolsaccount where?05:08
bradmbigjools: the maas account on the maas controller - done via the web ui05:08
bigjoolsok so that's a maas user05:09
bigjoolssame as account05:09
bradmah, right05:09
bradmwell, I have one of those, and I want to allocate some nodes to it05:09
bigjoolsyou have to do it logged in as that user05:09
bradmso that user can only touch those nodes05:09
bradmhuh, really.  so its not so much as permissions, as whoever grabs it first can have it05:11
bradmbigjools: ok, so how do you then add the nodes to the user?05:12
bigjoolsbradm: the user requests a node using their own account05:13
bradmbigjools: uh, but we only want the user to be able to request two specific nodes, there's no way to lock it down to that?05:14
bigjoolsbradm: no05:14
bigjoolsit works like a cloud05:14
bradmbigjools: ouch.05:14
bigjoolsyou are supposed to use request constraints as the user to get a specific machine05:15
bigjoolsyou're asking for a "reserved" instance in effect05:15
bradmbigjools: essentially I think we want it to act like specific pools of resources allocated for particular users.05:16
bradmbigjools: so to step back, what we're trying to do here is allocate certain resources to webops, and certain resources to archive servers - and we don't want webops to be able to touch the archive servers, just for safetys sake.  it sounds like this isn't a supported scenario in the same region, and we'd have to make up different regions for this?05:17
bradmI might be getting regions and clusters confused here05:18
bradmbigjools: what would be the supported way to handle that?  particularly given the resources could be on the same vlan?05:28
bradmbigjools: I guess that means we should stop wanting that then? :)06:00
bigjoolsbradm: sorry otp06:01
bradmbigjools: no worries06:02
bigjoolsbradm: ok back06:22
bigjoolsbradm: there is no way to do what you want right now06:22
bigjoolsother than installing one maas per user06:23
lifelessOne maas per child106:25
bigjoolso/ lifeless06:27
bigjoolsbradm: if it's any consolation we have talked about this before :)06:27
bigjoolsbradm: in the API there is a way to acquire a node without starting it.  It's a bit of a hack but could work for you.06:28
jtvbigjools: maybe have an admin allocate the node, and change the owner?06:35
bigjoolsjtv: how can we change the owner?06:35
jtvPUT to the node.06:35
jtvNot sure if we support that.06:36
bigjoolsaieeee06:36
bigjoolswe don't :)06:36
jtvah06:36
bigjoolsbut bradm is talking about limiting what a user can use in a pool06:36
bigjoolswe have no way of doing that06:36
jtvRight.06:37
=== CyberJacob|Away is now known as CyberJacob
bradmbigjools: so the tl;dr is no ponies for us?07:12
bigjoolsSOL07:12
bradmbigjools: hmm.  given the dhcp is restricted per mac, I guess we could end up with a maas region + controller per user, that means a box per though07:13
bigjoolsbradm: or you could do a feature request07:13
bradmbigjools: how do we do that?07:13
bigjoolsbradm: filing a bug would be a good start :)07:14
bradmbigjools: "Please bigjools, I want a pony!" ?07:14
bigjoolsand then escalate07:14
jtvI imagine that would escalate only in the sense that violence does.07:15
bradmbigjools: righto, it does seem like something that would be generically useful - I think the way we were thinking was you could allocate nodes to a user (from an admin account), and then they could just see and use resources from there07:16
bigjoolsbradm: this is the eternal problem of peope stating their desired solutions rather than explaining their problems and desired outcomes07:16
bigjoolspeople*07:16
bigjoolswe'd implement this with reserved instances07:17
bigjoolsso only the person or persons on the reservation list could start a node07:17
bradmand you could associate reserved instances with different people?  or there's just one list?07:18
bradmanyway, thats really implementation details, let me write up a bug and see if it makes sense.07:22
bradmbigjools: LP#129766207:31
bradmbigjools: let me know if it makes sense, or needs any more info, or whatever07:31
=== zchander_work is now known as zchander
=== CyberJacob is now known as CyberJacob|Away
allenapblake_r: Hi. Ping me when you start. I need to talk some more about UEFI.11:55
blake_rallenap: I am here12:45
perrito666Hey, is there API to query networks for an already provisioned network?13:10
perrito666rvba: allenap <poke> mgz suggeted that you might know :)13:13
=== roadmr_afk is now known as roadmr
rvbaperrito666: this is the doc for trunk (i.e. not yet published): http://people.canonical.com/~rvb/maas-docs/api.html Search for 'Read network definition' in there.13:19
perrito666rvba: thank you very much13:21
rvbawelcome13:21
allenaprvba: You *just* beat me to it. Hi there perrito666!13:21
perrito666hello allenap13:23
perrito666rvba: sorry I have a doubt, in GET /api/1.0/networks/ which has a param node, what exactly is node? (I mean what field of node is expected to be used as id there)14:50
rvbaperrito666: Yeah, it's not really clear.  The node is in fact the node's system_id field.14:52
perrito666rvba: thank you14:53
perrito666rvba: allenap also, what is the structure returned by the networks api call?16:28
rvbaperrito666: a network, like all the other objects returned by the API, is a json dict.16:34
perrito666is there any doc of the key/values for each call?16:35
rvbaI don't think there is proper documentation for this unfortunately.16:36
rvbaThe fields are 'name', 'ip', 'netmask', 'vlan_tag', 'description'16:36
perrito666rvba: once again, thank you :)16:37
rvbanp16:37
=== roadmr is now known as roadmr_afk
=== drussell is now known as honey_nut_loops
=== honey_nut_loops is now known as drussell
=== roadmr_afk is now known as roadmr
=== CyberJacob|Away is now known as CyberJacob
=== roadmr is now known as roadmr_afk
=== CyberJacob is now known as CyberJacob|Away
bigjoolsbradm: did you see the response to https://bugs.launchpad.net/maas/+bug/129766223:31
ubot5Ubuntu bug 1297662 in MAAS "MAAS doesn't have nodes reserved for users" [Undecided,New]23:31
bradmbigjools: I did - I'm not sure I really understand how that would work, though - does juju integrate with landscape now?23:34
bigjoolsbradm: I am not sure how they integrate, you're best talking to Landscape guys to see what they are implementing23:35
bradmbigjools: righto, we'll have a chat and see what the plans are with them.23:36
bigjoolscool23:37

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!