08:03:26 #startmeeting multisite 08:03:26 Meeting started Thu Jan 5 08:03:26 2017 UTC. The chair is joehuang. Information about MeetBot at http://wiki.debian.org/MeetBot. 08:03:26 Useful Commands: #action #agreed #help #info #idea #link #topic. 08:03:26 The meeting name has been set to 'multisite' 08:03:49 we have to discuss about the keypair syncing part.. 08:03:49 #topic rollcall 08:03:57 #info joehuang 08:03:58 #info goutham 08:04:07 #topic keypari sync 08:04:47 as per your comments even i think user-id must not be exposed in the curl-request 08:05:10 i have gone through "nova keypairs" in this regard.. 08:05:32 there he is not exposing the user-id in the curl request 08:05:33 user-id is in the context, I think 08:05:42 REQ: curl -g -i -X POST http://172.16.73.55:8774/v2.1/os-keypairs 08:05:48 or extract from the header 08:06:04 which could be get from the token 08:06:35 i took "nova keypair-list --user " as reference and i noticed that user-id in the body 08:06:48 in body? 08:07:09 this is list command, how about keypair creation command 08:07:20 in keypair creation as well 08:07:54 so user id is part of the body 08:08:01 let me check 08:08:14 https://hastebin.com/utoseyodih.py 08:08:18 see i have sent the code 08:08:53 if admin is creating keypair for other user 08:09:21 if user wants to create a keypair for himself he is getting from context 08:09:37 yes 08:09:48 user-id is only for admin to specify 08:09:55 yes. 08:09:56 The user_id for a keypair. This allows administrative users to upload keys for other users than themselves 08:10:18 so user-id either from context or from body 08:10:37 yes we have to change it in that way.. 08:10:43 i guess in our kingbird. 08:11:12 great, this is one important improvement 08:11:40 #info user-id for keypaire obtained from context or from the body 08:12:07 so i have been working in the above fashion 08:12:18 thanks a lot 08:12:22 and i found something interesting 08:12:39 in quota-management 08:13:04 i will show an example just a second. 08:13:10 please 08:14:07 http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-sets/defaults -- this is our curl request for getting the default limits and i tried replacing that with some random value and even then it worked. 08:14:35 random value for which one? 08:14:45 like example http://$kb_ip_addr:8118/v1.0/quota/os-quota-sets/defaults 08:15:29 the $admin_tenant_id should be verified uuid_like 08:15:43 there is one function to test whether it's a uuid or not 08:16:12 yes, it has to be a uuid this is a negative test -- you replace quota with "goutham" it worked.. and i have gone through the code as well i think we are validating anything as such 08:16:45 no uuid like validation, I think 08:16:54 to verify as we have "kingbird quota defaults" working i changed the curl request in the kbclient 08:16:59 even then it worked.. 08:17:39 how do you change the request 08:17:57 yes we are checking whether it is admin or not which inturn is decided in token-request.json -- while using the CURL requests manually.. 08:18:46 i have hardcoded the url in this fashionn https://hastebin.com/iqasuxovuv.py 08:19:15 in "/usr/local/lib/python2.7/dist-packages/kingbirdclient/api/v1/quota_manager.py" 08:20:02 the kingbird service url is discoverd from keystone 08:20:11 i.e endpoint 08:20:14 i mean the curl request 08:20:25 i am sorry i should not use url 08:20:39 the curl request i mean.. 08:20:51 if it's https://hastebin.com/iqasuxovuv.py, kingbird should return resource not find if the command can go to kb-api 08:21:37 "/$admin_tenant_id/os-quota-sets/defaults" this is replaced with 'keypair/os-quota-sets/defaults' in kb client 08:21:56 it reached kb-api and i got the output. 08:23:02 we have to have a proper validation for that as well .. 08:23:48 i hope we are clear with the issue. if u want i will explain again :) 08:25:05 it shuold abort for invalid path 08:25:10 for example 08:25:14 @index.when(method='POST') 08:25:15 @index.when(method='PUT') 08:25:15 @index.when(method='DELETE') 08:25:15 @index.when(method='HEAD') 08:25:15 @index.when(method='PATCH') 08:25:17 def not_supported(self): 08:25:19 pecan.abort(405) 08:26:37 But it didnt happen 08:26:43 ok 08:27:04 i will verify and provide a commit. if required.. 08:27:46 please, it's need strict process for invalid request 08:28:20 even verifying whether it is UUID is also not good it should be the same as context.project 08:29:09 only then the request must process . otherwise it is not a good sign 08:29:33 yes 08:30:21 ok and coming to keypair syncing lets finalize on the curl request. I mean how it should be?? 08:31:11 curl -g -i -X POST http://172.16.73.55:8774/v2.1/os-sync and further details must be in the Body.. 08:31:44 i mean the resource-details, source, target regions must be in the body.. 08:31:51 sure 08:32:30 fine then i will update the doc and we may have to do some change in kingbird/api/controller/root.py to acheive this.. 08:32:43 i will work on this and submit. 08:33:00 a commit.. 08:33:21 ok, I'll review that 08:33:32 once i am done i will commit.. 08:34:09 and talking about the commits in review.. 08:34:23 fine 08:34:41 i want to discuss about this https://review.openstack.org/#/c/416507/1//COMMIT_MSG 08:35:04 the comment you posted.. I agree with it. 08:36:11 But i still have to search to answer your question.. :P 08:36:17 yes, currently kingbird is not able to be installed through pip 08:36:47 not able to list it in the requirements 08:37:26 ok 08:37:43 i will look into that.. 08:38:00 https://review.openstack.org/#/c/416186/ -- have you gone through this commit.. 08:38:30 yes 08:39:01 look good to me. 08:39:19 tq 08:39:36 Please provide comments if any.. :) 08:39:49 will do 08:40:30 in the agenda there is another topic.. OPNFV D release plan. 08:41:15 maybe we can discuss that when dimitri is back 08:41:33 i am sorry to ask but because i have joined a bit late what is the dead line to complete keypair syncing and the kb-cli. 08:42:03 i mean our kingbird goals to be specific.. 08:42:27 keep it aligned with OpenStack ocata release schedule 08:42:54 The relesae date for Ocata is around Feb.20 08:43:20 stable branch mainly around Jan 25 08:43:39 but for Kingbird is not cycle based release plan 08:43:51 so the stable branch could be a bit later 08:44:06 and also we need to align with OPNFV D release 08:44:47 which is listed in https://wiki.opnfv.org/display/multisite/Multisite+Release+D+Planning 08:44:55 we do have things like code-freeze right?? most likely what will be the date. 08:45:07 stable branch is Jan 26 08:45:55 ohhh then we have to work faster and harder.. :) 08:47:09 yes 08:48:00 is there any way to contact you if i have any doubts.. 08:48:28 mail-list 08:48:31 or irc 08:48:39 my irc handle is joehuang 08:48:58 in channel opnfv-meeting ? 08:49:39 yesterday i tried in opnfv-meeting i couldnot find u .. :( 08:49:50 I mainly stay at #openstack-tricircle, but I can stay at #opnfv-multisite from tomorrow 08:50:18 ok fine i will ping you in #opnfv-multisite 08:50:20 and at the same time #opnfv-meeting 08:51:00 ok thanq :) 08:51:03 I am not good at using irssi 08:51:17 sometimes the message will be missed 08:51:22 :( 08:51:32 great 08:51:35 ok i understand. i will mail you if needed.. thanks for the 08:51:46 guidance.. 08:51:56 i have nothing more to discuss.. :) 08:52:02 in opnfv mail-list is also good 08:52:06 ok 08:52:15 thank you for attending the meeting 08:52:21 #endmeeting