Monday, 2014-03-17

h6wBugger.  Doesn't look like it: https://github.com/openstack/swift/blob/fc18d0856dd8677521b8f940cb7fc2c6ffbc2e26/swift/common/wsgi.py#L16200:00
*** keving1 has quit IRC00:01
*** matsuhashi has joined #openstack-swift00:12
*** Midnightmyth has quit IRC00:20
*** matsuhashi has quit IRC00:31
*** mlipchuk has quit IRC00:46
*** matsuhashi has joined #openstack-swift00:52
*** keving1 has joined #openstack-swift00:58
*** keving1 has quit IRC01:07
*** nosnos has joined #openstack-swift01:30
*** shakamunyi has joined #openstack-swift01:37
notmynameh6w: no, but you wouldn't want it anyway01:48
notmynameh6w: because reasons https://github.com/notmyname/ssl_eventlet_slowloris01:48
notmynameh6w: basically python + eventlet is completely unusable in a productions server. so use an external service to terminate ssl (eg stud, stunnel, HAProxy, etc)01:49
h6wI don't understand. I have a RAPIDSSL cert I'd like to use with my proxy server, but it requires an intermediate CA.01:49
h6wOh, so you're saying someone could DOS my server?01:50
notmynameh6w: all I'm saying is that you shouldn't terminate the ssl connection at the swift proxy server. eg do it with stud on the box and then redirect the cleartext to the proxy on the same box. or use a separate ssl-terminating load balancer01:50
notmynameh6w: ya, exactly01:50
notmynameclient --- (Internet)--> stud on proxy box ---(localhost)--->proxy on proxy box  -->etc01:51
notmynameh6w: gotta go help with the kids. kids are going crazy and wife is asking for help :-)01:52
h6wI guess I don't *really* need SSL at all.  So far it's all on a private net.  But the longer aim is to use it for co-lo, like I saw at LCA.01:53
h6wOk.  Thanks for your help!01:53
*** keving1 has joined #openstack-swift02:03
*** keving1 has quit IRC02:11
*** haomaiw__ has quit IRC02:17
*** haomaiwa_ has joined #openstack-swift02:18
*** haomai___ has joined #openstack-swift02:31
*** haomaiwa_ has quit IRC02:35
*** matsuhashi has quit IRC02:48
*** matsuhas_ has joined #openstack-swift02:52
*** keving1 has joined #openstack-swift03:08
*** tsg has joined #openstack-swift03:08
*** lpabon has joined #openstack-swift03:10
*** keving1 has quit IRC03:15
*** mrsnivvel has joined #openstack-swift03:16
*** tsg is now known as tgohad03:16
*** tgohad is now known as tusharsg03:16
*** tusharsg has left #openstack-swift03:17
*** tusharsg has joined #openstack-swift03:20
*** mmcardle has joined #openstack-swift03:22
*** tusharsg is now known as tgohad03:22
*** matsuhas_ has quit IRC03:22
*** mmcardle has quit IRC03:26
h6wI have some conflicting information I don't understand.03:44
h6wFrom the (old) documentation: "Assuming there are 5 zones with 1 node per zone, ZONE should start at 1 and increment by one for each additional node."03:44
h6wHowever, in noymyname's talk (http://www.youtube.com/watch?v=LpmBRqevuVU) he says "You have two regions in a co-lo, but note all the nodes have the same zone."03:45
h6wnoymyname=notmyname03:46
*** tgohad is now known as tusharsg03:46
h6wHmmm, so why would I want 1 node per zone?03:48
*** Edward-Zhang has joined #openstack-swift04:04
*** keving1 has joined #openstack-swift04:13
*** Edward-Zhang has quit IRC04:13
*** keving1 has quit IRC04:19
*** lpabon has quit IRC04:23
*** mmcardle has joined #openstack-swift04:24
*** mmcardle has quit IRC04:29
*** ppai has joined #openstack-swift04:29
*** matsuhashi has joined #openstack-swift04:43
*** keving1 has joined #openstack-swift04:48
*** Edward-Zhang has joined #openstack-swift04:53
*** keving1 has quit IRC04:56
*** Diddi has joined #openstack-swift05:05
*** yuanz has joined #openstack-swift05:11
*** yuan has quit IRC05:11
*** Edward-Zhang has quit IRC05:35
*** keving1 has joined #openstack-swift05:53
*** nosnos has quit IRC05:54
*** nosnos has joined #openstack-swift05:54
*** matsuhashi has quit IRC05:56
*** matsuhashi has joined #openstack-swift05:57
*** matsuhashi has quit IRC05:57
*** keving1 has quit IRC06:00
*** matsuhashi has joined #openstack-swift06:00
*** matsuhashi has quit IRC06:09
*** matsuhashi has joined #openstack-swift06:10
*** matsuhas_ has joined #openstack-swift06:12
*** matsuhashi has quit IRC06:14
*** nosnos has quit IRC06:24
*** nosnos has joined #openstack-swift06:25
*** matsuhas_ has quit IRC06:25
*** matsuhashi has joined #openstack-swift06:25
*** mmcardle has joined #openstack-swift06:26
*** mmcardle has quit IRC06:30
*** matsuhashi has quit IRC06:39
*** matsuhashi has joined #openstack-swift06:40
*** saju_m has joined #openstack-swift06:47
*** gabia has joined #openstack-swift07:15
gabiahi all.07:15
gabiai have some error.07:15
gabiaswift showen error log07:16
gabia object-server ERROR __call__ error with DELETE07:16
gabia[Errno 2] No such file or directory07:16
gabiacan help somebody?07:17
*** rongze has joined #openstack-swift07:21
*** rongze has quit IRC07:23
gabiaobject-server ERROR __call__ error with DELETE /sdb3/40392/.expiring_objects07:27
gabialine 2150, in _run_in_eventlet_tpool#012OSError: [Errno 2] No such file or directory: '/srv/3/node/sdb3/objects/40392/dda/27723df0bced61f4670c3c0564b2cdda/1395040284.12976.ts07:27
gabiait is error log message07:27
*** keving1 has joined #openstack-swift08:03
*** mmcardle has joined #openstack-swift08:07
*** keving1 has quit IRC08:10
*** nosnos has quit IRC08:13
*** nosnos has joined #openstack-swift08:14
*** matsuhashi has quit IRC08:17
*** matsuhashi has joined #openstack-swift08:17
*** openstack has quit IRC08:21
*** openstack has joined #openstack-swift08:30
*** openstackstatus has joined #openstack-swift08:30
*** nosnos has quit IRC08:34
*** bada_ has quit IRC08:40
*** jamieh has joined #openstack-swift08:44
*** jamieh is now known as Guest8916908:44
*** mlipchuk has joined #openstack-swift08:49
*** nacim has joined #openstack-swift08:49
*** matsuhas_ has quit IRC08:56
*** matsuhashi has joined #openstack-swift09:06
*** gabia has quit IRC09:07
*** keving1 has joined #openstack-swift09:08
*** nosnos has joined #openstack-swift09:14
*** keving1 has quit IRC09:17
*** krtaylor has quit IRC09:38
*** Trixboxer has joined #openstack-swift09:40
*** saschpe has quit IRC09:42
*** chandan_kumar has joined #openstack-swift09:48
*** saschpe has joined #openstack-swift09:52
*** nosnos_ has joined #openstack-swift09:55
*** nosnos has quit IRC09:58
*** saschpe has quit IRC10:02
*** saschpe has joined #openstack-swift10:08
*** nosnos_ has quit IRC10:10
*** nosnos has joined #openstack-swift10:12
*** keving1 has joined #openstack-swift10:13
*** saschpe has quit IRC10:13
*** saschpe has joined #openstack-swift10:15
*** Midnightmyth has joined #openstack-swift10:15
*** saschpe has quit IRC10:16
*** saju_m has quit IRC10:17
*** saschpe has joined #openstack-swift10:21
*** keving1 has quit IRC10:21
*** mkollaro has joined #openstack-swift10:22
*** saschpe has quit IRC10:26
*** saschpe has joined #openstack-swift10:28
*** saschpe has quit IRC10:28
*** saju_m has joined #openstack-swift10:32
*** Midnightmyth has quit IRC10:35
*** matsuhashi has quit IRC10:38
*** nosnos has quit IRC10:46
*** nosnos has joined #openstack-swift10:47
*** matsuhashi has joined #openstack-swift10:54
*** saschpe has joined #openstack-swift10:57
*** matsuhashi has quit IRC11:05
*** openstackgerrit has quit IRC11:10
*** openstackgerrit has joined #openstack-swift11:10
*** yuanz has quit IRC11:11
*** yuanz has joined #openstack-swift11:11
*** matsuhashi has joined #openstack-swift11:13
*** saju_m has quit IRC11:15
*** keving1 has joined #openstack-swift11:18
*** keving1 has quit IRC11:27
*** matsuhashi has quit IRC11:31
*** chuck_ has joined #openstack-swift11:31
*** chuck_ is now known as zul11:34
*** zul has joined #openstack-swift11:34
*** saju_m has joined #openstack-swift11:36
*** ppai has quit IRC12:00
*** Edward-Zhang has joined #openstack-swift12:18
*** chandan_kumar has quit IRC12:21
*** keving1 has joined #openstack-swift12:23
*** matsuhashi has joined #openstack-swift12:27
*** keving1 has quit IRC12:30
*** matsuhashi has quit IRC12:37
*** nosnos_ has joined #openstack-swift12:37
*** nosnos has quit IRC12:37
*** matsuhashi has joined #openstack-swift12:37
*** mmcardle has quit IRC12:39
*** matsuhashi has quit IRC12:42
*** mmcardle has joined #openstack-swift12:50
*** saschpe has quit IRC12:54
*** tdasilva has joined #openstack-swift12:56
*** matsuhashi has joined #openstack-swift13:03
*** saschpe has joined #openstack-swift13:05
*** matsuhashi has quit IRC13:05
*** matsuhashi has joined #openstack-swift13:05
*** matsuhashi has quit IRC13:10
*** krtaylor has joined #openstack-swift13:12
*** nosnos_ has quit IRC13:12
*** saschpe has quit IRC13:12
*** mrsnivvel has quit IRC13:14
*** fifieldt has quit IRC13:20
*** keving1 has joined #openstack-swift13:28
*** tanee-away is now known as tanee13:29
*** keving1 has quit IRC13:36
*** dmsimard has joined #openstack-swift13:37
*** cschwede has joined #openstack-swift13:44
*** JuanManuelOlle has joined #openstack-swift13:47
*** saschpe has joined #openstack-swift13:56
*** saschpe has quit IRC14:00
*** jasondotstar has joined #openstack-swift14:10
*** zul has quit IRC14:11
*** zul has joined #openstack-swift14:13
*** judd7 has joined #openstack-swift14:17
*** byeager has joined #openstack-swift14:25
*** keving1 has joined #openstack-swift14:33
*** j_king_ is now known as j_king14:40
*** keving1 has quit IRC14:42
*** Edward-Zhang has quit IRC14:47
notmynamefrom my company's twitter feed this morning: "Hi @SwiftStack ! Do you like Taylor Swift ? Follow me on twitter and become Swifty  ! <3"14:54
notmynamenot the kind of "Swift" I'm going for ;-)14:54
*** mlipchuk has quit IRC14:58
*** saschpe_ has joined #openstack-swift15:00
luisbgmorning15:03
luisbgnotmyname, hahahah Taylor Swift is the spirit animal of Swift, right?15:03
*** saju_m has quit IRC15:03
*** tburnes has joined #openstack-swift15:07
*** saschpe_ has quit IRC15:11
*** saju_m has joined #openstack-swift15:20
notmynameluisbg: don't be shy about adding a -1 to a review if you think it needs something (https://review.openstack.org/#/c/78043/)15:21
notmynameluisbg: and thanks for the reviews! :-)15:21
luisbgnotmyname, a core reviewer liked the change, it is small and useful15:22
luisbgbut I think it can be better with a unit test15:22
luisbgnotmyname, my pleasure :)15:22
luisbgnotmyname, and... wow! so fast to read the review15:23
notmyname(email alerts)15:23
*** byeager has quit IRC15:23
*** byeager has joined #openstack-swift15:24
notmynameI get an email for every gerrit comment on every swift-related project (yes, that's a lot of email)15:24
luisbgnotmyname, hopefully you have it well filtered15:24
luisbgnotmyname, https://review.openstack.org/#/c/78043/  why is Jenkins starting a test build when I commented?15:25
notmynameluisbg: because if it hasn't passed a test run in the last 48(?) hours when there is activity on the review, it automatically reruns the tests15:26
luisbgmakes sense, thanks15:26
notmynamebut the real reason that was put into place was to try to frontload some of the checking work the gate queue was doing so that the (literally) week-long gate queues of a few months ago don't happen again15:27
luisbgnotmyname, sorry I haven't been very active in Swift lately, I have been focusing on the Swift music player example15:27
notmynameIMO, that counts (as long as you tell people about it) ;-)15:27
luisbgnotmyname, I can imagine close to a freeze the gates get collapsed with jobs15:27
* notmyname goes to get ready for the day15:28
luisbgnotmyname, it doesn't count in my "presence" as a contributor, but yeah, it is fun. Halfway through to share it with you guys and the world15:28
notmynameI'll be back in an hour or so15:28
*** byeager has quit IRC15:28
luisbgnotmyname, have a good commute15:29
*** shakamunyi has quit IRC15:31
*** byeager has joined #openstack-swift15:35
*** keving1 has joined #openstack-swift15:38
*** annegentle has joined #openstack-swift15:46
*** keving1 has quit IRC15:47
*** saschpe_ has joined #openstack-swift15:49
*** saschpe_ has quit IRC16:02
*** saschpe has joined #openstack-swift16:04
*** saschpe has quit IRC16:06
*** gyee has joined #openstack-swift16:13
*** saju_m has quit IRC16:15
*** jasondotstar has quit IRC16:19
notmynameacoles-: is eamonn on IRC?16:24
notmynamealso, I'm looking for mjseger16:24
*** jasondotstar has joined #openstack-swift16:30
*** keving1 has joined #openstack-swift16:43
*** keving1 has quit IRC16:52
anticwseems if you have an SLO with missing segments you can't HEAD, DELETE, or GET it ...16:55
anticwanyone know when this was fixed (i'm sure it must have been)16:55
*** saschpe has joined #openstack-swift17:01
notmynameanticw: on current master, I created a static manifest, and deleted segment 4 (100MB total, 10MB chunks)17:08
*** saschpe has quit IRC17:08
notmynameGET on the object fails part-way through. HEAD works: https://gist.github.com/notmyname/ecfd64acf4fc3ca2f4d517:08
notmynameanticw: and you may be interested in looking at this patch: https://review.openstack.org/#/c/80383/ (/cc torgomatic)17:09
anticwnotmyname: if you use the swift cli and upload something --use-slo then delete the segments ... can you delete the manifest?17:10
notmynameanticw: via curl or the CLI?17:10
anticweither17:10
*** yuanz has quit IRC17:11
notmynamejohn@europa:~$ curl -H "X-Auth-Token: AUTH_tk0262b8e8389149958c968d10d0ccf980" http://saio:8080/v1/AUTH_test/c/100MB -XDELETE17:11
notmynamejohn@europa:~$ echo $?17:11
notmyname017:11
notmyname(forgot to add -i. let me redo17:11
anticw-v is useful to know what's going on17:11
anticw(a bit too much sometimes with curl)17:12
*** yuan has joined #openstack-swift17:12
notmynameya. that's why I like -i. (when I don't care what is send and just want to see the response headers17:12
notmynameanticw: here's my entire flow: https://gist.github.com/notmyname/00ebf5fdc65b949d3a5617:15
anticwthanks17:15
notmynameseems to do everything I'd expect17:16
anticwok, 500 on a bad SLO seems fair ... DELETE does work but not with -I which implied HEAD17:16
anticwpebkac :)17:16
*** keving1 has joined #openstack-swift17:21
*** Guest89169 has quit IRC17:22
*** jamieh has joined #openstack-swift17:22
*** jamieh is now known as Guest4586317:23
*** annegentle has quit IRC17:31
*** annegentle has joined #openstack-swift17:32
openstackgerritSamuel Merritt proposed a change to openstack/python-swiftclient: Copy Swift's .mailmap to swiftclient repo  https://review.openstack.org/8102717:34
notmynametorgomatic: ah, thanks17:34
torgomaticnotmyname: np17:34
*** mmcardle has quit IRC17:41
*** nacim has quit IRC17:54
*** fbo is now known as fbo_away17:59
pelusetorgomatic:  So I've updated the 409 patch based on clayg's input when you get a chance feel free to take a look.  As we're getting down to the wire here is there something else I can help with on the reconciliator?18:01
pelusethatks for approving ssync patch BTW :)18:01
*** tburnes has quit IRC18:06
torgomaticpeluse: nothing comes to mind; I think the whole thing is just about all on that branch18:11
torgomatictoday I'm working on rephrasing the feature/ec branch in a few, logically-coherent pieces for proposal to master18:12
openstackgerritgro qez proposed a change to openstack/python-swiftclient: Decode HTTP responses, fixes bug #1282861  https://review.openstack.org/7804318:16
pelusetorgomatic: OK, cool. You have several patches outstanding for the EC branch.  Are they all intended to go in or are some in need of being abandoned (sorry, lost track).  Also on 'Fix changing of storage policy index' you show and outdated dependency.18:16
torgomaticpeluse: interesting; I'll have to go look at that one18:17
bsdkurtI've started to use the feature/ec branch with a storage policy. How do you set the storage policy for a container?18:17
torgomaticI think they're all supposed to go in, at least for this version of the reconciler18:17
pelusetorgomatic:  that might be due to my rebasing off of another in your chain where it rebased yours w/no changes for some reason... dropped you a note over the weekend about that18:17
notmynamepeluse: my plan today is to talk with torgomatic and clayg and have a plan around getting stuff onto master.18:17
pelusenotmyname:  cool,please include me if possible18:17
notmynameabsolutely18:18
pelusebsdkurt:  to associate a policy with a container, create the container with the policy tag.  No docs yet, one sec I'll paste it in18:18
bsdkurtpeluse: thanks18:18
pelusebsdkurt:  Here's a curl sample of createing a container for a policy called "one" that would be defined in swift.conf and already have a ring created called object-1.ring.gz.  curl -v -X PUT -H 'X-Auth-Token: AUTH_tkd1c41f44366945d8a1cb9998e2297039' -H "X-Storage-Policy: one" http://127.0.0.1:8080/v1/AUTH_test/myCont118:19
bsdkurtpeluse: got it. thanks again18:19
pelusebsdkurt:  and then all object operations are done as usual....18:19
bsdkurtnotmyname: I spoke with you at the NYC workshop about cluster performance. eventually I tracked down what the issue was....18:21
notmynamebsdkurt: ah, cool. what'd you find?18:22
bsdkurtnotmyname: I was testing random access using O_DIRECT and getting ~100MB/sec with 256K buffers, but swift was getting ~22MB/sec.18:23
bsdkurtnotmyname: so I have a patch to make swift us O_DIRECT for reading and writing18:23
bsdkurtnotmyname: and can see ~5x improvement in reading18:23
bsdkurtnotmyname: is this something people would be interested in seeing upstream?18:24
notmynamebsdkurt: I think you'd get people interested in looking at a patch :-)18:25
notmynamebut I don't know enough about O_DIRECT to know why it's good or bad (or when it's good and bad)18:26
bsdkurtnotmyname: ok, I'll figure out how to submit it18:26
notmynamebut others are much smarter than me and would comment, i'm sure :-)18:26
bsdkurtnotmyname: :-) It seems like a good fit as swift invalidates the buffer cache after reading anyway.18:28
*** Guest45863 has quit IRC18:28
bsdkurtis there a development page describing where and how to submit patches?18:30
notmynamebsdkurt: ya. let me find a link18:31
notmynamebsdkurt: actually, it's in the CONTRIBUTING doc in the source tree: https://github.com/openstack/swift/blob/master/CONTRIBUTING.md18:31
bsdkurtnotmyname: thanks18:32
notmynamebsdkurt: basically, you gotta submit it to openstack's gerrit system, and that requires you to sing a CLA18:32
notmynameand sign it too18:32
bsdkurt:-)18:32
bsdkurtlalalala18:32
*** tanee is now known as tanee-away18:33
claygnotmyname: torgomatic: my bad he said it "is totally braindamaged" - I mis-quoted -> https://lkml.org/lkml/2007/1/10/23318:34
clayg... again that's wrt to O_DIRECT to a filesystem, not a block device.18:35
claygbsdkurt: I'm curious how you approached buffer alignment?18:35
bsdkurtmmap18:35
claygawesome18:36
bsdkurtclayg: I'm also familiar with that quote, however it *does* make a huge difference.18:36
bsdkurtclayg: I'm getting setup to submit it, however if you want I can email the diff to you for a preview18:37
claygno... i can wait :)18:39
*** changbl has quit IRC18:39
notmynamea .mailmap change busted pypy? I'll blame Alex_Gaynor for this one ;-)18:51
notmynamehttps://review.openstack.org/#/c/81027/18:51
*** tburnes has joined #openstack-swift18:51
clayg"sudo: unable to resolve host py3k-precise-1394676888" ?18:56
claygpeluse: what do you think about doing the .pending_file in a @property?19:16
peluseclayg:  what would be the advantage?19:19
*** Trixboxer has quit IRC19:23
*** changbl has joined #openstack-swift19:29
*** jasondotstar has quit IRC19:30
*** zaitcev has joined #openstack-swift19:33
*** ChanServ sets mode: +v zaitcev19:33
luisbgclayg, reading Linus is always fun19:35
claygpeluse: I might be wrong, it may not be better to have it as a property19:35
luisbgclayg, on his defense he sometimes gets persistent people trying to push wrong things repeatedly and the only way for him to stop it is getting aggressive19:35
claygluisbg: I don't really follow him that closely, but I've looked at "the right" way to do O_DIRECT on a filesystem enough times that I'm basically concinced there is no good way to do it (on purpose).19:37
luisbgclayg, hahaha that is true19:38
*** jasondotstar has joined #openstack-swift19:45
*** piyush1 has joined #openstack-swift19:51
*** changbl has quit IRC20:00
weris there an easy way to prevent a non empty container from being deleted?20:01
werat least the swift python client will gladly delete them without the --all flag :/20:02
Alex_Gaynornotmyname: seems legit ;-P20:04
luisbgwer, you could write your own python middleware to add that feature20:11
luisbgwouldn't be too complicated20:11
werluisbg: yeah :/  I think I need to luisbg.  It scares me :)20:12
luisbgwer, only fear fear itself, this channel is full of people willing to help you achieve this20:12
luisbg:)20:12
claygluisbg: I'm not sure you can work around the way swiftclient does it - it just does the container listing and deletes all the objects20:12
luisbgclayg, I meant, copying the code from python-swiftclient and writing something that does what he needs20:13
luisbgon top20:13
claygoh.. so not middleware, just a different client with a different commandline interface - yeah seems legit20:13
*** jasondotstar has quit IRC20:14
luisbgclayg, sorry yes, wrong terminology20:14
claygyou may even be able to patch the commandline client to look at a "SAFE" or -i var or something20:14
luisbgclayg, I sometimes consider python-swiftclient the example middleware20:14
luisbgclayg, +120:14
claygsome people have asked to have the delete account symantics of the swiftclient cli be more agressive - so... like the oppisite problem20:15
werheh, they have the --all flag :/  Just seems like lies.20:15
luisbgwer, becuase it is wrongly documented? or it just does something wrong?20:16
claygwer: I think it may be too late to change the default behavior - but there's probably been enough confusion around the point that having either behavior configurable via environ would cirtainly be a good start20:16
luisbgs/becuase/because20:16
luisbgclayg, if you want you can open a bug in launchpad and assign it to me :)20:16
claygit's not a problem for me - i'm used to and expect and script against the default behavior20:17
werthe way I read it the --all flag would be needed to delete everything in an account or container.  But I definitely delete a non empty container without the --all flag.20:18
luisbgok20:18
werdid that answer questions?20:18
luisbgunrelated question, when new imports are added in a python project. do these have to be listed anywhere for pypi?20:18
claygluisbg: sort of?  I think we managed to get netifaces grandfathered in20:19
luisbgclayg, I see. thanks20:19
claygluisbg: there's a openstack-requirements project that keeps tabs on everthing20:20
luisbgclayg, cool20:20
claygI think --all's help not saying "(only effects delete for accounts)" or something like that might be a doc bug - I can see how it could be confusing.20:22
notmynamewer: clayg: the "--all" parameter is supposed to be the "yes I mean it do it anyway and do it all right now" flag20:22
notmynameclayg: well the bug there is "affects" ;-)20:22
claygnotmyname: yeah but it's not required for delete container - the tool assumes you meant what you said20:23
werheh, so I'm not worried about the actual swift client... but if a web request could delete a container that would be bad.20:23
notmynamewer: it can't20:23
notmynamewer: swift will respond with a 409 to a DELETE to a non-empty container20:24
werI thought that would be the case.... cause the client is doing things.20:24
werossm.20:24
*** keving1 has quit IRC20:25
* clayg tried to google ossm but it was still a miss20:25
werha!  awesome.  sorry clayg :)20:25
notmynamehttp://www.urbandictionary.com/define.php?term=ossm20:26
werlol.  I guess I let my local dialect spew into this channel :)  But yeah ossm = awesome :)20:27
claygheh20:27
*** tdasilva has left #openstack-swift20:29
werso I've written two middlewares.... The first fixes some incoming req.path_nifo's... so I put it before tempauth.  The second is before the proxy-server... but somehow I manage to get the return value of the proxy-server and suggest a 302.  And I basically have no idea how I did this.  wsgi hurts me.20:30
torgomaticoh, it's not just you ;)20:31
werlol20:31
claygi'm slowly becoming immune to the pain20:31
* clayg feels nothing20:31
wermy hope is that I have not ruined the pipeline with inefficient code :/  I am about to do the "b" in a/b testing.... but.... secretly I just have a lot of hope :)20:32
werand the thing I could not do... would have been so much cooler.  I really wanted to populate swift with the missing thing instead of 302'ing.  But  failed.20:33
werI thought I could return a fetched response from somewhere else to the client.... and then also spawn off another to populate swift with the missing asset.  But I gave up.20:34
torgomaticwer: that's possible, but certainly tricky... probably you'd want a 3 greenthreads: one fetcher, one return-to-client-...er, and one swift-populater20:38
wertorgomatic: I was unable to pull it off :(20:40
torgomaticwer: yeah, the combination of concurrency, WSGI, and Swift idiosyncracies is not especially welcoming :|20:45
notmynamewer: it sounds like you might be interested in reading https://review.openstack.org/#/c/64430/20:46
portantebsdkurt: currently swift uses the linux buffer cache as a poor-man's asyncio engine20:49
portanteusing fsync and fadvise64 to get the memory footprint needed (writes are not cached, only reads are cached, writes are always forced to disk before close())20:50
portantebsdkurt: does your code with O_DIRECT still allow for the cached reads behavior?20:51
* portante might be too late to the party here ...20:51
bsdkurtportante: no O_DIRECT skips the buffer cache for reading and writing. However, for large objects it gets much better random IO throughput.20:52
portanterandom IO throughput?20:53
bsdkurtI'm rerunning the tests again before I submit to gerrit for reivew... should be a few more minutes20:53
portanteokay20:53
portanteare you testing ranged reads or something?20:54
portanteand what is your test environment?20:54
bsdkurtportante: yes. on my sata drives random IO (1000 open files all reading sequentially) gets ~22MB/sec throughput, but with O_DIRECT gets ~100MB/sec throughput20:54
portantebsdkurt, thanks, no rush to answer20:54
portantewhat disk elevator are you using?20:54
portantecfq?20:54
bsdkurtis cfq default? I didn't change that value20:55
portanteis that iozone random IO testing?20:55
portanteor from swift random IO?20:55
portanteI think cfq is the default for SATA drives.20:55
bsdkurtstandalone testing with a custom program I have for work, but iostat watching swift gets similar results as well20:56
portantehave you measured swift response times improving for large files?20:56
bsdkurtI have a 5 storage node cluster with 5 2TB drives in each node, all 10GB networking20:56
bsdkurtI have been measuring throughput using iostat on bond0 (client facing) and bond1 (storage facing)20:57
bsdkurtproxy has 4 bonded 10 gigabit nics for bond0 and the same for bond120:59
portanteI think you have to confirm with measuring a swift workload20:59
portanteso each storage node also have 4 bonded 10ge nics?20:59
bsdkurteach storage node has 1 10gig nic20:59
portantewhich way is the 4 bonded 10ge nic facing? storage or client?21:00
portanteah, sorry I see it21:00
bsdkurtboth.. yes :-)21:00
portanteso the proxy only talks to the storage nodes via bond1 interface?21:01
portanteand do you have arp_filter enabled?21:01
bsdkurtcorrect21:01
bsdkurtno21:01
bsdkurtnot sure what that is21:01
portanteoh, you might want to do that so that linux does try to "ensure a packet gets to a host any which way it can"21:01
portantemeaning, it might send packets over bond1 to get to a client if the route allows it21:02
bsdkurtok. I'll research it21:02
portanteand vice versa21:02
portantewe had an issue where our lab network was getting flooded by backend traffic, so we have been setting arp_filter to help prevent that from happening21:03
bsdkurtah, the storage is on its own subnet with a dedicated 10GB switch21:03
notmynamewer: I just saw someone in a different IRC channel say "ossum"21:03
notmyname(queue http://www.damninteresting.com/the-baader-meinhof-phenomenon/)21:03
portantehmm, if that nodes routes, it might use it, just be careful21:04
werthey are ossm.21:04
bsdkurtportante: okay. I'll check it out. thanks21:04
portantealso, you might want to consider playing around with the io elevators to see if they make a difference here21:05
portantebsdkurt21:05
*** shri has joined #openstack-swift21:08
*** JuanManuelOlle has quit IRC21:15
*** dmsimard has quit IRC21:20
*** dmsimard has joined #openstack-swift21:20
*** dmsimard has quit IRC21:22
bsdkurtportante: sry, I was called away... I'll try the io elevators as well. thanks21:27
*** keving1 has joined #openstack-swift21:30
portantebsdkurt: thahnks21:30
wernotmyname: That data migrate thing is close. yeah I essentially tried to implement something like that.... but probably very poorly.  I would love to see ho something like that is implemented.  I think it would give me a lot of insight into how I should have done certain thing.  Even using container headers would have been better then what I did in proxy-server.conf :/21:35
openstackgerritgro qez proposed a change to openstack/python-swiftclient: Decode HTTP responses, fixes bug #1282861  https://review.openstack.org/7804321:36
*** changbl has joined #openstack-swift21:38
*** mlipchuk has joined #openstack-swift21:41
bsdkurtis there some cleanup needed between .unittests?21:44
notmynamebsdkurt: shouldn't be21:44
* notmyname runs `resetswift` about 30 times a day21:44
bsdkurthmm...21:45
bsdkurtat the end of .unittest I get the following error: http://paste.openstack.org/show/73698/ even if I remove my o_direct patch21:48
wernotmyname: there is good stuff in that code you sent.  good comments.  On a public bucket it seems you could expose amazone s3 keys :/21:58
werbut it's super close to what I need I think.21:58
*** piyush1 has quit IRC22:03
*** Dieterbe has joined #openstack-swift22:12
peluseclayg:  FYI have to run out for a while, have all your comments incorporated except one (the database broker initialize comment) that I need to look at a bit closer either tonight or 1st thing in the morn.  Thanks!22:17
claygpeluse: thank YOU!  no worries.22:18
*** keving1 has left #openstack-swift22:20
openstackgerritSamuel Merritt proposed a change to openstack/swift: Store policy index in container_stat table  https://review.openstack.org/7170422:21
*** fifieldt has joined #openstack-swift22:29
*** byeager has quit IRC22:36
*** byeager has joined #openstack-swift22:36
*** openstackgerrit has quit IRC22:39
*** openstackgerrit has joined #openstack-swift22:39
*** byeager has quit IRC22:41
openstackgerritSamuel Merritt proposed a change to openstack/swift: Fix changing of storage policy index  https://review.openstack.org/7253622:44
h6wMorning all!22:45
h6wVery interesting answer to: https://ask.openstack.org/en/question/25373/how-do-i-push-or-repush-a-swift-ring/22:45
h6wIt seems strange that something that is done automagically by the swift-ring-builder command can't redo it later (with perhaps, some additional flag).22:46
h6wSince Swift knows where the mounts are, doesn't it introduce a potential for human error to use a completely different command and find the correct mount points, etc, to sync again?22:48
torgomatich6w: you copy the rings from $adminbox to each server; that doesn't involve finding mount points or anything22:51
h6wtorgomatic: oic!  I thought it referred to the ring data, not the ring files in /etc/swift22:54
torgomatich6w: yeah, the .ring.gz files in /etc/swift22:55
torgomaticnot the .builder files22:55
*** bvandenh has quit IRC22:56
h6wDo I have to do that to all the nodes, or just the ones that have been modified?22:57
claygall the nodes22:59
*** mlipchuk has quit IRC23:03
claygwould it surprise anyone if I said that the proxy doesn't use the same x-timestamp for all backend requests on a container PUT?23:05
clayglike if your choices were 1) no that's dumb - your setup is broken 2) yeah sounds right, container replication is merge based so it's w/e or 3) hrmm.. i'm not sure, if that's true probably worth fixing23:06
clayg^ where would you fall?23:06
openstackgerritClay Gerrard proposed a change to openstack/swift: Fix race on container recreate  https://review.openstack.org/8110423:07
*** yuanz has joined #openstack-swift23:11
*** yuan has quit IRC23:11
openstackgerritClay Gerrard proposed a change to openstack/swift: Fix race on container recreate  https://review.openstack.org/8110423:13
openstackgerritKurt J Miller proposed a change to openstack/swift: O_DIRECT: Use O_DIRECT for reading and writing object data.  https://review.openstack.org/8111123:20

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