14:59:45 #startmeeting craton 14:59:46 Meeting started Mon Nov 28 14:59:45 2016 UTC and is due to finish in 60 minutes. The chair is sigmavirus. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:59:48 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 14:59:50 #chair jimbaker 14:59:51 The meeting name has been set to 'craton' 14:59:52 Current chairs: jimbaker sigmavirus 15:00:44 o/ 15:01:20 sulo, sigmavirus, hope you had a nice weekend 15:01:30 I did and I hope you did too jimbaker 15:02:17 * sigmavirus goes off in search of our agenda 15:02:26 #link https://etherpad.openstack.org/p/craton-meetings 15:02:36 Looks like there's no agenda for today 15:03:02 sigmavirus, ahh, agendas... we have been working off a standing development agenda 15:03:19 issues that what are working on this week 15:03:32 Let's add that to the meeting etherpad then :) 15:03:34 (later) 15:03:44 #action jimbaker to fill out meeting etherpad with generic meeting schedule 15:03:46 #action jimbaker adds standing agenda to craton-meetings etherpad 15:03:56 yep that will do 15:04:45 so let's go through the forthcoming week 15:05:02 sulo, i know you were planning to look at workflows again 15:05:08 anything else on your plate? 15:05:22 yep, just stated that today 15:05:28 (also do ask my help on that patch i gave you re workflow modeling) 15:05:29 na i think ill concentrate on that for now 15:05:45 (as necessary of course) 15:06:24 yep, sure, will do 15:06:37 sulo, we can get back into the details, but workflow is a big enough chunk to mull upon :) 15:06:54 sigmavirus, any updates on the forthcoming week? 15:07:03 Well I'm out starting Wednesday 15:07:12 So I'm going to try to do some more tidying aroudn the client and UX improvements 15:07:22 Might take over some of Harry's reviews for him while I"m here 15:07:26 (if they need taking over) 15:07:40 sigmavirus, thanks for the reminder, and sounds like a good plan. you will be back next monday? 15:07:53 Yes I will 15:07:58 sigmavirus: ah right .. i think i have a few -1s there that need tyding up 15:08:04 And will be around most of December except the around Christmas 15:08:12 sulo: good, I'll look at those 15:08:14 thanks 15:08:18 cool. speaking of such things: i will be out the last 2 weeks of december 15:08:28 same .. i am out from the 12th 15:08:34 great 15:08:39 but i will be online of and on 15:08:43 I'm out starting teh friday before Christmas 15:09:19 sigmavirus can run what will be the very short meeting here when he's around ;) 15:09:23 heh this is going to be a slow month :) 15:09:29 indeed it is 15:09:43 we will have to account accordingly on the roadmap 15:09:54 which i don't think really gets impacted 15:09:58 my turn 15:10:44 friday i got most of the rbac modeling done within the database. so i have something that's working in terms of assigning roles to arbitrary resources in our model 15:11:29 there's more to rbac than that, but this was the piece that's really specific to craton 15:12:01 in particular, one can use an object's resolution_order to describe the scope of a role 15:12:42 eg, if the role fleet:may-do-X is assigned to a region, then any device in that region has that role 15:14:40 i've been working out implications for other aspects. so being able to do stuff like, a workflow can be created by one user ("developer"), then is assigned to a region by another ("authorizer"), and then is run by an operator 15:15:34 so this gets setuid like qualities 15:16:26 but such implication will be seen in the corresponding policy.json that we construct 15:17:02 sigmavirus, i hope you don't mind the mixin approach. but it's really very similar to what was done with variables :) 15:19:02 sulo, i was revisiting governance considerations 15:19:04 jimbaker: I haven't seen it, so it's hard to object 15:19:10 sigmavirus, excellent! :) 15:20:25 sigmavirus, really it's just a triple (resource, principal, role) - the only subtleties are doing the search path with resolution_order; and making it a mixin via a polymorphic association 15:20:49 but both follow the approach we have already done with respect to variables 15:20:55 okay 15:21:17 sulo, https://github.com/NerdWalletOSS/versionalchemy is one aspect of governance 15:21:20 re auditing 15:21:27 o/ 15:21:57 that we might want to look at either using, or least seeing if there's something worth borrowing in terms of approach 15:22:00 syed__, hi 15:22:05 we were just talking about rbac 15:22:40 Hi jim, i hope everyone is doing fine 15:22:47 so i have worked out the db modeling we need (or at least i think i did); and have enough insight to finalize the blueprint 15:22:58 Thats great 15:24:24 any rbac will be a combination of stuff we model in the database; additional policy rules (policy.json) that do the desired forward chaining; and use of oslo.policy decorators in our rest api 15:25:38 so we're planning to register functions for rules, jimbaker ? 15:25:50 perhaps the biggest remaining subtlety is how it interacts with keystone. users looks straightforward, and it's possible that keystone's groups + domains just look like users when we see it 15:25:52 sigmavirus, yeah 15:26:07 jimbaker: did you ever write up the needs/use cases for this rbac? 15:26:20 Also, is there a WIP/POC anywhere with what you have? 15:26:27 sigmavirus, part of the investigation 15:26:54 and here's the relevant gist of my WIP for db modeling - https://gist.github.com/jimbaker/6a4fd7e07a16a318a45d7d1d96819040 15:27:41 sigmavirus, we don't have detailed requirements here. i'm hoping that our discussion with dusty will help precipitate that 15:27:44 cool. 15:27:53 jimbaker: should we let syed__ provide updates? 15:27:54 so just to be clear .. i am not sure i am follwing the rbac thing btw 15:27:56 the discussion has been "we need rbac" 15:28:07 like what are we trying to rbac ? 15:28:16 is it every resource ? 15:29:03 sulo, we need to rbac every resource. the question is, what does that actually mean :) 15:29:19 i guess thats what my question is 15:29:39 sulo, so i'm working on the assumption that we need to divide below the level of a given project 15:30:16 and the easiest way to model this is to use the idea of triples 15:30:47 so for a given resource, principal pairing, we can have a set of roles 15:31:19 because it would be tedious to assign roles for any resource, we need to have some way of providing scope 15:32:17 for a little further clarity: a principal - this follows what gus observed back in the spring - would be users or workflows 15:33:31 we can obviously model this a number of ways, including have a workflow subclass a user. whatever makes the most sense 15:34:10 sulo, hopefully that adds some clarity 15:34:40 yeah, makes a bit more sense 15:34:46 jimbaker: so I have questions based off of what you said, but I'd like to let syed__ fill us in on what he's done 15:34:52 and doing 15:35:03 sigmavirus, agreed - wanted to close one question out a bit 15:35:17 syed__, your turn. what are you working on this week? 15:35:41 the other question is, do you have any vacation plans in december? 15:36:21 I will be working over craton endpoint for network tests 15:36:35 And craton client stuff, i have been digging into rbac little bit 15:36:47 Will close things up in ny court in this week 15:37:01 I have to make sure the schema we are using for craton is same as client 15:37:33 syed__, how does rbac impact the client? 15:38:29 I have not yet fully looked into that. I believe once blueprint is out there will help me get my mind around how we are approaching rbac for craton 15:38:30 i would assume this is just a question of handling 401 15:38:38 "not authorized" 15:38:45 I really dont know about that ... but i guess so 15:39:17 syed__, no worries, just want to make sure there's not something i haven't considered 15:39:43 Adding tests for routes/schemas is also what i will be doing today 15:39:51 i know for sure that i don't know enough yet about the subtleties of keystone's domain/group model, and implications for integration with craton 15:40:28 syed__, sounds good 15:42:37 sigmavirus, one other topic that came up in #craton earlier today 15:43:10 just wanted to follow up on openstack client plugin, or not 15:43:36 sulo, any thoughts on that? 15:44:15 i dont know much about openstack client and its plugin structure etc .. tbh 15:44:40 never used it, so will have to read up on it etc 15:44:57 sulo, i had not investigated either. i was just curious why keystoneclient cli for example was deprecated 15:45:34 i haven't had a chance to properly vet 15:46:20 but it seems to me that if we could support the plugin, it could be worthwhile. oth, people care more about shade, right? 15:46:32 for actual usage 15:47:12 in all such cases, i would assume the underlying python client code is the foundation... 15:47:15 openstack-client was part of a push to have a unified user interface for openstack 15:47:16 jimbaker: so I think you're frankly confusing a bunch of different projects 15:47:27 palendae: is correct, and it's not designed for administrators iirc 15:47:35 it's designed for end users of the cloud 15:47:50 as I understand it, cratonclient is designed for the administrators of a cloud 15:47:56 shade is also designed for end users of MANY clouds 15:48:11 sigmavirus, correct about our target users 15:48:17 sigmavirus: yeah, so thats completely differnt then 15:48:18 e.g., Rackspace Public Cloud, Rackspace Private Cloud, and other openstack public cloud 15:48:30 Shade hides incompatibilities in all three behind a common interface 15:48:57 So when Glance actually lands image creation code that RAX pub cloud could use, then shade will use that for Rackspace Public, and use the regular PUT calls for everything else 15:48:58 And only exposes some of the functionality 15:49:07 (because literally no one else has problems with PUTing image data to glance) 15:49:10 but to further confuse things, we are now looking at admin of non openstack clouds :) 15:49:11 palendae: correct 15:49:12 From their docs: "shade is a simple client library for interacting with OpenStack clouds. The key word here is simple. Clouds can do many many many things - but there are probably only about 10 of them that most people care about with any regularity. If you want to do complicated things, you should probably use the lower level client libraries - or even the REST API directly." 15:49:27 palendae, yes 15:49:38 jimbaker: all the more reason not to try to integrate with OpenStack cilent as the CLI portion of cratonclient 15:49:59 People who might use Craton to manage an AWS cloud probably don't want to download the 50 dependencies of OpenStackClient 15:50:04 sigmavirus, just asking questions here :) 15:50:10 They just want the 5-10 cratonclient deps :) 15:50:41 jimbaker: While the multi-cloud thing is worth staying cognizant of, I think it's also better to get something working first 15:50:52 == palendae 15:50:53 and that makes perfect sense. you would get a quite a bundle 15:51:38 palendae, sigmavirus, i understand. trust me, i'm going to try to push that work to ecosystem 15:52:13 jimbaker: sure, I just really don't think that OSC is where craton's commands live 15:52:22 We can make our commands *better* by mimicking their UX if we want to 15:52:45 sigmavirus, ack. better UX is a good thing 15:52:57 what that specifically is, TBD 15:53:15 so some conclusions then 15:53:36 1. let's continue our craton client CLI work as is 15:54:36 2. if of interest, it should be a straightforward ecosystem task to add an openstackclient plugin, built on this work - especially the underlying python client code 15:54:57 palendae, sigmavirus, sulo - sounds reasonable? 15:55:46 Sure, if someone wants it in openstackclient they can do that work themselves. But I'm inclined to agree with sigmavirus that they have different audiences 15:55:47 (ecosystem task is a term of art where we get someone else to do the work...) 15:56:39 jimbaker: yeah, the person who wants it there can write that code 15:56:46 I don't think it will ever fit in there though 15:56:56 sure. it's the only reasonable way to build out this project. not just being glib here :) 15:57:52 just a few minutes left in our scheduled time 15:58:13 any other questions/concerns before we move back to #craton ? 15:58:53 Any reviews people should prioritize this week? 15:59:19 that is a great question 15:59:33 let's discuss on #craton, time to end this specific meeting 15:59:35 sigmavirus: the one on tests ;) 15:59:46 #endmeeting