Wednesday, 2017-02-15

*** jamielennox_ has joined #openstack-shade00:02
*** jamielennox_ is now known as jamielennox00:06
*** gouthamr has quit IRC02:45
*** gouthamr has joined #openstack-shade02:46
*** calebb has quit IRC03:07
*** calebb has joined #openstack-shade03:08
*** gouthamr has quit IRC04:01
*** yfried has joined #openstack-shade06:15
*** yfried has quit IRC06:36
*** yfried has joined #openstack-shade06:55
*** iogg has joined #openstack-shade07:51
*** cdent has joined #openstack-shade09:35
*** iogg has quit IRC13:12
*** gouthamr has joined #openstack-shade13:13
*** dct360 has joined #openstack-shade13:29
*** openstackgerrit has joined #openstack-shade13:35
openstackgerritMonty Taylor proposed openstack-infra/shade master: Wait for volumes to detach before deleting them  https://review.openstack.org/43277013:35
*** iogg has joined #openstack-shade14:12
openstackgerritMerged openstack-infra/shade master: Add accessor method to pull URLs from the catalog  https://review.openstack.org/43235814:20
*** yfried has quit IRC14:36
openstackgerritMonty Taylor proposed openstack/os-client-config master: Add support for overriding mistral service type  https://review.openstack.org/43434415:32
*** yolanda has quit IRC15:34
*** yolanda has joined #openstack-shade15:35
dct360hello i'm having a problem with shade auth - has anyone seen this error before? http://paste.openstack.org/show/599064/15:55
*** abregman has joined #openstack-shade15:56
*** abregman has quit IRC15:56
*** abregman has joined #openstack-shade15:58
mordreddct360: hrm. that doesn't look happy  ... one sec16:03
morgan_mordred: i was also looking at that, off the top of my head and compared to my setup... it looks ok.16:05
mordredyah16:06
* mordred is trying to come up with a test script to produce more info16:06
mordredthat error, btw, means that os-client-config did not instantiate an auth_plugin when it was reading the config16:07
mordredbut not instantiating an auth_plugin _should_ produce an exception16:08
morgan_dct360: what is your auth_url16:08
morgan_i know you've redacted it there, but i'm wondering if it's something wonky with it / typo16:08
mordredmorgan_: this _should_ be an error before anything even tries to contact keystone16:09
morgan_mordred: right, wondering if the auth_url is malformed16:09
dct360mordred: it looks like this: https://ipaddress:5000/v2.016:09
morgan_in a way that can't even be processed16:09
morgan_that should be fine then.16:09
mordredmorgan_: if you look in os_client_config.cloud_config.CloudConfig.get_session you can see the error (self._auth is None)16:10
morgan_mordred: right.16:10
*** morgan_ is now known as morgan16:10
mordredmorgan_: self._auth should never be None in this code flow - so YAY!16:10
*** yfried has joined #openstack-shade16:10
*** yfried has quit IRC16:10
mordredooh. wait - I see something16:11
morgan?16:14
mordreddct360: can you add:16:14
mordredimport logging16:14
mordredlog = logging.getLogger('os_client_config')16:15
mordredlog.addHandler(logging.StreamHandler())16:15
mordredlog.setLevel(logging.DEBUG)16:15
mordredto the top of your script and try it again? I want to see if we get a debug message with "Deferring keystone exception" in it16:15
dct360mordred: yes will try that16:16
mordredmorgan: in os_client_config.config - if you look for that string, you'll see that in our ksc-fallback code we do not ever get an auth plugin (which makes sense)16:17
morganooooh16:17
mordredmorgan: I'm thinking it's time for that code to DIAF - we just need to make sure killing it doesn't break OSC16:17
morganyes, we need to kill that16:17
mordredmorgan: I _ALSO_ think we should move the plugin loading out of get_one_cloud and into get_session16:18
morganmordred: totally unrelated: https://usercontent.irccloud-cdn.com/file/RgvX1vAP/gnu.jpg looks good framed.16:18
mordredmorgan: which I believe will fix many issues dtroyer has had in the past16:18
mordredmorgan: nice!16:19
morganmordred: likely. it would be better to have all that in get_session16:19
morgansince it is part of the session getting.16:19
mordredyup16:20
mordredthe original motivation was to try to give people more informative errors sooner16:20
mordredbut that's clearly not happening :)16:20
dct360mordred: Deferring keystone exception: __init__() got an unexpected keyword argument 'verify'16:21
mordredawesome!16:21
mordredmorgan: why is ksa failing on the verify param now I wonder?16:22
morganmordred: not sure16:22
mordreddct360: thanks - you have found a bug and I _think_ we have enough info to track it down -although we may ping you again :)16:22
morganmordred: hmmmm.16:24
mordredmorgan: dct360 has the same versions of things installed that I do16:24
dct360mordred: thanks and as you know i omitted 'verify: False' from my original clouds.yml paste16:25
morgandct360: shouldn't matter if you have verify or not in this case, that error you're seeing is weird.16:25
mordredoh - you had verify: False in your paste?16:25
mordredwait- did you have it in the auth dict or up one level?16:25
morganoooh16:26
morganthat could do it16:26
mordred(this is why we need to remove that exception handler ,we can give WAY better errors here)16:26
dct360mordred: i have it right under project_name:16:27
mordreddct360: awesome - can you try moving it above auth: and indent to the same level as auth and try again?16:27
morgandct360: indented the same level as project_name? or one level back?16:27
dtroyermorgan, mordred: let's talk about moving the plugin loading next week… maybe its time for occ 2.0 and some breaking down of the functionality so it can be netter composed rather than all-in-one?16:27
mordreddtroyer: +10016:28
morganwoo16:28
dct360morgan: same level16:28
morgandct360: yeah make it the same indentation as the "auth:" bit.16:28
morganas mordred said16:28
dct360morgan: ok i'll try that16:29
openstackgerritMonty Taylor proposed openstack/os-client-config master: Remove the keystoneclient auth fallback  https://review.openstack.org/43437216:30
mordredmorgan: ^^ that should work for all non-osc users - main thing is to make sure it also does not break osc in any way16:31
morganaye16:31
mordredwhich I think it won't, because I do not think osc uses that codepath16:31
dct360mordred: morgan: keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authenticaton. (HTTP 401)16:31
morganthat looks more normal.16:32
mordreddct360: yay! that's a whole new thing - and now I'd check that your username/password/auth_url/project_name are all correct16:32
dct360ok let me check that16:33
dct360mordred: morgan: it's working now - many Thanks!16:41
mordreddct360: YAY!!!16:42
*** abregman has quit IRC16:49
morganmordred: so, i think i will be finishing the move to register_uris today16:54
morganmordred: only another ~60 occurences to fix.16:55
mordredWOOT!16:55
morganmordred: i'll then make register_uri private and used for auth/discovery and test-case setup.16:55
mordred++16:55
morganand since .register_uris errors if you call it more than once, it forces better habbits16:56
morgansorry 160 occurences of "register" uri to convert.16:57
morganmordred: ftr, this has been a slog17:02
mordredmorgan: yah. thanks for doing that17:06
openstackgerritMonty Taylor proposed openstack-infra/shade master: Produce some debug details about nova usage objects  https://review.openstack.org/43440117:08
mordredhopefully that ^^ will help us find the nova usage issue17:08
openstackgerritMonty Taylor proposed openstack-infra/shade master: Try to capture novaclient debug logging  https://review.openstack.org/43440417:14
openstackgerritMonty Taylor proposed openstack-infra/shade master: Force nova microversion to 2.0  https://review.openstack.org/43441617:36
mordredclarkb: ^^ there is an attempt at setting microversion to 2.017:41
clarkbmordred: thinking about the concern for potential for old api to break something a bit more, if you hardcode a newer microversion say the one prior to the breaking one, what is the behavior of novaclient when that version does not exist? does it fail or fall back?17:42
mordredclarkb: it falls back I believe17:43
mordredclarkb: or, more to the point, when I want to start supporting microversions I'll need to request a min and a max iirc17:44
mordredso if I say "I can handle 2.15 to 2.40" and the server only does 2.0 then we'll error17:44
clarkbgotcha17:44
mordredof course, shade will always be able to handle 2.017:44
clarkbso maybe the safe way to do this would be to hardcode a min and max now17:44
clarkbmin 2.0, max last known good version?17:44
clarkb(that ignores that there may be intermediate versions which also break)17:44
mordredI mostly want to just unbreak the gate for now - so if the 2.0 hardcode works (I mean, half the public clouds only have 2.0 anyway, so it's not like we depend on anyhting later)17:45
mordredand deal with min/max setting as part of restification17:46
mordred(which will basically mean shade setting a max microversion it has branching logic to handle - then we can bump the microversion we can handle as we add branching logic for it where appropriate)17:46
mordredclarkb, Shrews: oh good. it also looks like maybe something changed with the cirros image that is normally loaded into glance?17:48
mordredwe're getting AssertionError: 'no sensible image available' is not false17:48
clarkbmordred: I think they are trying to move to qcow2 and stop amiing17:48
mordredI'm so excited about that17:49
Shrewsmordred: you get the bestest bugs17:50
mordredit's because we look for -uec as a suffic17:51
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add image list to debug output on failure  https://review.openstack.org/43442717:52
openstackgerritMonty Taylor proposed openstack-infra/shade master: Consume cirros qcow2 image if it's there  https://review.openstack.org/43442817:52
mordredthere is going to need to be a squash commit17:53
mordredbut I'm leaving themall as commits right now so that people can look at them - if we ever actually get the jobs green again17:53
*** yfried has joined #openstack-shade17:59
*** jamielennox is now known as jamielennox|away18:13
*** yfried has quit IRC18:16
openstackgerritMonty Taylor proposed openstack-infra/shade master: Consume cirros qcow2 image if it's there  https://review.openstack.org/43442818:44
openstackgerritMonty Taylor proposed openstack-infra/shade master: Consume cirros qcow2 image if it's there  https://review.openstack.org/43442818:55
*** iogg has quit IRC19:08
*** yfried has joined #openstack-shade19:27
morganmordred: so, ran into another edge case in use of requests mock, surprised it only hit one test case.19:31
morganmordred: need to pull some magic values out of the response_list19:31
morgan        complete_qs = kwargs.pop('complete_qs', False)19:31
morgan        request_headers = kwargs.pop('request_headers', {})19:31
morgan        real_http = kwargs.pop('_real_http', False)19:31
morganthose are special cases19:31
morganthough _real_http is probably something i can ignore19:31
mordredmorgan: oh fun19:32
morganyeah need to totally restructure .requests_uri19:32
morgan*facepalm*19:32
morganerm uri_registry19:32
morganso, i am wondering if i should make .register_uri just register the stuff in .uri_registry and force the test case to always call .register_uris even if it doesn't pass anything to it?19:33
morganso we get all the magic response_list collapsing added in and avoid extra matchers.19:33
* morgan is overthinking it i think19:33
openstackgerritMonty Taylor proposed openstack-infra/shade master: Fix several concurrent shade gate issues  https://review.openstack.org/43442819:49
openstackgerritMonty Taylor proposed openstack-infra/shade master: Actually normalize nova usage data  https://review.openstack.org/43448119:49
openstackgerritMonty Taylor proposed openstack-infra/shade master: DNM - Patch to verify 2.0 usage payload behavior  https://review.openstack.org/43448219:50
*** cdent has quit IRC19:51
*** jamielennox|away is now known as jamielennox20:36
-openstackstatus- NOTICE: We're currently battling an increase in log volume which isn't leaving sufficient space for new jobs to upload logs and results in POST_FAILURE in those cases; recheck if necessary but keep spurious rebasing and rechecking to a minimum until we're in the clear.20:57
*** yfried has quit IRC21:01
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: Convert use of .register_uri to .register_uris  https://review.openstack.org/43451621:04
morganmordred: will be attacking test_object separately, but almost done21:05
morganmordred: and we have 1 code path now for registering URIs vs. ~321:06
mordred\o/21:06
mordredmorgan: yah - test object - espeicaly task_upload - is where the dragons lie21:07
morganwell, thankfully it all passes now, and i'm not changing any of that21:07
morganjust making it use .register_uris21:07
morganvs .register_uri21:07
mordredyup21:07
mordredmorgan: isn't it amazing how having working tests can allow for large scale code rework with confidence?21:08
mordredmorgan: especially when the mocking is outside of the code boundaries and not of the code api itself?21:08
morganmordred: i'm telling you now, if i ever have to do this volumn of busy work again to restructure tests, I might drink myself to death21:12
morgan:P21:12
mordredmorgan: fwiw, you can drink yourself to death WHILE restructuring tests21:14
morganmordred: 41 more calls to register_uri to delete.21:20
morganthe countdown is real21:21
mordredmorgan: the nice thing too is that I think your work with register_uris really could coalesce into a super nice fixture21:22
*** yfried has joined #openstack-shade21:23
morganmordred: long term yes21:26
mordredyah. not today21:27
morganmordred: i found a case you used self.adapter.register_uri instead of self.register_uri as well21:47
morgannow corrected21:47
mordredmorgan: that's probably because I'm a bad person21:48
morganwell since the syntax for .register_uris is now massively different...21:49
morganthings like that are found more easily21:49
morganugh... now i'm getting a weird timeout21:49
morganthis *just* passed.21:49
morganwtf.21:49
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: Convert test_object to use .register_uris  https://review.openstack.org/43453221:51
morganmordred: ^ and phew21:51
mordredmorgan: \o/21:53
morganmordred: i assume the broken gate things will be resolved at some point21:54
morganbecause my brain feels fried.21:54
mordredyes! I has broken gate resolution worked out21:54
morgancool21:54
morganalso post failures, but that i see is other things21:54
*** gouthamr has quit IRC22:22
*** yfried has quit IRC22:28
morganmordred: ok i'm taking a break. i feel really fried with those last two patches.22:43
morgani'll try and circle up on the rest of the removing keystoneclient mocks in the next day or so.22:43
mordredmorgan: woot! - and totes understand22:43
openstackgerritMonty Taylor proposed openstack-infra/shade master: Actually normalize nova usage data  https://review.openstack.org/43448122:44
morganonly ~83 more keystoneclient mocks, unfortuantely these are the more beastly ones to tackle, catalog and role assignment stuff22:44
*** gouthamr has joined #openstack-shade22:53
mordredmorgan: indeed. although those are also the ones that may feel more like thinking and less like repetitive drudgery22:56
mordredhopefully22:57
morgannope, repetative drudgery the whole way down23:13
morganits like turtles, but less cute23:13
mordredmorgan: if you take more heavy hallucinagens, then the repetition becomes cute again - sort of covered in pastel geometric shapes23:59
mordredwait23:59
mordredthat's a different conversation23:59

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