Wednesday, 2019-07-17

*** tetsuro has joined #openstack-placement01:53
*** tetsuro has quit IRC02:13
*** tetsuro has joined #openstack-placement03:01
*** tetsuro has quit IRC03:05
*** tetsuro has joined #openstack-placement03:49
*** tetsuro has quit IRC04:22
*** tetsuro has joined #openstack-placement04:58
*** takashin has joined #openstack-placement06:32
*** tetsuro has quit IRC06:35
*** ttsiouts has joined #openstack-placement07:15
*** tssurya has joined #openstack-placement07:29
*** helenafm has joined #openstack-placement07:43
*** ttsiouts has quit IRC07:46
*** ttsiouts has joined #openstack-placement07:46
*** ttsiouts has quit IRC07:51
*** ttsiouts has joined #openstack-placement08:04
*** tssurya_ has joined #openstack-placement08:41
*** tssurya has quit IRC08:41
*** e0ne has joined #openstack-placement08:47
*** takashin has left #openstack-placement09:00
*** helenafm has quit IRC09:07
*** helenafm has joined #openstack-placement09:08
*** ttsiouts has quit IRC09:29
*** ttsiouts has joined #openstack-placement09:29
*** cdent has joined #openstack-placement09:31
*** ttsiouts_ has joined #openstack-placement09:33
*** ttsiouts has quit IRC09:34
*** cdent has quit IRC09:50
*** ttsiouts_ has quit IRC09:53
*** ttsiouts has joined #openstack-placement09:53
*** ttsiouts_ has joined #openstack-placement09:57
*** ttsiouts has quit IRC09:58
*** e0ne has quit IRC10:00
*** helenafm has quit IRC10:03
*** helenafm has joined #openstack-placement10:07
*** tssurya_ is now known as tssurya10:10
*** cdent has joined #openstack-placement10:16
*** ttsiouts_ has quit IRC10:17
*** ttsiouts has joined #openstack-placement10:18
*** ttsiouts has quit IRC10:23
*** cdent has quit IRC10:23
*** cdent has joined #openstack-placement10:26
*** belmoreira has joined #openstack-placement10:45
*** ttsiouts has joined #openstack-placement11:07
openstackgerritChris Dent proposed openstack/placement master: Make placement testing easier on osx  https://review.opendev.org/67124912:28
*** belmoreira has quit IRC12:52
*** ttsiouts has quit IRC12:54
*** ttsiouts has joined #openstack-placement12:55
openstackgerritChris Dent proposed openstack/placement master: Use integrated-gate-placement zuul template  https://review.opendev.org/67125712:55
*** ttsiouts has quit IRC12:59
*** ttsiouts has joined #openstack-placement13:15
*** artom has quit IRC13:19
*** belmoreira has joined #openstack-placement13:31
*** belmoreira has quit IRC13:36
sean-k-mooneycdent: currently there is no sdk support for placement correct? and we dont have a python-placementclient either correct13:53
cdentsean-k-mooney: you can create a raw session to the placement endpoint in the sdk13:53
sean-k-mooneycdent: so today you would either use a keystone auth cleint or a generic rest client form the sdk13:53
sean-k-mooneycdent: right that is what i assumed13:53
cdenti would guess https://review.opendev.org/#/c/656023/ provides an example13:54
sean-k-mooneyi was ping directly asking about integrating placmenet in horizon13:56
sean-k-mooneythey were asking about reusing osc-placmenet but i was/am suggesting they use the sdk13:56
sean-k-mooneyand or create a placement module in the sdk instead of creating the fucntion in horizon13:56
cdentyes, I would suggest using the sdk and create URLs, and are parses responses in the simple way13:56
sean-k-mooneypossibly by porting the nova code13:56
cdentI'm not sure the nova code is sufficiently generic13:57
*** artom has joined #openstack-placement13:57
sean-k-mooneywell im assuming all you would do in horizon is list the RPs13:57
cdentwhich is why I've been resistant to creating a specific placement module in the skd: the URLs and the bodies are just URLs and JSON. Wrapping it in a bunch of a names and classes and other stuff is _less_ flexible and generic13:57
sean-k-mooneymaybe show allocations13:58
cdentyeah, in which case some simple GETs is easy13:58
sean-k-mooneyya i was thinking it would be nice to have a small wraper around get /resouce_providers13:58
sean-k-mooneyi could see wanting to eventully have all the endpoint but anyway i point them here but they have not joined so just an fyi that someone might ask about it later13:59
cdentI guess i'm the wrong guy to be talking to about this: To me, adding a wrapper would get in the way of what i want: the dict that comes from the returned JSON. Some kind of class or whatnot is ... annoying.14:00
sean-k-mooneycdent: i assume you agree using the raw client form the sdk is infintly better then embeding osc-placmenet in horizon14:00
cdentBut I realize that I'm often on my own when it comes to this sort of thing, so whatever people want we should do. I don't want to be roadblock.14:01
cdentyes, definitely agree on that14:01
cdentusing osc-placemnet in horizon would be a _horrible_ idea14:01
sean-k-mooneywell i was thinking of a moduel with a much of function that just took the different qurey args as kwargs adn the required ones as postionals and return the dict of the raw reponce14:02
sean-k-mooneye.g. a very light shim so you know what the parmater that endpoint accepts are14:02
sean-k-mooneybut anyway ill leave that as an exercise to the user :)14:03
*** e0ne has joined #openstack-placement14:05
*** Bidwe_jay has joined #openstack-placement14:08
*** altlogbot_3 has quit IRC14:09
*** belmoreira has joined #openstack-placement14:10
Bidwe_jayhi all.....want to create osc-placement client in horizon14:11
Bidwe_jayto get resource provider data if anyone have any idea it will be helpfull...14:11
cdentBidwe_jay: we just talked about that, let me get you a log link14:12
cdentBidwe_jay: http://eavesdrop.openstack.org/irclogs/%23openstack-placement/%23openstack-placement.2019-07-17.log.html#t2019-07-17T13:53:2114:12
Bidwe_jayThank you!14:13
cdentthat's not fully up to date yet, it will take a few minutes to get to the last thing said which was [t 1BtM]14:13
purplerbot<sean-k-mooney> but anyway ill leave that as an exercise to the user :) [2019-07-17 14:03:10.707724] [n 1BtM]14:13
sean-k-mooneyBidwe_jay: its effectivly what we spoke about. e.g. your better off just using the sdk to get the raw placemnet rest client and doing direct GET requests for the info you want14:16
sean-k-mooneyBidwe_jay: you could optionally add function to the sdk to construct the sdk14:16
sean-k-mooney*urls14:16
*** irclogbot_0 has quit IRC14:17
sean-k-mooneyand retrun the respoce dicts already deserialsed form json if you wantted to14:17
*** altlogbot_2 has joined #openstack-placement14:18
*** belmoreira has quit IRC14:21
Bidwe_jaysean-k-mooney: ok14:21
*** altlogbot_2 has quit IRC14:22
*** belmoreira has joined #openstack-placement14:23
*** altlogbot_2 has joined #openstack-placement14:27
*** altlogbot_2 has quit IRC14:32
*** altlogbot_0 has joined #openstack-placement14:34
*** altlogbot_0 has quit IRC14:38
efriedsean-k-mooney, Bidwe_jay, cdent: Let me weigh in here:14:39
*** altlogbot_0 has joined #openstack-placement14:40
efried- Yes, the patch cdent points to (https://review.opendev.org/#/c/656023/) proves that you can use openstacksdk Connection to get a Proxy to the placement service and use raw get/put/etc. methods.14:40
efried- No, there is no python-placementclient and there never will be.14:40
efried- osc-placement is for CLI and nothing else.14:41
efried- Support for other-than-raw-json wrappers around placement APIs, if such a thing is ever desired & developed, should go into the openstacksdk and follow their object modeling.14:42
*** artom has quit IRC14:42
efried- For now, if what you want is to do simple queries from horizon to placement, you could use either keystoneauth1 or openstacksdk to create your connection; but either way you would be using primitive get/put/etc. dealing with raw json.14:43
*** altlogbot_0 has quit IRC14:44
*** altlogbot_0 has joined #openstack-placement14:46
efriedShould you use ksa or sdk? I would have to understand a bit more about how horizon likes to communicate with the other services it talks to. I would say use sdk if that's possible. Does horizon use sdk for anything else? Does it know about clouds.yaml? And/or does it use oslo.config opts to configure connections to services?14:47
sean-k-mooneyefried: yep that more or less aligns with my preferences as well14:48
cdent(just to throw a wrench in the works, for completeness, another option is do it all in javascript from the browser)14:48
sean-k-mooneyand ya the question re does horizon already use sdk vs keystone auth are valid and likely the main factor for chosing one over the other14:49
sean-k-mooneycdent: you could but you would have to implement support for getting and handeling the keysone token14:49
*** altlogbot_0 has quit IRC14:50
cdentI was assuming that horizon already did that, but if not, then yeah.14:50
sean-k-mooneybut yes javascript woudl be an option but i guess it depends on what horizon does normally14:50
* cdent is not a horizon user14:50
sean-k-mooneyi am a user somethimes but never really looked into how it works much14:50
*** altlogbot_3 has joined #openstack-placement14:52
stephenfinefried, cdent: Would you be open to adding a 'usage' column to 'openstack resource provider inventory list' and possibly deprecating 'openstack resource provider usage show'14:55
stephenfinIt feels odd that the former shows me everything about inventory for a given resource provider _except_ how much of it has been consumed14:55
*** altlogbot_3 has quit IRC14:56
cdentstephenfin: would you just do it, or do it with an arg?14:57
cdentprobably the latter as it adds some expense14:57
stephenfincdent: That depends. Is it (fetching usage) an expensive operation?14:57
stephenfinJinx14:57
cdentit's not expensive in an of itself, but it does mean more requests14:58
*** altlogbot_3 has joined #openstack-placement14:58
stephenfinFor a client tool, that doesn't seem _too_ bad?14:58
cdentno, it doesn't14:58
cdentI suppose the other concern would be whether the added arg would provide a guard against people doing results processing that doesn't expect the additional info14:59
edleafell15:00
edleafedoh!15:00
*** altlogbot_3 has quit IRC15:02
efriedcdent, stephenfin: aren't we obligated to preserve some kind of backward compatibility of formatting when args don't change?15:02
efriedor only for tabular output?15:02
stephenfin I haven't a clue, but I can ask dtroyer in a bit to find out15:02
cdentstephenfin: if dtroyer likes the idea, my general rules is "sure, why not?"15:04
*** altlogbot_1 has joined #openstack-placement15:04
* stephenfin likes that rule15:04
stephenfin(Except when it comes to very large, hard to maintain/rip out features :))15:04
*** artom has joined #openstack-placement15:05
*** altlogbot_1 has quit IRC15:08
*** belmoreira has quit IRC15:08
*** ttsiouts has quit IRC15:13
*** ttsiouts has joined #openstack-placement15:14
*** altlogbot_0 has joined #openstack-placement15:14
*** altlogbot_0 has quit IRC15:18
*** ttsiouts has quit IRC15:18
*** tssurya has quit IRC15:19
*** altlogbot_0 has joined #openstack-placement15:20
*** altlogbot_0 has quit IRC15:24
*** altlogbot_3 has joined #openstack-placement15:34
*** altlogbot_3 has quit IRC15:38
*** belmoreira has joined #openstack-placement15:41
*** belmoreira has quit IRC15:42
*** altlogbot_0 has joined #openstack-placement15:46
*** altlogbot_0 has quit IRC15:50
*** helenafm has quit IRC15:51
*** altlogbot_1 has joined #openstack-placement15:52
*** artom has quit IRC15:52
*** altlogbot_1 has quit IRC15:57
*** artom has joined #openstack-placement15:59
*** e0ne has quit IRC16:00
*** altlogbot_2 has joined #openstack-placement16:04
*** altlogbot_2 has quit IRC16:08
*** altlogbot_3 has joined #openstack-placement16:10
*** altlogbot_3 has quit IRC16:14
*** irclogbot_2 has joined #openstack-placement16:14
*** altlogbot_1 has joined #openstack-placement16:15
*** irclogbot_2 has quit IRC16:17
*** efried is now known as efried_rollin16:21
*** altlogbot_1 has quit IRC16:34
*** altlogbot_3 has joined #openstack-placement16:36
*** artom has quit IRC16:42
*** artom has joined #openstack-placement17:00
openstackgerritChris Dent proposed openstack/placement master: Move rc_cache onto RequestContext  https://review.opendev.org/67134117:42
cdentefried_rollin, gibi : that ^ seems like it ought to address the resource class cache problem and at least superficially it doesn't seem to hurt too much17:57
cdentthat's my EOD17:58
*** cdent has quit IRC17:58
*** e0ne has joined #openstack-placement18:36
*** e0ne has quit IRC18:52
*** efried_rollin is now known as efried20:18
*** artom has quit IRC20:18
*** e0ne has joined #openstack-placement20:38
*** e0ne has quit IRC21:15
*** irclogbot_3 has joined #openstack-placement21:23
*** artom has joined #openstack-placement23:56

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