Thursday, 2019-06-27

openstackgerritTim Burke proposed openstack/swift master: Use get_container_info to check existence before container PUT  https://review.opendev.org/58033300:01
*** openstack has joined #openstack-swift13:13
*** ChanServ sets mode: +o openstack13:13
*** zaitcev has joined #openstack-swift13:27
*** ChanServ sets mode: +v zaitcev13:27
*** rcernin has quit IRC13:31
*** jistr is now known as jistr|call13:31
*** pcaruana has quit IRC13:46
*** pcaruana has joined #openstack-swift13:47
*** zaitcev has quit IRC14:06
openstackgerritClay Gerrard proposed openstack/swift master: clarify s3api ACL test HEADs  https://review.opendev.org/66793314:10
*** baojg has joined #openstack-swift14:14
*** zaitcev has joined #openstack-swift14:18
*** ChanServ sets mode: +v zaitcev14:18
*** zaitcev_ has joined #openstack-swift14:25
*** ChanServ sets mode: +v zaitcev_14:25
*** zaitcev has quit IRC14:29
*** jistr|call is now known as jistr14:31
*** baojg has quit IRC14:59
*** pcaruana has quit IRC15:14
zaitcev_Guys, we can run probe tests on a larger cluster than SAIO, right?15:14
*** zaitcev__ has joined #openstack-swift15:22
*** ChanServ sets mode: +v zaitcev__15:22
*** zaitcev__ is now known as zaitcev15:24
*** zaitcev_ has quit IRC15:26
*** m75abrams has quit IRC15:43
*** tdasilva has joined #openstack-swift15:50
*** ChanServ sets mode: +v tdasilva15:50
*** ccamacho has quit IRC15:55
*** e0ne has quit IRC16:02
* clayg any idea what this is about:16:04
clayghttps://github.com/openstack/swift/blob/master/swift/common/middleware/s3api/acl_handlers.py#L22016:04
claygzaitcev: "lager" - i mean as long as it has exactly 4 nodes with 1 drive on each 🤣16:05
claygkota_: I'm trying to make acl checking use cached sysmeta when possible and running into a weird problem where my "create_bucket" is returning "bucket already owned by you" instead of 200OK16:06
claygkota_: looking at the logs I can see the PUT request (which seems to work!) and then immediately I see a POST - it's burried down in some magic in the s3request.get_response - because the bucket controller method with the original PUT never returns?16:07
claygFWIW the bucket does get created, w/o acl's ... I just don't know why I'm hitting this automatic POST request 😞16:08
*** zaitcev_ has joined #openstack-swift16:11
*** ChanServ sets mode: +v zaitcev_16:11
*** zaitcev has quit IRC16:15
timburkeclayg, on the s3 acls: there's a PUT (which could fail with BucketAlreadyExists or BucketAlreadyOwnedByYou) followed by a POST that adds the acls. i think the concern there was that if the POST fails without talking to *any* backend servers, you'd get the create but no acls at all16:16
timburkeso, exactly the problem you're running into ;-)16:17
timburkeclayg, also, you can have two drives on each of the four nodes! otherwise we can't EC :P16:18
*** zaitcev__ has joined #openstack-swift16:26
*** ChanServ sets mode: +v zaitcev__16:26
*** zaitcev_ has quit IRC16:30
*** mikecmpbll has quit IRC16:35
*** zaitcev__ has quit IRC16:40
*** gkadam has quit IRC16:51
*** zaitcev__ has joined #openstack-swift16:52
*** ChanServ sets mode: +v zaitcev__16:52
clayg@timburke can you explain the extra PUT/POST request to me again?  I'm trying to debug create bucket and I'm seeing a whole extra PUT/POST before MY PUT is even executed https://github.com/openstack/swift/blob/master/swift/common/middleware/s3api/controllers/bucket.py#L288 (and when it does it unsurprisingly sees a 202 and translates it to 409)17:10
claygi guess I'll start backing out my changes and try to figre out how this EVER worked?17:11
timburkehmm... weird...17:12
timburkeso *i think* the idea is that we don't want to overwrite any existing acls, so we do the PUT *first* and expect that it may fail because the bucket already exists (owned by us or someone else), then we do the POST iff we got a 20117:14
timburkeidk why there's be two PUTs tho17:14
* clayg might be related to this, i'm not sure what's going on here:17:16
clayghttps://github.com/openstack/swift/blob/master/swift/common/middleware/s3api/s3request.py#L155417:16
claygwell, we're definately doing the PUT first - and it doesn't fail - it creates the container!  then it does it POST - then when it does the original PUT to create the bucket it returns 40917:17
claygok, that early return is definately related - i had pulled it out because I didn't want that interface to return a resp since it didn't always have to make a request anymore...17:23
claygbut apparently in this PUT/POST case it was returning that resp w/o making the original ... or something17:24
clayganyway, unsurprisingly I broke it - i just don't understand that rationalization of what the existing code thought it was doing...17:24
claygok, i see what I did - i really just want to change the interface of _handle_acl - i can fix handle_acl17:38
*** tdasilva has quit IRC17:53
*** pcaruana has joined #openstack-swift17:54
openstackgerritTim Burke proposed openstack/swift feature/losf: Merge remote-tracking branch 'gerrit/master' into review/tim_burke/py3  https://review.opendev.org/66800717:55
*** mvkr has quit IRC18:03
*** rdejoux has quit IRC18:09
openstackgerritTim Burke proposed openstack/swift master: Give ECAppIter greenthreads a chance to wrap up  https://review.opendev.org/66577318:20
*** zaitcev__ is now known as zaitcev18:39
*** zaitcev has quit IRC19:10
*** zaitcev has joined #openstack-swift19:23
*** ChanServ sets mode: +v zaitcev19:23
openstackgerritTim Burke proposed openstack/swift master: s3api: Put more information in the str() for InternalError  https://review.opendev.org/66803119:32
*** pcaruana has quit IRC21:05
*** tesseract has quit IRC21:19
*** rcernin has joined #openstack-swift21:24
*** zaitcev has quit IRC21:30
*** zaitcev has joined #openstack-swift21:42
*** ChanServ sets mode: +v zaitcev21:42
*** zaitcev_ has joined #openstack-swift21:46
*** ChanServ sets mode: +v zaitcev_21:46
*** zaitcev has quit IRC21:47
*** mvkr has joined #openstack-swift22:01
openstackgerritTim Burke proposed openstack/swift master: WIP: Give operators the option of serving container HEADs from memcache  https://review.opendev.org/66806422:10
timburke^^^ has some interesting improvements for s3api, which *needs* to issue HEADs and the like to give the auth system a chance to translate from access_key_id to account22:11
timburkedownsides include things like func tests not passing because the versioned_writes tests rely on up-to-date object-counts in HEADs22:13
*** zaitcev__ has joined #openstack-swift22:29
*** ChanServ sets mode: +v zaitcev__22:29
*** zaitcev_ has quit IRC22:33
*** zaitcev__ is now known as zaitcev22:38
*** zaitcev has quit IRC23:18
*** zaitcev has joined #openstack-swift23:18
*** ChanServ sets mode: +v zaitcev23:18
mattoliveraumorning23:19
*** joeljwright has quit IRC23:20
*** joeljwright has joined #openstack-swift23:26
*** ChanServ sets mode: +v joeljwright23:26
*** tonyb has quit IRC23:32
*** tonyb has joined #openstack-swift23:32
openstackgerritTim Burke proposed openstack/swift master: WIP: Give operators the option of serving container HEADs from memcache  https://review.opendev.org/66806423:42
timburkemattoliverau, o/23:44
openstackgerritTim Burke proposed openstack/python-swiftclient master: Isolate docs requirements  https://review.opendev.org/66747723:48

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