Wednesday, 2015-08-26

*** thrash is now known as thrash|g0ne00:07
*** gildub_ has joined #openstack-sdks00:22
*** gildub has quit IRC00:25
*** openstack has joined #openstack-sdks00:35
*** pm90_ has quit IRC00:35
*** sigmavirus24 is now known as sigmavirus24_awa00:46
*** pm90_ has joined #openstack-sdks00:50
*** steveortiz is now known as zz_steveortiz00:58
jamielennoxterrylhowe: still here?01:08
*** Qiming has joined #openstack-sdks01:10
*** pm90_ has quit IRC01:10
*** pm90_ has joined #openstack-sdks01:19
*** liangbo has joined #openstack-sdks01:22
*** bnemec has quit IRC01:26
*** gildub_ has quit IRC01:27
*** gildub_ has joined #openstack-sdks01:43
*** Yanyanhu has joined #openstack-sdks01:45
*** gildub_ has quit IRC01:49
*** rm_work|away is now known as rm_work02:00
*** gildub_ has joined #openstack-sdks02:06
*** gildub_ has quit IRC02:10
*** rm_work is now known as rm_work|away02:10
*** rm_work|away is now known as rm_work02:17
*** boris-42 has quit IRC02:20
openstackgerritEverett Toews proposed stackforge/python-openstacksdk: Image import  https://review.openstack.org/19931802:41
*** gildub has joined #openstack-sdks02:51
openstackgerritEverett Toews proposed stackforge/python-openstacksdk: Image import  https://review.openstack.org/19931802:52
*** Caleb-- has quit IRC03:28
*** gildub has quit IRC03:38
*** boris-42 has joined #openstack-sdks03:45
*** gildub has joined #openstack-sdks03:55
*** Caleb-- has joined #openstack-sdks04:00
*** gildub has quit IRC04:49
*** gildub has joined #openstack-sdks04:49
*** Yanyanhu has quit IRC05:26
*** Yanyanhu has joined #openstack-sdks05:27
*** aufi has joined #openstack-sdks06:26
*** aufi has quit IRC06:47
*** e0ne has joined #openstack-sdks06:52
*** gildub has quit IRC06:52
*** aufi has joined #openstack-sdks07:30
*** e0ne has quit IRC07:45
*** dguerri` is now known as dguerri08:21
*** Yanyanhu has quit IRC08:25
*** Yanyanhu has joined #openstack-sdks08:25
openstackgerritQiming Teng proposed stackforge/python-openstacksdk: add scheduler_hints support for server creation  https://review.openstack.org/20463708:38
*** liangbo has quit IRC09:08
*** e0ne has joined #openstack-sdks09:08
*** e0ne has quit IRC09:18
*** e0ne has joined #openstack-sdks09:23
*** dguerri is now known as dguerri`09:40
*** liangbo has joined #openstack-sdks10:05
*** Yanyanhu has quit IRC10:20
openstackgerritTerry Howe proposed openstack/python-openstackclient: Create log configuration class  https://review.openstack.org/21129110:23
openstackgerritTerry Howe proposed openstack/python-openstackclient: Allow debug to be set in configuration file  https://review.openstack.org/21129310:24
*** Qiming has quit IRC10:26
*** Qiming has joined #openstack-sdks11:53
*** trown|outttypeww is now known as trown12:09
*** thrash|g0ne is now known as thrash12:12
*** petertr7_away is now known as petertr712:16
*** jaosorior has joined #openstack-sdks12:31
*** petertr7 is now known as petertr7_away12:53
*** petertr7_away is now known as petertr712:56
terrylhoweI am no jamielennox12:57
terrylhowes/no/now12:57
*** jose4183 has joined #openstack-sdks13:03
*** jose4183 has quit IRC13:05
*** jose4183 has joined #openstack-sdks13:08
*** pm90__ has joined #openstack-sdks13:09
*** pm90_ has quit IRC13:12
*** thrash has quit IRC13:30
*** thrash has joined #openstack-sdks13:31
*** liangbo has quit IRC13:32
*** bknudson has joined #openstack-sdks13:38
*** zz_steveortiz is now known as steveortiz13:50
openstackgerritOpenStack Proposal Bot proposed openstack/cliff: Updated from global requirements  https://review.openstack.org/21714213:53
*** sigmavirus24_awa is now known as sigmavirus2414:05
*** petertr7 is now known as petertr7_away14:16
*** steveortiz is now known as zz_steveortiz14:38
*** petertr7_away is now known as petertr714:38
*** jose4183 has quit IRC14:42
*** jose4183 has joined #openstack-sdks14:45
*** jose4183 has quit IRC14:51
*** jose4183 has joined #openstack-sdks14:52
*** Qiming has quit IRC14:54
*** thrash has quit IRC15:08
*** thrash has joined #openstack-sdks15:09
*** boris-42 has quit IRC15:10
*** bnemec has joined #openstack-sdks15:17
*** GheRivero is now known as GheRivero_Out15:25
etoewsbriancurtin: did you have any feels about the elif hasattr(data, 'read') in https://review.openstack.org/#/c/199318/ ?15:27
briancurtinetoews: looking at that right now, actually. i need a similar thing in object_store and am seeing if i can write a small util func to handle it once and for all. generally you don't want to do the hasattr thing -- just try to read and handle the exception if it can't be read, and fallback from there15:28
etoewsbriancurtin: but just trying to read seems dangerous "When size is omitted or negative, the entire contents of the file will be read and returned; it’s your problem if the file is twice as large as your machine’s memory."15:31
briancurtinetoews: eh, going to hold off on a common thing for right now as what i need in object_store needs a few turnable knobs and buttons15:31
etoewsokay. then how about we leave the hasattr as is for now but update it when you've got something more generic?15:32
briancurtinetoews: with what you're working with in image, can it take segmented images for upload or does it need the whole thing at once?15:32
briancurtinetoews: use getattr(ob, attr, <False or None>) instead of hasattr15:33
*** aufi has quit IRC15:33
briancurtinin that case, None, and then check is not None15:34
etoewshmmm...not sure how it handles large image files yet.15:34
etoewsneed to do some testing.15:34
briancurtinetoews: for object_store.upload_object, i'm going to have to add some params somewhere for segment size and then open the file in those chunks and upload in those chunks15:35
etoewsbut i don't know how practical it would be to actually add a large image to the functional tests.15:35
briancurtinetoews: the util func I'm thinking of probably does the following order: try to .read() the `data` param as a file-like obj, try to open a file with the `data` param if os.path.exists works, or just use what is contained in the `data` param15:36
etoewsbriancurtin: this looks promising. http://docs.python-requests.org/en/latest/user/advanced/#streaming-uploads15:37
etoewsi'm going to just see how well it works. it'll probably break my devstack though.15:37
briancurtinetoews: i wonder if the server is able to work with that15:38
-openstackstatus- NOTICE: restarting gerrit due to a slow memory leak15:45
etoewsbriancurtin: just uploaded a 327.5 MB file using only data=open('image-file', 'r')15:55
briancurtinetoews: is that big? :) (i don't know what constitutes a big image)15:55
briancurtinetoews: i have to do some work on the object_store one because it can't accept more than a 5GB file, so if  you want more than that it needs segmentation (or if you *want* it segmented smaller than that)15:56
etoewsno but it's a start. in my experience, svelte images are 1-2 GB but they can get up to 5 GB or larger.15:56
briancurtinetoews: also was this with the requests streaming?15:56
etoewsthis was with the requests streaming. it also supports chunking by giving it a generator.15:57
*** liangbo has joined #openstack-sdks15:58
etoewsif we can avoid writing any "chunking" code, that's a huge plus. i've seen (not written) that code before and it's nasty.15:58
briancurtinetoews: i'm going to have to do something like it for object_store since you have to create the segments yourself, e.g., /container/object/00001.../container/object/0000516:05
etoewsah yes. ick. once you've chunked it yourself, now i believe you're also responsible for efficiently getting all of those chunks to swift. e.g. multi-threading the upload for efficient bandwidth usage.16:08
etoewsi'd advise talking to sigmavirus24 on this. he's probably got good advice on it and maybe there's even something in requests that will make your life easier.16:10
*** petertr7 is now known as petertr7_away16:10
sigmavirus24what's up?16:10
etoewsbriancurtin is chunking16:10
etoewsmaybe more accurately...segmenting.16:10
sigmavirus24so let me provide one warning when using a file with streaming16:11
briancurtinsigmavirus24: object_store large object segmentation. i think it's above requests16:11
briancurtinnot using streaming16:11
sigmavirus24we pass that file down to httplib and that reads 8192 byte chunks at a time16:11
sigmavirus24so it's super slow16:11
sigmavirus24briancurtin: okay16:11
sigmavirus24yeah I think the way swift does it's segmenting is outside of requests16:12
briancurtinsigmavirus24: from what I can tell: take a big file, open segments, upload them with some ordered suffix, so /cont/ob/0001, /cont/ob/0002, etc16:12
sigmavirus24For as sad as reading its code makes me, I would think you could extract the logic from swiftclient16:13
sigmavirus24Fwiw, swiftclient will use threading (I think) to do concurrent uploads too if possible16:13
sigmavirus24(to be clear threading is fine with http because threading works well with IO)16:13
etoewssigmavirus24: how does glance handle large file streams? say 5 GB and above?16:13
briancurtinyep, and we might have to implement some of that, although I'm not too sure where it fits in with what we're doing off the top of my head16:13
briancurtin(especially since what we have now is probably going away with KSA)16:14
etoewsdoh. i forgot about ksa.16:14
sigmavirus24etoews: glance server or client?16:15
etoewsserver16:15
sigmavirus24etoews: I forget the exact workflow but 5GB images work fine16:15
sigmavirus24It's 30GB ones that cause problems with expired tokens etc16:15
etoewsactually, knowing what the client does might be helpful too.16:15
etoewsi just uploaded a 1.21 GB image using only data=open('image-file', 'r') successfully16:16
sigmavirus24Also keep in mind if you're planning on streaming large things with requests, you may want something like https://github.com/sigmavirus24/requests-toolbelt/pull/8416:16
sigmavirus24etoews: yeah I bet that took a while though16:16
etoewsyep16:16
sigmavirus24Yeah that's because of the 8192 byte sized reads16:17
etoews~15 min.16:17
sigmavirus24yep16:17
etoewsbriancurtin: at this point i'm comfortable with the image upload code the way it is for handling large files. considering we're going to ksa, i don't think it's worthwhile to put any effort in to optimize it at this point in time.16:19
briancurtinetoews: yeah, makes sense to me. we can work on KSA when we need to tweak16:19
terrylhowecatching up on the backscroll, sounds reasonable etoews waiting on optimization16:20
etoewssigmavirus24: FastererererWrapper++16:20
etoewssigmavirus24: thanks for the info. we'll probably revisit this w.r.t. requests in the future.16:21
sigmavirus24etoews: sure16:23
sigmavirus24Just a word of warning, even urllib3 behaves this way (because it all just gets passed to httplib which is awful)16:24
etoewssigmavirus24: the size of the reads isn't configurable in urllib/httplib?16:25
sigmavirus24NOPE16:25
sigmavirus24we don't use urllib either16:25
etoewswft :*(16:25
sigmavirus24urllib3 is a separate library that we do use16:25
sigmavirus24etoews: it's fine16:25
sigmavirus24No one uploads big files with python16:25
sigmavirus24Nope16:25
sigmavirus24No one ever16:25
sigmavirus24Not once has someone ever wanted to16:25
etoewswhy would anyone ever want to do that?16:26
sigmavirus24What's funnier is that this person who has 2 commits to CPython was hired to work on httplib and hasn't done squat16:26
sigmavirus24*hired by a company16:26
etoewsi don't do it so no one else must do it.16:26
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: object_store switch create/save to upload/download  https://review.openstack.org/21729316:26
sigmavirus24I love people that get jobs based off projects they might become core developers of and then never do anything with16:26
sigmavirus24It's borrowing against work for the community that never gets done16:26
openstackgerritEverett Toews proposed stackforge/python-openstacksdk: Image import  https://review.openstack.org/19931816:30
*** liangbo has quit IRC16:34
*** liangbo has joined #openstack-sdks16:37
*** trown is now known as trown|lunch16:53
*** petertr7_away is now known as petertr716:56
*** boris-42 has joined #openstack-sdks17:07
openstackgerritMerged stackforge/python-openstacksdk: Updated from global requirements  https://review.openstack.org/21722617:07
*** pm90_ has joined #openstack-sdks17:09
*** liangbo has quit IRC17:09
*** jose4183 has quit IRC17:09
*** pm90_ has quit IRC17:10
*** petertr7 is now known as petertr7_away17:11
*** pm90__ has quit IRC17:11
*** jose4183 has joined #openstack-sdks17:13
*** e0ne has quit IRC17:15
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: object_store switch create/save to upload/download  https://review.openstack.org/21729317:18
*** jose4183 has quit IRC17:18
*** jose4183 has joined #openstack-sdks17:19
*** zz_steveortiz is now known as steveortiz17:22
openstackgerritMerged openstack/python-openstackclient: default OS_VOLUME_API_VERSION to v2  https://review.openstack.org/21630517:23
*** jose4183 has quit IRC17:24
*** trown|lunch is now known as trown17:47
*** pm90_ has joined #openstack-sdks17:55
*** hitalia has joined #openstack-sdks18:08
*** openstackgerrit has quit IRC18:17
*** openstackgerrit has joined #openstack-sdks18:17
*** ameybhide has joined #openstack-sdks18:22
*** jose4183 has joined #openstack-sdks18:23
*** e0ne has joined #openstack-sdks18:25
*** jose4183 has quit IRC18:28
*** e0ne has quit IRC18:50
*** jose4183 has joined #openstack-sdks18:59
*** hitalia has quit IRC19:00
*** jose4183 has quit IRC19:04
*** jose4183 has joined #openstack-sdks19:04
*** e0ne has joined #openstack-sdks19:13
*** jose4183 has quit IRC19:18
*** jose4183 has joined #openstack-sdks19:19
*** jose4183 has quit IRC19:21
*** jose4183 has joined #openstack-sdks19:21
*** petertr7_away is now known as petertr719:23
*** jose4183 has quit IRC19:52
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Keystone auth integration  https://review.openstack.org/18614019:54
*** jose4183 has joined #openstack-sdks20:18
*** petertr7 is now known as petertr7_away20:20
*** hitalia has joined #openstack-sdks20:26
*** e0ne has quit IRC20:28
*** etoews has quit IRC20:41
*** ameybhide has quit IRC20:55
*** openstackgerrit has quit IRC21:01
*** openstackgerrit has joined #openstack-sdks21:02
*** steveortiz is now known as zz_steveortiz21:02
*** jaosorior has quit IRC21:15
*** trown is now known as trown|outttypeww21:15
*** jamielennox has quit IRC21:36
*** jamielennox has joined #openstack-sdks21:38
*** stevemar has joined #openstack-sdks21:40
*** pm90__ has joined #openstack-sdks21:51
*** pm90__ has quit IRC21:51
*** pm90__ has joined #openstack-sdks21:52
*** pm90__ has quit IRC21:52
*** pm90_ has quit IRC21:55
*** jose4183 has quit IRC21:58
*** bknudson has quit IRC22:08
*** stevemar has quit IRC22:32
*** pm90_ has joined #openstack-sdks22:39
*** pm90__ has joined #openstack-sdks22:40
*** pm90_ has quit IRC22:41
*** pm90_ has joined #openstack-sdks22:44
*** pm90__ has quit IRC22:47
*** hitalia has quit IRC22:58
*** gildub has joined #openstack-sdks23:09
*** thrash is now known as thrash|g0ne23:20
*** Qiming has joined #openstack-sdks23:39

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