15:02:57 #startmeeting service-catalog-tng 15:02:58 Meeting started Thu Feb 4 15:02:57 2016 UTC and is due to finish in 60 minutes. The chair is sdague. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:02:59 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 15:03:01 The meeting name has been set to 'service_catalog_tng' 15:03:18 they can check the logs later 15:03:19 Agenda is - https://wiki.openstack.org/wiki/Meetings/ServiceCatalogTNG#Next_Agenda 15:03:35 #topic Project Id Optionality in projects 15:03:54 anne said there was some problem with optional project id. 15:04:04 #info nova patch to make project id optional has landed - https://review.openstack.org/#/c/233076 15:04:15 bknudson_: do you remember what that was? 15:04:24 she didn't say what it was. 15:04:38 I figured you'd know 15:05:17 I guess not 15:05:44 I have a patch up to make this default configuration in devstack, however there are Tempest tests blocking that 15:06:07 those are proposed for removal - https://review.openstack.org/#/c/271467/ - ETA TBD 15:06:18 the tempest change has a -2 so I guess that needs to be resolved 15:06:25 it has a procedural -2 15:06:33 because there is a tempest test removal process 15:06:44 I think it's resolvable 15:07:19 shouldn't be any objection to removing this one 15:07:34 agree 15:07:46 here! Sorry. 15:08:00 annegentle: bknudson_ said you had said there was a problem with optional project id 15:08:12 before we move on I wanted to figure out what that issue was 15:08:13 sdague: yes I might just be behind 15:08:21 sdague: I read your note to the mailing list 15:08:30 sdague: so maybe I misunderstood 15:08:32 annegentle: ah, right, about routing overlap 15:08:33 might be nice to be able to test the same thing somehow, but then the test would have to build the URL itself. 15:08:53 right 15:09:02 which we solved with specifying a project id regex 15:09:06 sdague: did you find a workournd? 15:09:11 sdague: ah ok 15:09:27 yes, the nova solution is a default project id regex which is [0-9a-f]+ 15:09:29 since I assume a user with a token in one project won't even see an instance in another project 15:09:54 bknudson_: right, all decisions in nova are based on the context value of project_id 15:10:01 bknudson_: well, some providers can set up projects as billing dividers 15:10:08 bknudson_: so a scientist might have two projects 15:10:25 annegentle: sure, but they have to specify which project they are acting in when they get the token 15:10:28 bknudson_: but, the token would not be scoped for only two projects. 15:10:42 sdague: yeah, is there still a super-admin token? 15:10:51 sdague: those calls might require indicating which project 15:10:56 keystone doesn't support getting a token scoped to 2 projects. 15:10:57 annegentle: I'm not sure I know what that means? 15:11:29 in order to operate in nova you need a token scoped to a project 15:11:32 bknudson_: sdague: just a sec I'll find the super token ref I'm thinking of 15:11:41 bknudson_: right 15:12:14 bknudson_: as a cloud provider sometimes you need to shut down someone else's server. Is that a scoped project token an admin gets? 15:12:15 and admistrative commands that operate on resources either take the resource id, and admin is allowed to do things because they have the admin role 15:12:35 or there is an all_tenants param for display on list things 15:12:40 which again, requires admin role 15:13:11 without which the user would just get their own tenant 15:13:18 bknudson_: ah, I'm thinking of a domain scoped token, http://docs.openstack.org/developer/keystone/configuration.html#keystone-api-protection-with-role-based-access-control-rbac 15:13:30 is there an example api? I'm not familiar enough with the nova apis 15:13:40 bknudson_: for which? 15:14:11 sdague: an admin shutting down a compute in a different project 15:14:18 http://developer.openstack.org/api-ref-compute-v2.1.html#os-admin-actions-v2.1 15:14:35 specifically, http://developer.openstack.org/api-ref-compute-v2.1.html#resetState 15:15:42 yeh, but DELETE is also admin_or_owner in policy 15:15:44 so in the case of these admin actions the new project ID is in the URL. 15:16:23 the project_id in the url is never actionable 15:16:28 ok 15:16:36 if there is something specifically about a new project_id, it's passed as a query param 15:16:37 the old request would be POST http://openstack/compute/{tenant_id_1}/v2.1/​{tenant_id}​/servers/​{server_id}​/action 15:16:51 not quite 15:16:54 and the new one is POST http://openstack/compute/v2.1/​{tenant_id}​/servers/​{server_id}​/action 15:16:59 http://openstack/compute/v2.1/​{tenant_id_1}​/servers/​{server_id}​/action 15:17:05 and new one is 15:17:13 http://openstack/compute/v2.1/​servers/​{server_id}​/action 15:17:32 oh, the first tenant_id was in the catalog? 15:17:49 the catalog entry returned today is 15:17:52 right 15:17:54 http://openstack/compute/v2.1/​{tenant_id_1}​ 15:18:04 I assume the server_id is unique across projects 15:18:13 server_id is globally unique 15:18:21 so nova doesn't look in the project to find the server 15:18:27 correct 15:18:36 is that only for the admin actions? 15:18:42 no, for everything 15:19:10 this is part of why removing project id was pretty sensible and easy, it's not really a first order construct in our resources 15:19:15 all these docs will have to change! 15:19:18 bknudson_: yep 15:19:31 but, they will be massively less confusing 15:20:10 swift is really the only project where tenant_id is really a container 15:20:15 hopefully nova has some code to verify that the user access to the server 15:20:41 bknudson_: it's funny, WADL has a wrapper, so the docs aren't too hard to change 15:20:53 yes, admin_or_owner policy enforcement 15:21:24 https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L253 15:21:46 good 15:22:07 ok, we good with all that and can move on? 15:22:16 yes, thanks for the explanation 15:22:17 it was a good summary of some of where we stand 15:22:18 yep 15:22:37 annegentle: lastly, were you building the list of projects that would also need this? 15:22:56 sdague: I only got so far 15:23:03 sdague:thinking, just a se 15:23:04 sec 15:23:44 well, if we start from oldest projects first and move forward we can hopefully at least reset expectations a bit, I still expect that to be a Newton thing at this point 15:24:28 sdague: yeah, this is the list that is not investigated https://wiki.openstack.org/wiki/API_Working_Group/Current_Design/Service_Catalog#Projects_that_I_couldn.27t_find_in_a_service_catalog_and_will_need_to_investigate_further 15:24:39 ok, great! 15:25:00 sdague: so does anything need to happen with this list? https://wiki.openstack.org/wiki/API_Working_Group/Current_Design/Service_Catalog#These_projects_have_a_TENANT_ID_in_one_of_the_example_service_catalogs 15:25:37 I think for Mitaka we are probably out of runway, but we should come up with a Newton push plan. We can wait until M3 for that 15:26:05 we can put nova in a new category -- projects that have tenant_id in the catalog but it's optional 15:26:08 #action around M3 revisit how we'll push for project_id optionality in projects for Newton 15:26:15 bknudson_: yep 15:26:21 bknudson_: ok, that's for mitaka right? 15:26:30 annegentle: yes, we've landed the code 15:26:34 sdague: ok 15:26:39 ok, moving on.... 15:26:50 I'll make that change in the wiki 15:26:55 bknudson_: sounds goo 15:26:58 good even 15:27:07 #topic Service Common Names 15:27:30 I kicked this one off on the list this morning, it's been bubbling about recently quite a bit 15:27:36 http://lists.openstack.org/pipermail/openstack-dev/2016-February/085748.html 15:28:04 I think we can mostly drive the discussion there and let people settle on the fact that we need to do this thing 15:28:12 which is the way the wind is blowing now 15:28:36 I think there is just a mechanics issue of where the registry actually is 15:28:55 sdague: do you think there's pushback on where? 15:29:07 sdague: or "who will do the work and be responsible?" <-- that's more my take 15:29:32 I always thought the name registry should be in projects.yaml or some TC repo, not keystone. 15:29:38 I think the question seemed to be whether etowes was ok with it being part of API-WG repo 15:29:44 keystone just stores whatever you put in it. 15:29:54 bknudson_: right, definitely agree with that 15:30:15 it's just whether the TC does this directly, or basically gives API WG authority to do it 15:30:36 I figured I'd let that one just simmer a bit 15:30:58 personally, mostly don't care, as long as we get vague concensus 15:31:08 it'll be interesting to see how keystone gets at the info if we think we need keystone to enforce it. 15:31:20 bknudson_: I don't think keystone should enforce it 15:31:38 I'm ok with keystone being dumb store for what people say 15:32:05 works for me 15:32:22 ok, that was mostly an FYI, please get onto the thread and we'll drive discussion there 15:32:38 #topic JSON Schema for SC 15:32:53 bknudson_: I think 2 weeks ago you said you'd take a first swipe at such a thing 15:32:59 any progress so far? 15:33:07 y, I didn't get this done. 15:33:12 ok, no prob 15:33:14 didn't happen at the keystone meetup 15:33:24 I'll throw it at the top of my work queue 15:33:35 I'll keep it as standing item on the agenda so we don't forget 15:33:41 sounds good 15:33:45 #topic Open Discussion 15:33:54 I got nuthin' 15:34:11 I'm actually pretty familiar with the JSONSchema spec now since I was reviewing some changes. 15:34:15 I can talk to Everett etowes this morning 15:34:47 the only thing there is I've been bad advertising this meeting. So if anyone knows anyone that wants to help step up as meeting promoter for this, let me know. I'll put a call out to a few folks as well. 15:34:53 sdague: I think some of the discussion also is in https://review.openstack.org/#/c/273158/ 15:35:15 annegentle: yeh, the experimental APIs one 15:35:17 sdague: as far as differentiation at the resource level 15:36:00 sdague: I'm not sure we should offer experimental at all 15:36:12 annegentle: I mostly agree 15:36:19 sdague: most API designs have to be fully baked to be competitive in the market 15:36:21 but if people want to, it shouldn't be in the same API 15:36:22 keystone as JSONHome and that's where we specify experimental. 15:36:23 it's a trust thing 15:36:39 sdague: yeah we need to be precise -- API or endpoint? 15:36:47 endpoint 15:36:48 sdague: I'm all for a second experimental endpoint, I think. 15:36:51 sdague: ok yeah 15:37:04 and the API is the GET /blah/resources right? In that spec ^^ 15:37:11 we also called some APIs extensions and they could be disabled 15:37:14 sdague: I need to write a review there 15:37:22 yeh, I'll go pile on a bit later on that 15:37:23 bknudson_: ugh those are the worst to document and use tho 15:37:25 sdague: ok 15:37:43 "If you're going to experiment, put it on a separate endpoint" 15:37:44 I agree that it's not fun to have optional apis. 15:37:53 ok, anything else from folks? 15:37:56 nopety 15:38:03 great, thanks folks 15:38:07 heh a nope and a thank you combo 15:38:07 #endmeeting