Monday, 2017-03-13

*** jamielennox is now known as jamielennox|away00:20
*** jamielennox|away is now known as jamielennox00:27
*** gouthamr has quit IRC02:17
mordredianw: around? https://review.openstack.org/#/c/443251 and https://review.openstack.org/#/c/444331 (the second addresses your concerns from the first)05:25
ianwmordred: yeah, i think they're ok ... complexity sort of increased from the original :)05:36
mordredianw: yah. it did a bit didn't it :)05:46
openstackgerritMerged openstack-infra/shade master: Convert test_services to requests_mock  https://review.openstack.org/44447506:09
openstackgerritMerged openstack-infra/shade master: Put fnmatch code back, but safely this time  https://review.openstack.org/44325106:24
openstackgerritMerged openstack-infra/shade master: Only do fnmatch compilation and logging once per loop  https://review.openstack.org/44433106:24
openstackgerritMerged openstack-infra/shade master: Raise a more specific exception on nova 400 errors  https://review.openstack.org/44120506:24
*** openstackgerrit has quit IRC08:18
*** yfried has joined #openstack-shade08:37
*** cdent has joined #openstack-shade11:01
*** ioggstream has joined #openstack-shade12:03
*** ioggstream has quit IRC12:13
*** DuncanT has joined #openstack-shade12:26
*** gouthamr has joined #openstack-shade13:47
*** openstackgerrit has joined #openstack-shade14:21
openstackgerritJordan Pittier proposed openstack-infra/shade master: attach_volume should always return a vol attachment.  https://review.openstack.org/43496414:21
*** dtroyer_zz has quit IRC14:33
*** dtroyer has joined #openstack-shade14:33
*** ioggstream has joined #openstack-shade15:40
*** ioggstream has quit IRC15:52
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: change test_endpoints to use requests mock  https://review.openstack.org/44454115:53
*** yfried has quit IRC15:56
*** yfried has joined #openstack-shade15:56
*** yfried has quit IRC16:05
*** thingee has quit IRC16:45
notmorganuh...16:51
notmorganmordred: so... i have what looks to be a mismatch in keystone docs and shade (checking keystone server)16:52
notmorganbut i think we have some doc != behavior *sigh*16:52
notmorganyep, looks like shade was actually incorrect here16:52
mordredyay!16:53
notmorganyou could never create a endpoint16:53
notmorganhttps://www.irccloud.com/pastebin/IAUEjoaM/16:53
notmorgannote "region_id" vs "region"16:53
notmorgansomething is wonky16:53
notmorganbut i'm digging into keystone16:53
notmorganmaybe we just really suck at making requests different from api results (oh god, please no)16:53
notmorganhmm yeah looks like region_id is correct in all cases16:54
notmorgannot "region"16:54
notmorganmordred: so...17:04
notmorganmordred: since this never could have worked in shade17:04
notmorganis it ok to change the signatures to use 'region'17:04
notmorganno one could have used it without it raising exceptions/breaking anyway17:04
mordrednotmorgan: we have functional tests that test that function though17:05
mordred(not arguing that you're not right - just wondering how it worked against devstacka)17:06
mordredalso - what does region_id mean? that makes it seem like there is also a region_name somewhere :)17:07
mordredoh wow - and we _still_ haven't landed the ansible module for endpoints17:09
*** openstackgerrit has quit IRC17:18
*** gouthamr has quit IRC17:21
notmorganregion_id is all we store in the db17:22
notmorganregion_id is the region_name17:22
notmorganor whatever is in the endpoint17:22
notmorganregion doesn't have a name attribute17:22
mordredyah. I mean - it's called region_name in the client libs on the consume-side17:23
mordredsigh17:23
mordrednotmorgan: region is what keystoneclient endpoint.update takes as an arg17:25
mordred    def create(self, service, url, interface=None, region=None, enabled=True,17:25
mordred               **kwargs):17:25
mordredwhen we switch that to call rest instead, we'll want to change it to send region_id in the payload instead of region in the kwargs17:26
notmorganyeah. it's... ugh17:26
notmorgandamn it17:26
notmorgankeystoneclient is bad and should feel bad17:26
mordred:)17:26
notmorgangod this is just terrible17:27
notmorganbecause we now have something that doesn't even remotely mirror the API17:27
notmorganfwiw, it seems like ksc does weird things.17:27
mordredyes, this iwll be yet-another place where the shade API and the REST API do not resemble each other17:28
notmorganuhm17:28
mordredsilly me for ever having used the python-*client17:28
notmorgankeystoneclient is wrong here afaict17:28
mordredlibs17:28
mordrednotmorgan: that does not surprise me17:28
notmorganthis *only* works because we accidently have "extras" on endpoint17:28
notmorganoh god no. No ... no no no no no no17:29
notmorgan            endpoint['region_id'] = endpoint.pop('region')17:29
notmorganin the controller17:29
notmorganthis means we *expect* region to be sent17:30
notmorganbut we respond with region_id17:30
mordrednotmorgan: happy monday!17:30
* notmorgan throws hands up and goes and does something else for an hour or two17:31
notmorgani have some other things to deal with, so i am going to take a break before i get really annoyed by this.17:31
notmorganbut in short, shade *is* wrong. but not in the way we expected17:31
notmorgans/we/i17:32
*** gouthamr has joined #openstack-shade17:37
-openstackstatus- NOTICE: restarting gerrit to address performance problems17:45
*** jamielennox is now known as jamielennox|away17:53
*** openstackgerrit has joined #openstack-shade18:37
openstackgerritClark Boylan proposed openstack/os-client-config master: OVH supports qcow2  https://review.openstack.org/44504218:37
SamYaplemordred: still havent landed since we still need shade changes for endpoints that i never wrote!19:38
SamYaplemostly because i could never figure out how to do it cleanly19:38
SamYaplewe came up with a working solution on paper. then i went to implement it and that broke backward compat for shade and i just sorta gave up19:39
SamYaplelanded the ansible module* -- there, context19:40
*** jamielennox|away is now known as jamielennox20:37
mordredSamYaple: yah- based on things notmorgan has said I'm starting to think our approach to endpoints was wrong from the start20:44
*** cdent has quit IRC20:47
SamYaplemordred: i could go find the logs where i said simliar things...20:56
SamYaplebut its not on you20:56
SamYapleits on keystone v2 and the keystone pyhton libs20:56
SamYapleoh im sorry. keystone v2.020:56
SamYaplethe fact is, the 2 and 3 compat is killing it20:56
SamYaplebecause 3 operates differently than 2 in a few key areas that its almost its own thing20:57
mordredyah - I think in hindsight we should have just made 2 calls, since it's an operator action and the operator should know if they're running v2 or v3 - but ... water under the bridge at this point21:04
openstackgerritMerged openstack/os-client-config master: OVH supports qcow2  https://review.openstack.org/44504221:05
*** gouthamr has quit IRC21:06
SamYaplemordred: i mean, that isn't a new opinion.21:38
SamYaple##ansible-shade.2016-08-08.log:14:57 < mordred> well, I'm ok with us adding new features that only work on keystone v3 in operatorcloud21:38
SamYaple##ansible-shade.2016-08-08.log:14:57 < mordred> because I think it's ok for operators to know what version of keystone they're running21:38
SamYaplethe issue was trying to return v2 and v3 in the same way21:38
SamYapleforcing it into the same structure21:38
SamYaplewell my issue, the one notmorgan brings up is different21:38
*** jamielennox is now known as jamielennox|away22:03
*** jamielennox|away is now known as jamielennox22:07
*** gouthamr has joined #openstack-shade22:28

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