Friday, 2018-10-19

*** markvoelker has quit IRC00:02
openstackgerritMerged openstack/keystoneauth master: Update sphinx extension logging  https://review.openstack.org/61113500:44
*** markvoelker has joined #openstack-sdks00:58
*** imacdonn has quit IRC01:22
*** imacdonn has joined #openstack-sdks01:22
*** markvoelker has quit IRC01:32
*** pooja_jadhav has quit IRC01:45
*** mhen has quit IRC01:47
*** pooja_jadhav has joined #openstack-sdks01:53
*** bobh has joined #openstack-sdks02:45
*** bobh has quit IRC02:46
*** bobh has joined #openstack-sdks02:46
*** bobh has quit IRC02:51
*** dave-mccowan has quit IRC03:53
*** Luzi has joined #openstack-sdks05:45
*** e0ne has joined #openstack-sdks06:37
openstackgerritVishakha Agarwal proposed openstack/python-openstackclient master: Add project param in LimitList parser  https://review.openstack.org/61178906:59
*** slaweq has quit IRC07:32
*** slaweq has joined #openstack-sdks07:33
*** tosky has joined #openstack-sdks07:36
*** e0ne has quit IRC08:03
*** e0ne has joined #openstack-sdks09:09
*** ttsiouts has joined #openstack-sdks09:12
openstackgerritVlad Gusev proposed openstack/python-openstackclient master: Add support for get details of Quota  https://review.openstack.org/51540109:49
*** cdent has joined #openstack-sdks10:35
openstackgerritVishakha Agarwal proposed openstack/python-openstackclient master: Add project param in LimitList parser  https://review.openstack.org/61178910:37
*** dtantsur|afk is now known as dtantsur10:43
dtantsurmordred: hey, you need to re-add your +W to https://review.openstack.org/#/c/609984/ now that the dependency has merged10:44
openstackgerritVlad Gusev proposed openstack/python-openstackclient master: Add support for get details of Quota  https://review.openstack.org/51540110:47
*** e0ne has quit IRC11:01
openstackgerritVlad Gusev proposed openstack/python-openstackclient master: Add support for get details of Quota  https://review.openstack.org/51540111:38
*** e0ne has joined #openstack-sdks11:52
*** mriedem has joined #openstack-sdks12:19
mordreddtantsur: done12:24
*** cdent has quit IRC12:24
dtantsurthnx12:25
mordreddtantsur, Shrews, dtroyer, slaweq: I pushed up a release request for sdk for an 0.18.0 - I'm thinking it's *basically* an RC, but I was thinking that it would be a good idea to start making some python-openstackclient patches to start using it more there - so we can see what shakes out of that. I also think we should figure out the baremetal resource normalization question and finish those image api12:46
mordredpatches12:46
dtantsuryep, cool12:46
dtantsurI think we'll need more deprecation for baremetal stuff in the shade part.. but we can left removals for 2.012:47
mordredbut I'm figuring we can use writing osc patches to use sdk for images instead of python-glanceclient to spur finishing the image api stuff12:47
mordreddtantsur: ++12:47
mordredfrickler: if you're around, would you mind +Aing https://review.openstack.org/#/c/585030/ ?12:48
dtantsurmordred: oh, and we need to finish the story around rate limiting12:49
mordredoh - actually - hang on, let me bump mins in that12:49
mordreddtantsur: yes. thanks - that's the other thing we should finish12:49
mordredwe should chat with cmurphy about whether the keystoneauth retries feature justifies putting the rate limiting down in keystoneauth12:50
cmurphyah hmm that is a somewhat compelling case12:51
*** gkadam has joined #openstack-sdks12:52
openstackgerritMonty Taylor proposed openstack/python-openstackclient master: Make use of keystoneauth service-type filtering for versions  https://review.openstack.org/58503012:52
mordredcmurphy: yah - I wrote more words on that review - but dtantsur had a patch to sdk to make use of the retriable_status_codes feature - and that made me realize that if ksa is doing retries under the covers, it makes higher-level rate limiting have a hole where it doesn't know about some of the interactions12:53
cmurphyyeah that makes sense12:53
fricklermordred: that patch seems to have a merge conflict now that you updated it12:54
mordredthat said - there's still a potential slight weirdness, as retries are implemented in the session, while a rate limit is really an adapter-level concept (so that it can be per-service)12:54
mordredfrickler: *awesome*12:54
mordredlemme fix12:54
openstackgerritMonty Taylor proposed openstack/python-openstackclient master: Make use of keystoneauth service-type filtering for versions  https://review.openstack.org/58503012:55
mordredfrickler: that should do it :)12:55
*** stephenfin is now known as finucannot12:57
*** slaweq has quit IRC12:57
mordredcmurphy: so I guess the important next step for that patch would be "write tests"?12:57
cmurphymordred: I'm kind of hoping there is a non-DIY way of implementing the semaphore thing12:58
cmurphymordred: but assuming there's not then tests would be a good next step12:59
mordredcmurphy: I didn't find one when I was looking - although I totally agree with you12:59
mordredI'm a bit sad there isn't one of these in the standard lib12:59
fricklermordred: oh, that's osc, I can only +1 there anyway, but lgtm12:59
mordredfrickler: awesome, thanks!13:00
mordredcmurphy: maybe we should upstream this one to the python stdlib once we're happy with it. I'm sure that'll only take 8 years or something13:00
cmurphy:D13:00
dtantsurheh13:00
dtantsurPython 4.213:00
cmurphylol13:01
*** slaweq has joined #openstack-sdks13:07
samueldmqmorning sdk13:12
mordredmorning samueldmq !13:15
*** lbragstad is now known as elbragstad13:23
openstackgerritSamuel de Medeiros Queiroz proposed openstack/openstacksdk master: DNM: Logging image code path  https://review.openstack.org/61186813:25
*** slaweq has quit IRC13:27
openstackgerritSamuel de Medeiros Queiroz proposed openstack/openstacksdk master: DNM: Logging public server code path  https://review.openstack.org/61186913:29
*** slaweq has joined #openstack-sdks13:49
*** mriedem has quit IRC14:06
*** Luzi has quit IRC14:07
*** mriedem has joined #openstack-sdks14:09
openstackgerritMonty Taylor proposed openstack/keystoneauth master: Add support for client-side rate limiting  https://review.openstack.org/60504314:15
mordreddtantsur: ^^ I reworked it a bit based on your review and put the rate limit wait into the semaphore itself14:18
mordreddtantsur: I tried to add some comments - but it's still a pretty dense class14:18
dtantsurcool, will check14:18
mordredkmalloc, cmurphy: ^^ also y'all. of course, it can't land without tests - so I still have to figure that out - but if you feel like attacking it logically, awesome14:19
* cmurphy gets out the torpedos14:24
dtantsurmordred: I have a feeling there is a deadlock lurking there14:25
dtantsursee inline14:25
mordreddtantsur: ah - yeah. it should be fine as long as there are more than one thread executing at the same time - but not for the 1st thread or in a single-threaded mode ... good catch14:28
dtantsurmordred: I'm not sure how multiple thread would help. You're calling wait() while holding a lock. For wait() to return something needs to acquire the same lock and fire the event.14:30
dtantsurIt cannot acquire the lock held during wait(). Am I missing something?14:30
mordreddtantsur: no - you're totally right14:31
mordreddtantsur: I need another coffee :)14:32
dtantsurmordred: the resource starvation problem you mention in the commit message.. is it really so bad to justify writing your own semaphore class? :)14:32
mordreddtantsur: yup :)14:33
openstackgerritStephen Finucane proposed openstack/cliff master: Remove dead files  https://review.openstack.org/61188814:34
openstackgerritStephen Finucane proposed openstack/cliff master: Stop wildcard importing argparse  https://review.openstack.org/61188914:34
openstackgerritStephen Finucane proposed openstack/cliff master: WIP: Add support for environment variables  https://review.openstack.org/61189014:34
mordreddtantsur: amazingly enough - all of the varied use cases this solves for are represented by actual real-world issues14:34
mordreddtantsur: you're think that the server side would just be able to handle all of this without the client needing to care ... but oh golly14:35
dtantsurthat damn reality; I like dealing with round things in vacuum much more14:35
mordredright?14:35
dtantsurofc14:35
mordreddtantsur: remind me to tell you the story of the time we crashed the HP Public Cloud14:35
mordredjust by running nodepool against its public api14:35
dtantsurOH I'd LOVE to hear that14:35
mordredthey had a hardware load balancer / api gateway in front of the api services - which would time out client connections for requests that took too long14:37
mordredso, on receiving a 500 from the load balancer - we'd auto retry again14:37
mordredproblem was - the requests were taking so long because there was a missing index on a sql table, so each request was causing a long running query to get started in mysql14:37
*** bobh has joined #openstack-sdks14:38
dtantsurLOOOL14:39
mordredbcause it was doing a full table scan on the server table for every operation - oh, and also they hadn't been cleaning out old deleted entries from the table14:39
dtantsurhashtag successstory14:40
mordredso we'd to, while True: try: create_server ; break except: delete_server14:40
mordredevery create would fail, at which point we'd attempt to clean up after ourselves14:40
*** slaweq has quit IRC14:40
mordredin a tight loop with no pausing14:40
mordredand then everything melted to the ground :)14:41
dtantsurwell, you gave them a free DoS attack testing :D some people pay for that14:41
mordredRIGHT?14:41
mordredthis is how we try to convince more people to give us resources for nodepool14:41
mordred"we promise we can find the errors in your cloud deployment"14:42
dtantsurokay, I should stop laughing so loudly, my wife will become suspicious :D14:43
mordredhehehe14:50
*** ttsiouts has quit IRC14:50
openstackgerritMonty Taylor proposed openstack/keystoneauth master: Add support for client-side rate limiting  https://review.openstack.org/60504314:50
mordreddtantsur: figuring out how to write unittests for this thing is going to be ... fun14:51
kmallocMock14:51
kmallocLots of mock14:51
mordredkmalloc: I dunno ... seems like a good risk of testing that we wrote some mocks14:51
kmallocMy recommendation is mock plus freezegun, check to make sure x calls were made14:51
dtantsurmock the heck out of it \o/14:52
kmallocWith the right args14:52
*** e0ne has quit IRC14:52
kmallocYou can introspect the magicmock object and see what was called14:53
kmallocThe underlying request stuff is tested elsewhere.14:54
mordredoh - totally - definitely not worried about testing that14:54
kmallocSo we just want to check the ratelimiting and locking.14:54
dtantsuroh, how I "love" ironicclient+keystoneauth spitting "Service catalog is empty" on wrong magical combination of arguments..14:55
mordredmostly just want to make sure we're hitting things like dead locks and max concurrency and stuff14:55
kmallocAll doable with simple wsgiref webtest app.14:55
kmallocYou're looking to do a simple reflector thing :)14:56
mordredyou're a simple reflector thing14:56
dtantsurlol14:56
* kmalloc borrows the zoo keys and hand a slightly damp lemur to mordred 14:56
mordredkmalloc: this is more moist than I prefer14:59
kmallocI suggest a lemur dryer then ;)14:59
*** ttsiouts has joined #openstack-sdks15:01
*** ttsiouts has quit IRC15:12
*** gkadam has quit IRC15:18
*** mriedem is now known as mriedem_afk15:27
*** ttsiouts has joined #openstack-sdks15:37
mnasermordred: i was just hit by this .. https://github.com/ansible/ansible/pull/42913 -- do you mind giving it another shipit if it makes sense to you?15:45
mnasercc Shrews rcarrillocruz ^15:45
mordredmnaser: seems reasonable - but also that kinda feels like a default behavior sdk should have on the backend15:55
mordredoh - wait- I misread soemthing15:55
*** bobh has quit IRC16:03
mnasermordred: in this case a cloud with multiple users having “admin” would fail (in different domains)16:09
mnasermordred: thank you!16:09
*** openstackgerrit has quit IRC16:24
*** ttsiouts has quit IRC16:30
*** bobh has joined #openstack-sdks16:35
*** e0ne has joined #openstack-sdks16:35
*** e0ne has quit IRC16:37
*** dtantsur is now known as dtantsur|afk16:44
kmallocmordred: the limits code for SDK looks correct17:07
*** tosky has quit IRC17:18
*** cdent has joined #openstack-sdks17:20
*** bobh has quit IRC17:34
*** e0ne has joined #openstack-sdks17:53
*** e0ne has quit IRC18:00
*** e0ne has joined #openstack-sdks18:08
mordredkmalloc: yay!18:17
*** bobh has joined #openstack-sdks18:26
*** mriedem_afk is now known as mriedem18:41
*** bobh has quit IRC19:18
*** bobh has joined #openstack-sdks19:19
*** bobh has quit IRC19:23
*** bobh has joined #openstack-sdks19:23
*** e0ne has quit IRC19:34
*** e0ne has joined #openstack-sdks19:34
*** e0ne has quit IRC19:36
*** cdent has quit IRC20:12
*** e0ne has joined #openstack-sdks20:28
*** e0ne has quit IRC20:33
*** e0ne has joined #openstack-sdks20:44
*** e0ne has quit IRC20:48
*** bobh has quit IRC21:01
*** bobh has joined #openstack-sdks21:01
*** dave-mccowan has joined #openstack-sdks21:05
*** bobh has quit IRC21:05
*** dave-mccowan has quit IRC21:13
*** mriedem has quit IRC21:40
*** bobh has joined #openstack-sdks23:37
*** bobh has quit IRC23:50

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