06:00:01 #startmeeting nova api 06:00:02 Meeting started Wed Jul 11 06:00:01 2018 UTC and is due to finish in 60 minutes. The chair is gmann. Information about MeetBot at http://wiki.debian.org/MeetBot. 06:00:03 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 06:00:05 The meeting name has been set to 'nova_api' 06:00:11 PING List: gmann, alex_xu 06:00:14 who all here today 06:00:15 o/ 06:00:19 alex_xu: hi 06:00:29 gmann: good afternoon 06:00:38 good afternoon 06:01:00 o/ 06:01:03 o/ 06:01:41 jichen: Kevin_Zheng : hi 06:01:46 let's start 06:01:59 #link https://wiki.openstack.org/wiki/Meetings/NovaAPI#Agenda_for_next_Office_hours 06:02:11 ^^ generic agenda for this office hour 06:02:15 o/ 06:02:22 yikun: hi 06:02:35 #topic Priorities 06:02:45 #link https://etherpad.openstack.org/p/rocky-nova-priorities-tracking 06:02:57 we will go through the API section in above etherpad 06:03:06 ok 06:03:17 line 57 06:03:33 1. Servers Ips non-unique network names 06:03:54 spec update is merged last week. #link https://review.openstack.org/#/c/558125/ 06:05:27 Maciej Kucia started code also but month back 06:06:07 Is there code patch ? I only saw a doc patch 06:06:17 i do not irc nick and changes should be straight forwards. if no updated since week, may be i can update the code for this BP 06:06:38 yea, that patch only. in same patch code needs to be updated. 06:06:57 i will check with Maciej about progress. 06:07:04 2.Abort live migration in queued state: 06:07:04 ok, got it 06:07:41 this is from Kevin_Zheng and i think good to review from us. i have added this in my today list. 06:08:23 I got a question about this one 06:08:28 Kevin_Zheng: anything you want to discuss on this then review 06:08:28 API related 06:08:37 yeah go head 06:08:49 in the patch, I have a rpc version check 06:09:18 like if the compute can do 5.1 then it can abort migration in queued status 06:09:23 if cannot do 5.1 06:09:33 then I trough an exception 06:09:50 my question is, should I mention that compute is not new enoguh? 06:09:53 enough 06:10:13 you mean this - 06:10:15 #link https://review.openstack.org/#/c/568542 06:10:18 will that be too much admin details for normal user? 06:10:57 yeah 06:11:10 if it is like what I did in the current patch 06:11:57 it seems a little wierd, as an user I requested 2.64 and then nova replied to me that migration is not in correct status 06:11:58 I think we have some example in the before 06:12:23 seems not correct with the mircorversion 06:12:34 yeah i am searching for that 06:12:50 Yeah, we have some, yikun is also working on one with this kind of server version check 06:13:18 just wondering if it is good to let normal user know that some of the node is not new enough 06:13:39 ^ https://review.openstack.org/#/c/567534/30/nova/api/openstack/compute/server_groups.py@190 06:13:40 this one - 06:13:42 #link https://github.com/openstack/nova/blob/d3fa585f5e2d11a91ee62744a0cf0c78921a47e4/nova/compute/api.py#L1033 06:14:24 you can add new exception like this - #link https://github.com/openstack/nova/blob/c8b93fa2493dce82ef4c0b1e7a503ba9b81c2e86/nova/exception.py#L2294 06:14:55 hmm that seems better 06:15:21 Yikun, maybe you should do something similar? 06:15:23 yeah, so we should NOT expose something like "all compute services needs upgrade to Rocky" 06:15:27 Kevin_Zheng: we will tell node is old we will just say this feature not supported so that user will contact admin for details 06:15:28 yeah 06:15:34 also this one #link https://github.com/openstack/nova/blob/stable/ocata/nova/compute/rpcapi.py#L1114 06:15:53 maybe the version thing should be appare in the log? 06:15:57 yeah crash dump one alaos 06:16:07 Kevin_Zheng: i think no. 06:17:07 why not, seems better for operators 06:17:52 yes, logs are only viewable to operators... 06:17:55 why we didn't check service version instead of rpc version? 06:18:09 they are different cases 06:18:17 for which case 06:18:20 yikun's case we check service version 06:18:27 my case check for rpc version 06:18:40 for log, I mean both version 06:18:44 both case 06:19:35 but operator knows features support from reno and microversions info. 06:19:47 Kevin_Zheng: I mean your case can be done by the service version check also? 06:21:39 yeah, but this way is similar, I also did some negotiation in rpc 06:21:43 alex_xu: you mean in compute.api.py only like thrust certificate 06:22:02 gmann: yea 06:22:34 ok, that seems better for me too 06:22:41 we can stop the API early, and it is more clear in the code 06:22:45 I don't think so 06:23:05 it is not the same with the certificate one 06:23:24 my patch is depend on the migration status 06:23:31 and it changes 06:23:53 maybe when we check at api, it is not running 06:24:13 but if we check again at rpc, which is the last step before we go to compute 06:24:22 it changed to running 06:24:34 and the API call will be success 06:25:02 it is not like certificate that if it is not supported, it will be always not supported 06:25:43 that is very short window... 06:26:27 I just feel the rpc version check is very low level. we should have consistent check by the service version in the future. 06:26:55 also 06:27:06 Dan have a comment about this in 06:27:34 https://review.openstack.org/#/c/568542/15/nova/compute/rpcapi.py 06:28:19 ah, sounds like similar question, I will read it 06:28:53 I think we can move on, continue this discussion on the patch 06:29:01 NP 06:29:28 yeah, let's have discussion on patch and what dansmith is saying. 06:29:33 let's move next 06:29:48 3. Complex anti-affinity policies: 06:29:58 #link https://review.openstack.org/#/q/topic:bp/complex-anti-affinity-policies+(status:open+OR+status:merged) 06:30:18 this if yikun is working and seems good amount of review 06:31:06 during discussion on falt vs dict representation of policy, REST API response is changing here than what was approved ins epc 06:31:11 which seem better way 06:31:35 #link https://review.openstack.org/#/c/567534/ 06:31:52 my concern is to make the same for reqeust also 06:32:23 yeah, and some question we have: 06:32:24 yikun: any objection on that ^^ and alex_xu what you say about new format of 'policy' in request and response 06:32:35 1. should we change api response and req to flat policy? 06:32:38 https://review.openstack.org/#/c/546925/18/specs/rocky/approved/complex-anti-affinity-policies.rst@130 06:33:30 2. if we change these to flat, should we change to policy_* 06:33:31 i am fine for changing in both. 06:34:03 #link https://review.openstack.org/#/c/563401/28/nova/notifications/objects/server_group.py@41 06:34:16 ^^ this is original discussion 06:35:08 for me flat representation in both request and response with policy_name as string, policy_rules as dict seems good idea 06:35:24 flat vs nest example in here: http://paste.openstack.org/show/725526/ 06:35:25 I need to read those discussion 06:35:33 sure, 06:36:00 plan is once we get agreement on thsoe, then yikun can update the spec also to reflect those changes 06:36:34 yikun: anything else you want to discuss or we cna move next 06:37:20 yikun: for "rules": {"max_server_per_host": 3}, do you mean "rules": "{"max_server_per_host": 3}" 06:37:29 the value of rules is a string? 06:37:57 yikun: sorry, I missed understand that, just ignore me 06:38:46 don't worry, you could take a look on example http://paste.openstack.org/show/725526/ 06:39:17 gmann: only these 2 questions for me. :) 06:39:39 flat2 should have policy_rules than rules_name 06:39:48 like you doing in gerrit 06:40:37 ha,yeah, typo 06:40:46 ok 06:41:35 alex_xu: you want to reply on patch. and we move next ? 06:41:40 http://paste.openstack.org/show/725528/ 06:41:46 new one 06:41:48 gmann: yea, I will try to review the patch first 06:42:05 yikun: thanks 06:42:05 alex_xu: gmann ok, thanks 06:42:08 alex_xu: ok 06:42:48 only things with new flat format is we need to do validation in code for policy_rules only requested for "anti-affinity" otherwise 400 06:42:52 but that should be ok. 06:42:58 let's move next 06:43:08 4. Volume multiattach enhancements: 06:43:40 matt mentoined in ML that he will be working on this. 06:43:46 once it is ready we can add in our review list 06:44:29 i forgot to mention that yikun BP in in nova runway this week and good to get this in 06:44:58 Kevin_Zheng BP is in for next week so good to review it early and make it in good shape 06:45:07 5. API Extensions merge work 06:45:21 #link https://review.openstack.org/#/q/project:openstack/nova+branch:master+topic:bp/api-extensions-merge-rocky 06:45:25 OpenStack Proposal Bot proposed openstack/nova master: Imported Translations from Zanata https://review.openstack.org/578019 06:45:49 i do not have progress in this BP during this week. 06:46:06 i will update current patch and push more during end of week 06:46:47 last one matt mentioned in ML is handling cell down 06:46:48 #link https://review.openstack.org/#/c/557369/ 06:47:11 i have note read the spec yet but if any of you want to give more feedback there 06:47:30 note->not 06:48:05 anything else on priority item otherwise we move to bug triage things 06:49:02 let' move then 06:49:05 #topic Bug Triage/Discussion 06:49:14 #link https://etherpad.openstack.org/p/nova-api-weekly-bug-report 06:49:23 i updated the weekly bug report 06:49:43 there is not much change in that except i triaged 1 bug. 06:50:08 we discussed to keep reviewing 2-3 in-progress bugs patches every week. 06:50:17 which i did not do. :( 06:50:22 hah 06:50:36 alex_xu: how about you ? 06:50:37 I only review one, and not finish yet 06:50:42 #link https://review.openstack.org/#/c/486850/6 06:50:53 thinking of we can make this move on 06:51:17 ohk. 06:51:22 Kevin_Zheng: it is your patch, I'm still thinking we should use environ variable to build a correct url instead of strip the url 06:51:27 * gmann forget about this 06:51:30 strip the url is too hacky 06:52:08 already forgot details about that one :) 06:52:33 hah 06:53:16 use the bug report example. the req.environ['PATH_INFO'] can get '/v2.0', and the req.environ['SCRIPT_NAME'] can get '/compute'. 06:53:47 * gmann our home work of cleaning up the in-progress patches is good idea to keep reminding the old work :) 06:55:16 we should be able to figure which part of url is base url 06:56:42 Kevin_Zheng: it is ok we can continue the discussion in the patch, since you need remember the detail 06:57:00 yeah, I have to read it again 06:57:08 yea, i think we can recall on patch and continue 06:57:43 i will do more in-progress review before next office hour 06:58:19 3 min left 06:58:29 anything on bug discussion? 06:59:00 let's move to open in case of anything else 06:59:03 #topic Open Discussion 06:59:28 any more things to bring up ? 06:59:59 nope 07:00:15 ok let's close the meeting then . 07:00:28 thanks everyone for joining. good to see more people in API discussion :) 07:00:40 #endmeeting