Friday, 2014-09-19

*** tkay has quit IRC00:03
*** kyles_ne has quit IRC00:03
*** tkay has joined #openstack-swift00:04
openstackgerritSamuel Merritt proposed a change to openstack/swift: Test for unicode names in AccountBroker.merge_items()  https://review.openstack.org/12257000:07
torgomaticredbo: AccountBroker seems to not have the bug, but I wrote a test anyway ^^00:07
*** vu has joined #openstack-swift00:18
notmynameif you `pip install matplotlib` do you get unittest errors with xprofile middleware?00:28
*** dmorita has joined #openstack-swift00:32
*** occupant has quit IRC00:37
*** tkay has quit IRC00:44
*** mkollaro has quit IRC00:52
*** tdasilva has joined #openstack-swift00:53
*** insane has joined #openstack-swift00:57
zaitcevGuys... The python-swiftclient 2.3.0 is considered to be a part of Juno release, right?00:58
zaitcevIt's like "Juno RC1" or something?00:58
insanechecking01:04
*** tgohad has quit IRC01:16
*** tsg has joined #openstack-swift01:20
*** mwstorer has quit IRC01:22
redbotorgomatic: ok, cool.01:25
*** bill_az has quit IRC01:27
*** tgohad has joined #openstack-swift01:39
*** tsg has quit IRC01:42
notmynamezaitcev: yeah, I guess01:48
zaitcevnotmyname: thanks01:48
notmynameSE NOW01:48
zaitcevWhat... was that?01:49
notmynameall of the client projects have a rolling release cycle, but there was that mailing list post that said RELEASE NOW01:49
notmyname(fat fingered it)01:49
zaitcevoh god01:49
zaitcevI thought there was a nuke going of to the south-east01:49
notmynameanyway, it's supposed to be because of integration periods01:49
notmynameheh01:50
zaitcevokay01:50
zaitcevWell, it looks that Christian liked the patch that I mentioned during the IRC meeting yesterday, even though I was not sure myself that I considered all permutations.01:51
zaitcevBut it was late for 2.3.0 anyway so its' good01:51
zaitcevIT'S01:51
notmyname:-)01:51
*** tgohad has quit IRC01:56
*** stevemar has joined #openstack-swift02:02
*** sandywalsh has quit IRC02:02
stevemarhello swift folks, looking for some info on how the tests are setup in swift... whats the deal with function/probe?02:03
notmynamezaitcev: since there's still several weeks before the juno release, I may look in to a 2.3.1 swiftclient release. and that would include your patch02:03
stevemardo the functional tests only run for the gate job: gate-swift-tox-func ?02:04
zaitcevnotmyname: that would be great, I hope I didn't screw up in it02:04
notmynamestevemar: unit->tests small sections of code. functional->black box testing of API functionality. probe->white box testing like integration tests for the specific swift components (eg write data, kill a replica, make sure replication fixes it)02:04
notmynamestevemar: gate-swift-tox-func is just the functional tests02:05
notmynamestevemar: there is nothing in the CI infrastructure that does probe tests today02:05
stevemarnotmyname, cool, and gate-swift-tox-func sets up devstack (i assume)?02:05
notmynamestevemar: I think so. I don't know what all services it sets up, but it only runs agains swift (with a keystone token)02:06
stevemarhmm, maybe not, not seeing it in the logs02:06
notmynamestevemar: that is, I know it definitely runs in devstack, but I don't know what else is started in devstack in that gate job02:06
stevemarthe logs could might not be saved for the test run02:06
stevemarnotmyname, probably just the minimal amount02:07
stevemarnotmyname, looking @ http://logs.openstack.org/25/122225/3/check/gate-swift-tox-func/9e7503c/ might want to see the devstack jobs too, then :)02:07
stevemarOK cool02:07
notmynameand as it is such, so also as such is it unto you02:07
notmyname(my reply to "the logs could might not be saved..."02:08
stevemarahh02:08
stevemari think this is what monty was talking about in his blog post02:08
notmynamethe swift functional tests? yes02:08
stevemarnotmyname, since he does call out swift in that section :P02:08
*** tsg has joined #openstack-swift02:08
stevemarnotmyname, i was thinking the clients would definitely benefit from this, since i doubt most of them are run against anything live02:09
stevemarnotmyname, how do you run the tests locally? any config needed? just setup devstack and run tox -e func ?02:10
notmynamestevemar: swift devs use a swift-all-in-one normally. and you can either run `tox -e func` or `./.functests`02:11
notmynamebut the functional tests actually can run against any swift endpoint. eg I can run the functests agains rackspace cloud files02:11
notmyname(if you want an easy way to set up a swift all in one (SAIO) look at https://github.com/swiftstack/vagrant-swift-all-in-one)02:11
notmynamethat automates the instructions in the swift dev docs (swift.openstack.org)02:12
notmynamestevemar: anything else I can answer? I gotta head home from the office02:12
stevemarnotmyname, go home!02:13
notmyname:-)02:13
stevemarnotmyname, thanks for the info :)02:13
notmynameany time :-)02:14
* notmyname signs off for the night02:14
stevemarhave fun02:14
*** tsg has quit IRC02:25
*** mahatic has quit IRC02:37
openstackgerritA change was merged to openstack/swift: container.merge_items bug  https://review.openstack.org/12250302:42
*** gyee has quit IRC03:25
*** haomai___ has quit IRC03:41
*** haomaiwang has joined #openstack-swift03:42
*** Kbee has joined #openstack-swift03:48
*** haomaiw__ has joined #openstack-swift03:58
*** haomaiwang has quit IRC04:02
*** acoles has quit IRC04:11
openstackgerritKeshava Bharadwaj proposed a change to openstack/swift: Provides proper error handling on builder unpickle  https://review.openstack.org/12222504:15
*** elambert has joined #openstack-swift04:16
openstackgerritRafael Rivero proposed a change to openstack/swift: Fixes several typos (Swift)  https://review.openstack.org/12260204:18
*** haomaiw__ has quit IRC04:20
*** haomaiwang has joined #openstack-swift04:21
KbeeHello, How to do a recheck on a failed cluster-rox-func job  ?04:26
Kbee                                                                                         ^tox04:27
*** haomaiw__ has joined #openstack-swift04:30
*** haomaiwang has quit IRC04:33
Kbeenotmyname: torgomatic: is there anyway to do recheck on failed cluster-tox-func job ? some node failed during execution..->  One or more hosts failed while executing task 'deploy_swift'04:54
*** zaitcev has quit IRC05:29
*** Kbee has quit IRC05:52
*** rmcall has joined #openstack-swift05:57
*** Kbee has joined #openstack-swift05:58
*** Kbee has quit IRC06:04
*** tkay has joined #openstack-swift06:09
*** tsg has joined #openstack-swift06:16
openstackgerritA change was merged to openstack/swift: Merge master to feature/ec  https://review.openstack.org/12254106:18
*** tkay has quit IRC06:21
*** tsg has quit IRC06:25
*** k4n0 has joined #openstack-swift06:29
*** tsg has joined #openstack-swift06:34
*** Kbee has joined #openstack-swift06:41
*** Dafna has quit IRC06:43
openstackgerritOpenStack Proposal Bot proposed a change to openstack/swift: Imported Translations from Transifex  https://review.openstack.org/12232706:44
*** nshaikh has joined #openstack-swift06:52
*** stevemar has quit IRC06:59
*** ppai has joined #openstack-swift07:00
Kbeenotmyname: Some tempest tests are failing randomly.. None related to code change... How do handle them ?07:01
Kbeenotmyname: already performed bug rechecks twice.07:01
*** mkollaro has joined #openstack-swift07:05
*** haomaiw__ has quit IRC07:26
*** haomaiwang has joined #openstack-swift07:27
*** tsg has quit IRC07:30
*** rmcall has quit IRC07:34
*** cschwede has joined #openstack-swift07:36
*** haomaiwang has quit IRC07:44
*** haomaiwang has joined #openstack-swift07:52
*** elambert has quit IRC08:05
*** jamiehannaford has joined #openstack-swift08:07
*** Dafna has joined #openstack-swift08:10
*** mkollaro has quit IRC08:19
*** Kbee has quit IRC08:32
*** Kbee has joined #openstack-swift08:40
openstackgerritOpenStack Proposal Bot proposed a change to openstack/python-swiftclient: Updated from global requirements  https://review.openstack.org/8925008:51
openstackgerritOpenStack Proposal Bot proposed a change to openstack/swift: Updated from global requirements  https://review.openstack.org/8873608:52
*** geaaru has joined #openstack-swift08:53
*** Kbee has quit IRC09:06
*** kbee has joined #openstack-swift09:07
*** kbee has quit IRC09:22
*** kbee has joined #openstack-swift09:23
*** haomaiwang has quit IRC09:46
*** haomaiwang has joined #openstack-swift09:47
*** acoles_ has joined #openstack-swift09:47
*** ChanServ sets mode: +v acoles_09:47
openstackgerritLorcan Browne proposed a change to openstack/swift: Add "--no-overlap" option to swift-dispersion populate  https://review.openstack.org/11841109:50
*** haomai___ has joined #openstack-swift09:51
*** aix has joined #openstack-swift09:54
*** haomaiwang has quit IRC09:54
*** cschwede has quit IRC10:19
*** haomai___ has quit IRC10:25
*** kbee has quit IRC11:05
*** cschwede has joined #openstack-swift11:10
*** dmorita has quit IRC11:29
*** smart_developer has left #openstack-swift11:44
*** smart_developer has joined #openstack-swift11:44
smart_developerHas there ever been issues with one or more of Swift's logs growing at a rapid rate?11:46
smart_developerPossibly 100 or more GB within an hour.11:47
*** hhuang has quit IRC11:51
*** insane has quit IRC12:14
*** nshaikh has quit IRC12:22
openstackgerritpaul luse proposed a change to openstack/swift: Early framework for the EC Reconstructor  https://review.openstack.org/10691012:22
viklundis there anyway of having more finegrained ACLs, IE a read-write acl that can't create containers12:23
viklundor a list-write ACL that can list files, upload new files but can't download files.12:23
*** tdasilva has quit IRC12:26
*** mkollaro has joined #openstack-swift12:29
*** jamiehannaford has quit IRC12:32
acoles_viklund: it is possible to set per-container ACLs: http://docs.openstack.org/developer/swift/overview_auth.html12:33
acoles_viklund: the container ACLs do not support 'list-only'12:35
openstackgerritLorcan Browne proposed a change to openstack/swift: Add new features to swift-drive-audit  https://review.openstack.org/12246812:36
viklundacoles_: yes, I've understood that, would it be difficult to add that?12:37
viklundspecifically, to write some auth-middleware with that12:37
*** acoles has joined #openstack-swift12:38
*** ChanServ sets mode: +v acoles12:38
viklund(currently I'm just hiding or showing the download button in the horizon interface, but it would be nice to have that check in swift)12:38
*** jamiehannaford has joined #openstack-swift12:42
acoles_viklund: in principle i guess it can be done, not sure if it would be just middleware or require support in core.12:46
viklundok, maybe I'll just limit it in horizon then and write a small rest-client for bulk-uploads that uses horizon12:47
*** tdasilva has joined #openstack-swift12:48
viklundThanks!12:50
acoles_viklund: if you have a use case for list-only then maybe create a swift bug report requesting that feature12:53
viklundI don't know how common this would be12:53
viklundWe are building a system for managing sensitive research data (specifically human genomes)12:54
viklundand want to limit what is possible to take out of the system12:54
viklundbut it would be nice if people could see what is uploaded12:54
viklunduploading data to the object-store (via some secure proxy) would be a simple way for a lab to get data in.12:58
acolesviklund: so presumably the object names alone convey useful info when listed? or do you need to let people see object metadata (but not allow content download)?13:02
*** acoles_ has quit IRC13:02
acolesviklund: just wondering if you want 'list-only' or 'head-only' (which is also not supported !)13:04
*** cdelatte has joined #openstack-swift13:04
viklundacoles: that would not matter that much actually13:11
viklundlist-only is probably enough, but seeing size of objects would be useful13:12
acolesviklund: swift container listing can include object size (and timestamp, content type, hash) but i have no idea if horizon supports that13:14
*** ppai has quit IRC13:23
*** peluse_ is now known as peluse13:30
*** ChanServ sets mode: +v peluse13:31
*** tsg has joined #openstack-swift13:39
*** k4n0 has quit IRC13:40
*** BAKfr has joined #openstack-swift13:40
*** cca has joined #openstack-swift13:42
*** rmcall has joined #openstack-swift13:43
*** cca has left #openstack-swift13:44
*** cca has joined #openstack-swift13:45
*** cca has quit IRC13:45
*** dmsimard_away is now known as dmsimard13:45
*** cca88 has joined #openstack-swift13:45
*** rmcall_ has joined #openstack-swift13:48
*** annegent_ has joined #openstack-swift13:48
*** rmcall has quit IRC13:49
*** rmcall_ is now known as rmcall13:49
*** mrsnivvel has quit IRC13:49
*** mahatic has joined #openstack-swift13:49
*** tsg has quit IRC13:55
*** elambert has joined #openstack-swift14:00
*** viklund_ has joined #openstack-swift14:00
*** openstackgerrit has quit IRC14:02
*** miqui_ has joined #openstack-swift14:03
*** stevemar has joined #openstack-swift14:04
*** miqui_ has quit IRC14:09
*** miqui_ has joined #openstack-swift14:09
*** tdasilva has quit IRC14:10
*** aix has quit IRC14:10
*** miqui has quit IRC14:10
*** viklund has quit IRC14:10
*** miqui_ is now known as miqui14:10
*** marcusvrn has quit IRC14:11
*** foexle has joined #openstack-swift14:11
*** aix has joined #openstack-swift14:15
*** tdasilva has joined #openstack-swift14:16
*** pberis1 has quit IRC14:43
*** cschwede has quit IRC14:44
*** AbyssOne has joined #openstack-swift14:47
*** zhiyan has quit IRC14:48
*** JelleB has quit IRC14:48
*** elambert has quit IRC14:48
*** serverascode has quit IRC14:48
*** bsdkurt has quit IRC14:49
*** serverascode has joined #openstack-swift14:49
*** zhiyan has joined #openstack-swift14:49
*** bsdkurt has joined #openstack-swift14:50
*** elambert has joined #openstack-swift14:51
*** mwstorer has joined #openstack-swift14:52
*** tongli has joined #openstack-swift14:56
*** pberis has joined #openstack-swift15:00
notmynamegood morning15:00
*** sandywalsh_ has joined #openstack-swift15:02
*** elambert has quit IRC15:03
*** astellwag has quit IRC15:03
*** annegent_ has quit IRC15:05
notmynamehttps://bugs.launchpad.net/python-swiftclient/+bug/1371650 is annoying if you are have access to containers in more than one account15:10
*** dencaval has quit IRC15:13
*** openstackgerrit has joined #openstack-swift15:15
goodesperhaps you need a --no-auth-check15:22
*** IRTermite has quit IRC15:23
notmynamegoodes: as a new option? why should the end-user care or have to worry about that? eg it works just fine when using the API. I think the mishandling of the 403 is the bug (if not the whole HEAD request)15:24
openstackgerritChristian Cachin proposed a change to openstack/swift: Updated version of swift-enc-proxy.  https://review.openstack.org/12277315:25
acolesnotmyname: are you using it with --os-auth-token? trying to reproduce...15:28
*** dencaval has joined #openstack-swift15:28
notmynameacoles: no.15:29
notmynameacoles: here's the full story (and the original report) https://ask.openstack.org/en/question/47668/help-with-write-permission-in-swift/15:29
*** btorch_ has joined #openstack-swift15:30
*** glange_ has joined #openstack-swift15:30
*** ChanServ sets mode: +v glange_15:30
*** clayg_ has joined #openstack-swift15:30
*** mordred_ has joined #openstack-swift15:31
*** a1|away_ has joined #openstack-swift15:31
*** clds_ has joined #openstack-swift15:31
*** clayg has quit IRC15:31
*** mordred has quit IRC15:31
*** glange has quit IRC15:31
*** clds has quit IRC15:31
*** btorch has quit IRC15:31
*** otherjon has quit IRC15:31
*** jeblair has quit IRC15:31
*** ByteSore has quit IRC15:31
*** mandarine has quit IRC15:31
*** a1|away has quit IRC15:31
*** redbo has quit IRC15:31
*** d0ugal has quit IRC15:31
*** tristanC has quit IRC15:31
*** MooingLemur has quit IRC15:31
*** hhuang has joined #openstack-swift15:31
*** mordred_ is now known as mordred15:31
*** MooingLe1ur has joined #openstack-swift15:31
*** ByteSore has joined #openstack-swift15:32
*** jeblair has joined #openstack-swift15:32
*** alpha_ori has quit IRC15:32
*** tanee has quit IRC15:32
acolesnotmyname: isn't that the intention? that --os-storage-url is to be used in conjunction with --os-auth-token? not that i was around when it was conceived but thats how i understood it15:32
*** mandarine has joined #openstack-swift15:32
*** redbo has joined #openstack-swift15:32
*** ChanServ sets mode: +v redbo15:32
acolesand its kindof implied by the usage15:32
notmynameacoles: maybe. it's entirely possible that I don't know the right way to use the --os-* options15:33
*** tristanC has joined #openstack-swift15:33
acolesnotmyname: me too :)15:33
notmynameso you're saying (1) get a token and write it down with user A, then (2) send that token using the URL for user B?15:33
*** otherjon has joined #openstack-swift15:33
notmynamenot sure how that's different that what I did, so I'm sure I'm missing something15:34
*** tanee has joined #openstack-swift15:34
*** alpha_ori has joined #openstack-swift15:34
*** d0ugal has joined #openstack-swift15:35
*** cca88 has quit IRC15:35
*** d0ugal is now known as Guest5064815:35
acolesnotmyname: um, my experience with it is: get a token that authenticates me as userA, use that token with a /v1/AUTH_userB/c url, if userA is in ACL for container c then request should be granted.15:37
*** hhuang has quit IRC15:37
acolesnotmyname: i need to look into the HEAD you say is generated15:37
acoleson the account15:38
*** tsg has joined #openstack-swift15:40
*** j_king_ has joined #openstack-swift15:44
*** JoshNang_ has joined #openstack-swift15:45
*** charz_ has joined #openstack-swift15:45
*** charz has quit IRC15:46
*** JoshNang has quit IRC15:46
*** j_king has quit IRC15:46
*** ekarlso has quit IRC15:46
*** JoshNang_ is now known as JoshNang15:46
*** ekarlso has joined #openstack-swift15:46
*** foexle has quit IRC15:47
*** MooingLe1ur is now known as MooingLemur15:47
*** BAKfr has quit IRC15:49
swifterdarrellnotmyname: acoles: I regularly use --os-storage-url without --os-auth-token; the behavior I've observed (and desired) was to use the auth response's X-Auth-Token but use the supplied storage URL instead of the auth response's X-Storage-Url15:50
acolesnotmyname: is this what you see http://paste.openstack.org/show/113351/ ? those CLI commands generate no requests to swift service15:50
acolesswifterdarrell: ok, i didn't realise it was supposed to work that way too, makes sense though15:52
notmynameswifterdarrell: ya, that's what I expected15:53
swifterdarrellacoles: can you try w/the "-U" and "-K" before the command ("stat")?15:53
swifterdarrellacoles: i thought they needed to go before teh command, but it's been a while15:53
openstackgerritChristian Cachin proposed a change to openstack/swift: Implement encryption proxy middleware for server-side-encryption.  https://review.openstack.org/12277315:54
*** kyles_ne has joined #openstack-swift16:00
acolesswifterdarrell: tried that, no difference, but what i did need to do is add -A (i don't often use those flags !)16:01
acolesthat makes usage as you describe: authenticate as userA, send container request to userB account16:02
acolesthen i see the HEAD16:02
smart_developerWhat are the .conf files that should be there in /etc/swift upon a standard install of Swift?16:10
smart_developerI'm think I might be missing one, but then again I might be wrong.16:11
acolesnotmyname: can you add a trace to that bug report? so we're clear exactly what the scenario is.16:13
acolesnotmyname: seems to be a bunch of ways to get stack traces from swiftclient playing with those options :(16:14
notmynamefun16:14
notmynameyeah, I'll try to flesh it out later16:14
notmynameredbo: have you looked at torgomatic's zero-copy patches? (https://review.openstack.org/#/c/102609/) you had worked on something similar a while back16:20
*** kyles_ne has quit IRC16:20
*** kyles_ne has joined #openstack-swift16:21
*** annegent_ has joined #openstack-swift16:26
*** tkay has joined #openstack-swift16:29
*** Guest50648 is now known as d0ugal16:29
*** d0ugal has quit IRC16:30
*** d0ugal has joined #openstack-swift16:30
*** annegent_ has quit IRC16:30
redbonotmyname: I've looked at the code, and it's neat.  I intend to do some benchmarking on it soon, and a little more research on how many problems that md5 check actually catches.  So far it seems like some, but not many.16:35
*** gyee has joined #openstack-swift16:37
notmynamecool, thanks. I'd really love your input on it (and if it's good I'd really like to see it land in the next 2 weeks so it can be available as part of the juno release)16:37
*** thurloat has quit IRC16:43
*** sandywalsh_ has quit IRC16:46
*** gyee has quit IRC16:48
*** thurloat has joined #openstack-swift16:48
redboI guess I can just cram a configurable "use sendfile and don't md5" mode next to it later if I'm so hot on that idea.  It should be able to share most of the code.16:51
pelusenotmyname, torgomatic , tsg :  feature/ec rebased as well as recon framework which I just pushed through....16:54
notmynamethanks16:54
tsgthanks peluse!16:54
peluseI'm going to start tackling the recon node-node comm next, dig deeper into the various schemes we've BS'd and see what I can come up with for a proposal for next week, maybe some code by hackathon16:55
*** stevemar has quit IRC17:01
*** stevemar has joined #openstack-swift17:02
*** robbybb has joined #openstack-swift17:11
robbybbIs there any standard manifest format for storing large files (bigger than the largest supported Swift object)?17:11
notmynamerobbybb: two of them17:12
notmynamerobbybb: http://docs.openstack.org/developer/swift/overview_large_objects.html17:12
notmynamelong response to openstack mailing list thread discussion sent.17:17
*** gyee has joined #openstack-swift17:17
*** geaaru has quit IRC17:18
*** gyee has quit IRC17:24
*** zul has quit IRC17:37
*** zul has joined #openstack-swift17:37
clayg_swifterdarrell: --os-storage-url is the bomb17:51
clayg_smart_developer: swift.conf [proxy|account|container|object]-server.conf should do it.17:52
clayg_smart_developer: the internal client daemons (object-expirer/container-reconciler) need a seperate conf with a app:pipeline; container-sync-realms.conf can be a thing too...17:53
*** tongli has quit IRC17:56
*** openstackgerrit has quit IRC18:01
*** openstackgerrit has joined #openstack-swift18:03
*** tsg has quit IRC18:15
*** vu has quit IRC18:25
*** shri has joined #openstack-swift18:25
*** clayg_ is now known as clayg18:28
*** ChanServ sets mode: +v clayg18:28
*** jamiehannaford has quit IRC18:29
*** occupant has joined #openstack-swift18:31
notmynamewow. 22 PTLs to be elected. https://wiki.openstack.org/wiki/PTL_Elections_September/October_201418:49
*** kyles_ne has quit IRC18:58
*** kyles_ne has joined #openstack-swift18:58
smart_developerIn Swift, does [filter:______] mean it's a middleware ?18:59
smart_developerBasically, is a "filter" a "middleware"?18:59
torgomaticsmart_developer: yes, the terms are equivalent19:00
*** kyles_ne has quit IRC19:03
*** aix has quit IRC19:06
*** LarsN has left #openstack-swift19:07
portantehttp://lifehacker.com/373571/watch-star-wars-in-text-via-telnet19:12
portanteamazing this site is still there and it still works19:13
TygerBut does Han shoot first?19:14
notmynameyay towel.blikenlights!19:14
notmynameTyger: I've never watched it that far :-)19:14
smart_developerThanks.19:19
*** tkay has quit IRC19:19
smart_developerIn order to have middle, e.g., TempURL, working, do you need to do something more than just the standard install of Swift ?19:19
smart_developerBecause I'm trying to test it out,19:19
smart_developer(tempURL)19:19
smart_developerbut there is no utility/path: /opt/ss/bin/swift-temp-url19:19
*** tkay has joined #openstack-swift19:20
smart_developerI'm following https://www.swiftstack.com/docs/admin/middleware/tempurl.html instructions.19:20
smart_developerUnder "Generating a URL"19:20
notmynamesmart_developer: that's the path where swiftstack installs stuff. it may be different depending on how you've installed it19:21
notmynamesmart_developer: but the swift-temp-url helper tool is in the bin directory of the source tree19:21
notmynamesmart_developer: and to answer your other question, there is a lot of middleware included in the "standard install" of swift. tempurl is one of those.19:22
*** vu has joined #openstack-swift19:23
TrixboxerI'm writting a php web client for swift 1.4, Is there a way to allow download via the php web client ?  I'm getting 401 when redirecting the user to download URL ...  I think it has something to do with CORS however CORS was introduced in 1.7.519:24
torgomaticTrixboxer: generate a tempurl for the object and redirect the client there19:25
*** kyles_ne has joined #openstack-swift19:29
*** ndk has joined #openstack-swift19:31
*** zaitcev has joined #openstack-swift19:31
*** ChanServ sets mode: +v zaitcev19:31
Trixboxertorgomatic: thanks.. but is there way to get cors ? or i should upgrade to latest ?19:35
Trixboxeralso is there any place where swift maintains critical updates (security/stability) against features ?19:36
torgomaticTrixboxer: if you want cors, you'll have to upgrade, though I don't see what cors has to do with allowing downloads directly from swift to client19:36
torgomatic...I'm not sure what that last one means19:36
torgomatic"critical updates against features"?19:37
*** evanjfraser has quit IRC19:40
*** evanjfraser has joined #openstack-swift19:40
smart_developernotmyname : So basically anything that's referred to as the Swift middleware is middleware that automatically comes with your standard Swift install ?19:43
*** kyles_ne has quit IRC19:44
Trixboxertorgomatic: I mean if the visitor is browsing swift from my web php client then the web site address should be recognized by swift and let him download the file directly -- I think this is CORS and I'll have to update if I need it19:44
*** kyles_ne has joined #openstack-swift19:44
Trixboxertorgomatic: "critical updates against features" -> I mean the updates those are absolutely necessary as they solve security and stability issues19:44
torgomaticso client --> php app --> swift for "browsing", then client --> swift for download?19:45
Trixboxeryes19:45
notmynamesmart_developer: http://docs.openstack.org/developer/swift/middleware.html19:45
torgomaticTrixboxer: security issues typically get backported to the latest 6-month openstack release, but no further19:45
torgomaticdistros may do more, of course, but that's not something swift devs take care of19:45
*** kyles_ne has quit IRC19:45
*** kyles_ne has joined #openstack-swift19:46
torgomaticTrixboxer: I don't think this is CORS that you're looking for... I'm no CORS expert, but I think CORS is about being able to refer to Swift-hosted .js files and having Swift set appropriate headers so browsers will take them19:46
torgomaticI think tempurl is more likely to be the tool that you're looking for19:46
*** vu has quit IRC19:48
smart_developerOkay -> whenever I do  curl -k -i  https://172.20.20.11/v1/AUTH_a438ebed5eb749efa4bed51b8ccc0c92/sample_container/sample.txt?temp_url_sig=374f7b1e775cdf8ab991c9a2b1fb1e2a25e82f77&temp_url_expires=141115492319:50
smart_developerit gives me 404: Not found19:50
smart_developerHTTP 1.1 / 404 Not found19:50
smart_developerthis is for tempURL19:50
smart_developerAny obvious errors?19:51
*** morganfainberg is now known as CaptainMorgan19:52
smart_developerI was following the SwiftStack documentation: https://www.swiftstack.com/docs/admin/middleware/tempurl.html19:52
torgomaticsmart_developer: does that object actually exist? tempurl gives a 401 response on invalid signature, so it looks like your tempurl is working, but the object doesn't exist19:54
notmynamesmart_developer: in that curl command, did you escape the &? (ie "\&"19:54
claygnotmyname: some shells are better at that than bash...19:54
torgomaticstick quotes around the URL; it's harder to miss a spot that way19:54
claygnotmyname: either way I agree with torgomatic that he wouldn't get a 404 if the sig was invalid...19:54
notmynameclayg: emacs doesn't count19:55
*** stevemar has left #openstack-swift19:55
claygnotmyname: idk acorwin uses some crazy shell and I'm always like "you can't do that it won't work" and he's like, "nah it'll be fine" and he's right...19:55
Trixboxertorgomatic: thanks, I'll go for that19:55
smart_developer"/&" ?19:56
smart_developerWhere?19:56
smart_developer\& *19:56
notmynamesmart_developer: nah, do what torgomatic said and put the whole thing in quotes19:56
smart_developertorgomatic : It's been a while since I created that particular tempURL, so it probably has expired already ?19:57
smart_developerThat may be the 401 you're seeing.19:57
notmynamesmart_developer: also, that's probably not what's resulting in a 404. just make sure the object still exsists19:57
torgomaticsmart_developer: I didn't try it19:57
claygpeluse: you around?  I suddenly realized that we don't normally trigger migrations on read's - i woulder if the logic in get_policy_stats should be to omit the container-count keys when they're not there, and then have the account utils function only add headers for the data that comes out of the function19:57
smart_developerOkay.19:57
peluseclayg, I'm here for a min - have to run into a mtg for 30 min then will be back19:57
claygpeluse: then we could trigger migration to add the triggers in the auditor only?19:58
claygpeluse: other option is trigger the migration on read and welcome ourselves to the new world of whatever i migrate whenever i need to - but then also migrate in the auditor so we don't get stuck with unmigrated containers on any more multi-policy deployments just because they don't often read all accounts?19:59
smart_developernotmyname torgotmatic : I can download the file, so I know it exists.20:00
smart_developerBut I'm still getting the HTTP 1.1 / 404 Not found error.20:00
acorwinclayg: notmyname that's my queue to fanatically plug zsh!! http://www.zsh.org/20:00
*** robbybb has quit IRC20:00
claygpeluse: I change the for policy in POLICES: loop in the migration into a slick sub-select, I think it's pretty groovy20:00
peluseclayg, I looked a bit at the auditor option and the test code got super ugly so I punted at least for now and went with what you see up there now20:00
peluseclayg, note that I just got back from a conf and haven't been checking a lot of things often, just realized you left some comments that I haven't read yet.  Will read them here after my 1:00 mtg and ping ya back20:01
claygpeluse: yeah one time somewhere, not sure if it ever got pushed/merged I like imported a PreMigrationTestCase for one of the backends into a test for a background daemon - it was sorta wonky...20:02
torgomaticsmart_developer: well, all I can tell you is that the 404 isn't coming from tempurl; there's no 404 response generated anywhere in there20:02
* torgomatic heads to lunch20:02
claygpeluse: ok no worries - i guess I'll look at tests for the auditor change and wait and think about maybe only doing migrations from there...20:02
*** gyee has joined #openstack-swift20:15
smart_developernotmyname torgomatic : Maybe the 404 issue has to do with that whenever I start with 0 containers, 0 objects20:16
smart_developerand then create a new container + upload a simple.txt file20:16
-openstackstatus- NOTICE: Gerrit will be offline from 20:30 to 20:50 UTC for project renames20:16
*** ChanServ changes topic to "Gerrit will be offline from 20:30 to 20:50 UTC for project renames"20:16
smart_developerFor a long time, "swift ... stat" command only responds by saying 1 container, 0 objects.20:16
smart_developerAnd then creating another new container + uploading a new file called simple2.txt20:17
smart_developeryields 1 container, 0 bytes.20:18
smart_developer0 objects*20:18
smart_developerActually, after the first object upload (simple.txt), it yielded 0 containers, 0 objects (which was contrary to what I said a bit ago).20:18
smart_developerBut now, after uploading the 2nd container and object, it yields 1 container, 1 object.20:19
smart_developerSo it's hard to even discern a pattern with the info I am getting back.20:19
smart_developerIt's not like it's consistently behind by 1, or anything like that.20:19
smart_developer.....20:19
zaitcevYour updaters are bogging down, or maybe even not running on all nodes.20:20
smart_developerNow finally it (correctly) says there's 2 containers, and 2 objects, when running the "swift ... stat" command.20:21
smart_developerzaitcev : How long does it normally take for the correct # of containers, # of objects, info to show correctly on a small, 3-node cluster?20:24
claygsmart_developer: depends on the interval of the container updaters?20:24
claygsmart_developer: maybe 5 mins?20:25
smart_developerclayg : Okay, so it should be in the .conf files then, right?20:33
smart_developerHow do you check what the default values/properties for you Swift install, are?20:34
*** tdasilva has quit IRC20:35
smart_developer(in the container-update section of container-server.conf there is nothing).20:35
smart_developer(the [container-update] section)20:35
smart_developerupdater*20:35
peluseclayg, OK, I'm back.  Yeah, agree on the auditor thing for sure and I think the idea about the change to get_policy_stats() makes sense too.  Are you going to throw something up there on the audtior side?  I can wait on that and then knock out the get_policy_stats() change if you want20:38
claygok, sounds reasonable - yeah I'm definately going to push up what I have going, dunno yet if i'll end up grabbing the get_policy_stats change20:51
*** ChanServ changes topic to "Swift 2.1.0 https://launchpad.net/swift/+milestone/2.1.0 | Swift Review Dashboard: http://bit.ly/1iVBigF | Priority Reviews: https://wiki.openstack.org/wiki/Swift/PriorityReviews | Ideas: https://wiki.openstack.org/wiki/Swift/ideas"20:52
-openstackstatus- NOTICE: Gerrit is back online20:52
smart_developerThat's strange.... so I was at "swift ... stat" gave me 2 containers, 2 objects, (which is correct), but now after a while it's yielding 2 containers, only 1 object.20:53
smart_developerI did a "swift-init all restart" in between, but I'm not sure if this has anything to do with that .....20:55
*** openstackgerrit has quit IRC20:55
*** openstackgerrit has joined #openstack-swift20:57
*** gyee has quit IRC21:03
*** mkollaro1 has joined #openstack-swift21:08
smart_developerbut both objects seem to be download-able via swiftclient.21:09
*** mkollaro has quit IRC21:10
*** mkollaro1 has quit IRC21:13
smart_developerNow ..... container count is 2, but object count is 0.21:20
smart_developerWithout having done anything21:21
smart_developerDoes anyone have an example of what a formpost source code looks like?21:26
smart_developerThanks.21:26
*** CaptainMorgan is now known as morganfainberg21:28
*** mkollaro has joined #openstack-swift21:30
torgomaticsmart_developer: the formpost source is at swift/common/middleware/formpost.py21:42
smart_developertorgomatic : Thanks.21:48
*** Zerpies has joined #openstack-swift21:48
ZerpiesMinor question - if I have a public container in swift - is there a way I can disable the file listing if I access the container URL directly in the browser?21:48
Zerpiess/file/object21:48
*** mahatic has quit IRC21:53
smart_developerQuick question: How do I know what the default values are for my Swift configuration?22:00
smart_developerI am using a modified version of Swift 1.13.122:01
smart_developerand already was told that there are differences between what I've been using, and the {proxy-server,account-server,container-server,object-server}.conf-sample files available on the web.22:01
smart_developer(basically the ones found here: https://github.com/openstack/swift/tree/master/etc)22:02
smart_developerSo when certain properties/values/options aren't specified in my own .conf files, what's the most straightforward way for me to see/know what they've been set to?22:03
smart_developerThanks.22:03
*** robbybb has joined #openstack-swift22:09
*** rmcall has quit IRC22:12
*** mahatic has joined #openstack-swift22:12
claygsmart_developer: normally listings aren't available on public containers (.r:*) unless you add the listing flag (.rlisting)22:27
smart_developerclayg : In swift/container/updater.py22:28
smart_developerIs this22:28
smart_developerself.interval = int(conf.get('interval', 300))22:28
smart_developerIs the 300 in seconds, or in minutes, and where would you look?22:28
smart_developerThat means the number it takes in order to update the container metadata, right? (for instance, the # of objects that are listed in the container)?22:29
smart_developerand what/where is conf.get ?22:29
*** robbybb has quit IRC22:35
openstackgerritFlorent Flament proposed a change to openstack/swift: Limit partition movement when adding a new tier  https://review.openstack.org/12142222:43
*** dmsimard is now known as dmsimard_away22:50
*** robbybb has joined #openstack-swift22:54
*** echevemaster has joined #openstack-swift23:12
*** robbybb has quit IRC23:25
mattoliverausmart_developer: its in seconds and I think interval is the time between runs (although I could be wrong) I'm outside on my phone so can't check the code23:27
*** mahatic has quit IRC23:34
*** tkay has quit IRC23:37
openstackgerritClay Gerrard proposed a change to openstack/swift: Add container_count to policy_stat table  https://review.openstack.org/12079523:42
*** judd7 has joined #openstack-swift23:56

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