Monday, 2016-12-19

openstackgerritMerged openstack-infra/shade: Update test of object metadata to mock requests  https://review.openstack.org/41191100:07
openstackgerritMerged openstack-infra/shade: Change get_object_metadata to use REST  https://review.openstack.org/41191200:07
openstackgerritMonty Taylor proposed openstack-infra/shade: Replace mocks of swiftclient with request_mock  https://review.openstack.org/41210800:59
*** gouthamr has joined #openstack-shade02:56
*** gouthamr has quit IRC03:11
*** noama has quit IRC03:12
*** noama has joined #openstack-shade03:12
*** abregman has joined #openstack-shade06:12
*** abregman has quit IRC06:31
*** abregman has joined #openstack-shade06:36
*** yfried has joined #openstack-shade08:31
*** noama has quit IRC08:48
*** cdent has joined #openstack-shade11:11
*** yfried has quit IRC11:25
*** yfried has joined #openstack-shade11:25
*** yfried has quit IRC11:34
*** yfried has joined #openstack-shade11:34
*** yolanda has quit IRC11:59
*** yolanda has joined #openstack-shade12:00
*** gouthamr has joined #openstack-shade13:26
*** cdent has quit IRC14:16
mordredShrews, morgan: so - I'm about 4 test cases away from having converted all of the swift test cases to requests_mock. It's actually been both fun and informative - and I've got notes in the patch about things we should change in the next patch (which should convert from swiftclient to rest)14:33
*** yfried has quit IRC14:44
*** yfried has joined #openstack-shade14:46
mordredHOLY CRAP I'M DONE!!!!14:48
openstackgerritMonty Taylor proposed openstack-infra/shade: Replace mocks of swiftclient with request_mock  https://review.openstack.org/41210814:48
mordredShrews: that ^^ converts the testing of all of the swiftclient calls (although it does not do SwiftService)14:49
* Shrews solving the ENOCOFFEE error atm14:50
mordredShrews: it's the most important problem to solve14:52
*** cdent has joined #openstack-shade14:55
*** jamielennox is now known as jamielennox|away14:56
*** cdent has quit IRC16:26
*** abregman has quit IRC16:35
morganmordred: woot16:49
morganmordred: niiice16:49
morganmordred: i am looking for my laptop in the pile of boxes16:49
morganmordred: but i am now in seattle and have good internet (tm)16:50
* morgan is typing on underpowered netbook that can't run unit tests16:50
mordredmorgan: woot16:52
dtroyermordred: I just noticed your "swiftclient to REST" comment above, are you planning to re-implement those directly in shade?16:54
*** cdent has joined #openstack-shade16:56
openstackgerritMonty Taylor proposed openstack-infra/shade: Stop calling HEAD before DELETE for objects  https://review.openstack.org/41252816:56
openstackgerritMonty Taylor proposed openstack-infra/shade: Stop using full_listing in prep for REST calls  https://review.openstack.org/41252916:56
openstackgerritMonty Taylor proposed openstack-infra/shade: Switch swift calls to REST  https://review.openstack.org/41253016:56
mordreddtroyer: yah - the dependencies on the client libs turns out to be an issue for folks - since shade wants newer client libs, it makes installing it near an older install of openstack problematic16:57
dtroyeryou know OSC has had a subset of swiftclient built-in for 4 years now… :)16:58
mordreddtroyer: glance is done - have everything for swift now except for create_object because we're using SwiftService which is going to take some more work16:58
mordreddtroyer: :)16:58
morgandtroyer: and keystone is on the short-list16:58
mordreddtroyer: I'm finding that direct rest is WAY easier to deal with than the client libs16:58
dtroyerso, politically incorrect question, want to make a stand-aline low-level SDK?16:58
dtroyerwhat is in OSC is what I proposed for that for the Python SDK and was ignored16:58
morgandtroyer: i'd be open to such things, but first priority is getting shade working this way16:58
dtroyerI dont' want an ORM, I just want that too :)16:58
mordreddtroyer: I would ... except honestly that sdk is just keystone auth - the only wrapper stuff I've got in shade right now is munchifcation16:59
morgandtroyer: but for the most part... what mordred just said16:59
dtroyerok, just curious.16:59
dtroyerwe keep duplicating efforts...16:59
morgandtroyer: getting shade 100% rest opens doors for other things (inc. replicating the work for low level sdk things)16:59
mordreddtroyer: (my original thought before I started doign this is pretty much exactly what you just said - but it's shockingly easy to deal with so far... I'm surprised we ever wrote libraries)17:00
mordreddtroyer: and yes on the duplicating efforts front17:00
morgani would rather see shade do the work directly first, since that is the priority work.17:00
dtroyeryou guys run along ahead since you have multiple folk working on it, I'm heading down a different client route already17:00
dtroyergive you 3 gueses as to what17:00
morgan:)17:00
mordreddtroyer: :)17:00
morganhehe17:00
mordreddtroyer: maybe I get you an oaktree server it can talk to too :)17:01
* dtroyer would be in dreamland17:01
morganmordred: you know what the best part of seattle is?17:01
morganmordred: same day prime shipping.17:01
mordredmorgan: you didn't have that in portland?17:02
morganmordred: "oh i need more ethernet cables"17:02
mordredmorgan: I have that here in dallas - it changes everything17:02
morganmordred: nope. never. in fact didn't have that in pasadena either17:02
mordredI almost never buy things anymore if I can't get them same-day primed17:02
morganmordred: but omg... "i want this thing now" is dangerous17:02
mordredyup17:02
dtroyer"here in Dallas"   mordred did you move (again)?17:03
morganalso prime fresh... will be amazing for this week while still unpacking17:03
morgandtroyer: mordred has lived in dallas for... a bit now17:03
morgandtroyer: i just moved to seattle from PDX17:03
* dtroyer can't keep up, been in same house for 9 years now17:04
morganas soon as i have a down payment... planning on buying  a place either here or in nyc.17:04
mordreddtroyer: yah - like a year ago ... we bought a house here so I'm hoping this is the last move for a while17:04
morgandepending on some things (depending on job things, not mine)17:05
morganmordred: i think i'll have that neutron fixture thing done today17:05
morganand on to keystone rest things17:05
morganmordred: did you get the context manager example up?17:06
morganfor ksa?17:06
mordredmorgan: nope! because I suck17:06
morganmordred: totally unrelated, white rabbit project in 4k is pretty darn awesome17:07
mordredmorgan: s/white rabbit project/everything/17:07
morgani might eat my entire 1TB (sigh comcast) bandwidth on 4k streaming17:07
morganyeah that too17:07
morganalso $2 for 4k on netflix is not a bad deal17:08
mordredright?17:15
openstackgerritMonty Taylor proposed openstack-infra/shade: Switch swift calls to REST  https://review.openstack.org/41253017:26
openstackgerritMonty Taylor proposed openstack-infra/shade: Make delete_object return True and False  https://review.openstack.org/41254317:26
openstackgerritMonty Taylor proposed openstack-infra/shade: Update swift exception tests to use 416  https://review.openstack.org/41254417:26
thingeehey all. back from paternity leave :)17:33
morganthingee: welcome back!17:41
openstackgerritMonty Taylor proposed openstack-infra/shade: Make assert_calls a bit more readable  https://review.openstack.org/41254917:43
mordredyay it's a thingee !!!17:43
openstackgerritMerged openstack-infra/shade: Add release notes and an error message for release  https://review.openstack.org/41182917:52
openstackgerritMorgan Fainberg proposed openstack-infra/shade: Add in a dynamic project scope test fixture  https://review.openstack.org/41045318:17
morganmordred: ^ just need the scope override bits. now18:18
morganmordred: (and the forced re-auth, clearly)18:18
mordredwoot18:21
mordredmorgan: I gotta run to the store - will poke when I get back18:22
morganmordred: sounds good.18:22
openstackgerritMorgan Fainberg proposed openstack-infra/shade: Add in a dynamic project scope test fixture  https://review.openstack.org/41045318:24
*** yfried has quit IRC18:25
thingeeoh yay repo merge19:02
thingeeso the comment from the bot says it's automatically moving stuff over, but issues like this one I can't find in ansible/ansible https://github.com/ansible/ansible-modules-core/issues/4108#issuecomment-26219585219:03
*** openstackstatus has quit IRC19:13
*** openstack has joined #openstack-shade19:13
morganmordred: when you're back need some help figuring out where to hook in the scope change. I'm thinking that we should supply a new auth-plugin with the changed values... but it only works with password/v3password that wya19:15
mordredmorgan: well, at the moment we have no functional tests of anything other than password plugins, because as of yet I haven't figured out how to do devstack that way :)19:17
morganare we also ok with this fixture being v3 only?19:18
morganbecause if so...19:18
morganthat makes this way easier19:18
morgani'll just supply a new session for shade when we enter the context for the fixture19:19
morganand restore the original one when we're done19:19
mordredyah - I think that'll be fine19:19
morgancool. then almost done, maybe another hour19:19
morganthen we need to test it / use it19:19
mordredmorgan: I mean - we're going to have to do a little bit of work to make sure we're not trying to run tests that do this when we're running in keystonev2 backwards compat cloud19:19
mordredmorgan: but maybe the fixture can detect that env var and throw a skipTest if it finds it19:20
*** yfried has joined #openstack-shade19:20
mordredmorgan: SHADE_USE_KEYSTONE_V2 is the env var that will be set if we're testing keystone v2, fwiw19:20
morganyah. once we're sure it works we can be a bit pickier19:20
morganactually...19:20
morgani can just look at the plugin type and supply the information19:21
morgani already do so.. so it can do v2 and v319:21
mordred++19:30
mordredmorgan: where does identity_version come from?19:32
mordredoh - that's an instance of a test, not an instance of a cloud19:32
mordrednm19:32
morganyep19:35
openstackgerritMorgan Fainberg proposed openstack-infra/shade: Add in a dynamic project scope test fixture  https://review.openstack.org/41045319:45
morganmordred: ok there we go19:45
morganthat should do it... I hope19:45
openstackgerritMorgan Fainberg proposed openstack-infra/shade: Add in a dynamic project scope test fixture  https://review.openstack.org/41045319:54
morgantypo fix19:54
*** cdent has quit IRC20:36
mordredmorgan: wow, there's a bunch of stuff in there!21:01
*** jamielennox|away is now known as jamielennox21:04
mordredmorgan: so ...21:10
mordredmorgan:         self.use_fixture(scoped_auth.DynamicProjectScopedAuth(self))21:10
mordredthat's about what I should do to use it, right?21:10
openstackgerritMonty Taylor proposed openstack-infra/shade: Add functional test to show floating ip reuse  https://review.openstack.org/40984221:12
mordredmorgan: ^^ here goes nothing21:12
morganmordred: that is the idea.21:13
morganlet's see if this works. :)21:14
mordredI was just typing the same thig21:14
*** gouthamr has quit IRC21:17
*** abregman has joined #openstack-shade21:23
mordredjamielennox: morning! so I did a big requests_mock shade patch over the weekend: https://review.openstack.org/#/c/412108/ and while doing it ran across something (in that commit message) that could either be a swiftclient bug or a requests_mock bug21:51
mordredjamielennox: my hunch (and my one of my next tasks is to try to prove this one way or the other) is that it's a swiftclient bug - but I thought I'd show you in case you were like "oh oops"21:51
jamielennoxmordred: that's a big change - what am i looking at/22:02
mordredoh - sorry ... tl;dr is more the bit in shade/openstackcloud.py where I had to prefix the two strings with b'22:03
mordredjamielennox: if I didn't, I would get b'' back from the fake rest call, and then try to compare the two and they wouldn't match. I _think_ swiftclient is doing the conversion22:04
jamielennoxmordred: so i know i've looked at converting swiftclient to requests-mock in the past and i just found a disaster of string processing and test mocking22:05
*** abregman has quit IRC22:05
jamielennoxso their tests are completely unreliable in testing what they do22:05
mordredjamielennox: awesome. well, at least it isn't just me22:06
jamielennoxon the other hand, i'm not sure off the top of my head what the correct thing to do with str vs bytes in python3 for http headers22:06
jamielennoxi think requests makes them string22:06
jamielennoxbut i would need to double check22:06
mordredjamielennox: well -the swift api docs make some mention that headers are are supposed to be utf8 or something - lemme find the text22:07
jamielennoxfrom a requests-mock perspective i think whatever you put into the response dictionary is what you would get out22:07
jamielennoxi don't think it messes with type encoding at all - unless the requests header dict is doing something22:08
mordredjamielennox: that, to me, seems to be what I'd expect as a user22:10
jamielennoxi can probably step through that and see what's happening22:10
jamielennoxshade is obviously doing this against a real server so i'm guessing it's right22:11
openstackgerritMonty Taylor proposed openstack-infra/shade: Add functional test to show floating ip reuse  https://review.openstack.org/40984222:13
mordredyah - but we don't exercise the fringes of text/bytes/utf-8 in http-headers by any means - so we could be doing something "wrong" that's close enough22:14
mordredmorgan: ^^ typo fix :)22:14
*** yfried has quit IRC22:15
morganmordred: ahh22:19
mordredjamielennox: I took the simple route and went and read the swiftclient source code22:35
jamielennoxmordred: you thought that was simple until you opened it22:36
mordredjamielennox: heh22:36
mordredresp_header_dict calls parse_header_string22:36
mordredjamielennox: which does a .decode('utf8')22:36
mordredwhich explains why it shows up as bytes in python322:36
jamielennoxwhich means requests-mock caught a bug?22:38
mordredwell - they also encode to utf8 when you write the headers22:38
mordredbut yeah - I'm not sure I agree it's the right thing to do - but I'm also not sure they could change it on their users at this point22:39
jamielennoxit's weird for shade though, because that check would never have worked ?22:48
jamielennoxactually i guess it just would have just failed on python 3 - which honestly no one would probably notice22:48
mordredyah. I think that's the real thing - nobody is actually using python3 in anger yet22:49
mordredmorgan: "AttributeError: 'TestFloatingIP' object has no attribute 'identity_version'"22:58
mordredhttp://logs.openstack.org/42/409842/9/check/gate-shade-dsvm-functional-neutron/e8c6119/console.html22:58
mordredmorgan: you may want to pull self.demo_cloud.cloud_config.get_api_version('identity')23:00
morganmordred: ahh23:01
morganmordred: will take a look at that in a sec23:01
morganmordred: fixing that bug now23:32
*** gouthamr has joined #openstack-shade23:58

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