Friday, 2014-10-10

*** zaitcev has joined #openstack-swift00:01
*** ChanServ sets mode: +v zaitcev00:01
*** HenryG has quit IRC00:04
swift_fannotmyname : Why's that ?00:08
swift_fannotmyname : out of curiosity ?00:08
notmynameswift_fan: just curious00:08
swift_fannotmyname : I'm in central.00:09
swift_fannotmyname : you ?00:09
swift_fannotmyname : it's 7:09 PM right now.00:10
notmynameI'm in san francisco00:10
swift_fannotmyname : Ah, I see.00:13
*** traz_ has joined #openstack-swift00:16
traz_Hi all, is there a way to validate keystone PKI token at swift side without using CMS ?00:17
notmynametraz_: what's CMS?00:17
notmynametraz_: unless you have other, non-swift requirements for keystone pki tokens (eg you're also using nova and need them there), then I'd recommend using uuid tokens from keystone instead00:18
traz_ Cryptographic Message Syntax00:18
notmynametraz_: I don't know00:19
swifterdarrelltraz_: like, you tell Swift some key and it can cryptographically verify the token contents w/o having to do a network round-trip back to keystone?00:19
traz_PKI is cms token, cms is a openssl lib00:19
traz_yes00:19
swifterdarrelltraz_: no idea... but sounds like a neat feature, maybe?00:20
traz_I'm able to get PKI token from keystone00:20
notmynameswifterdarrell: traz_: I think the hard part with the pki token is you still have to do the network request to get the CRL (/me is far from an expert on keystone PKI)00:20
swifterdarrelltraz_: I think you'd have to modify one or more of the keystone-related middlewares... at least one of which lives in python-keystoneclient00:21
traz_but its validation at swift side is failing as openssl version installed on swift server does not support cms00:21
swifterdarrelltraz_: ah00:21
swifterdarrelltraz_: upgrade openssl?  I'm really just guessing at this point.00:21
traz_yes this is a solution, but is it possible without upgrading ? I mean is there any middleware like that ?00:22
traz_or any other way ?00:22
notmynametraz_: keystone provides the auth_token middleware that turns a keystone token (uuid or pki) into an identity record that swift understands. that's the only thing in swift that does anything with keystone00:24
traz_notmyname: but still it should be less than the number of requests to keystone server for validation00:24
notmynametraz_: so eg there aren't any other tools in swift to do stuff with keystone tokens00:24
traz_ok. I'm using keystonemiddleware00:25
notmynametraz_: yeah, I'm looking at that now too. interestingly, I don't see anything in requirements.txt about openssl00:25
traz_sorry keystoneclient middleware00:25
traz_paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory00:26
notmynametraz_: that's where it used to live. they split it out into a separate repo (keystonemiddleware). same thing though00:26
traz_now, keystone client is using cms to validate a pki token -- which I want to avoid00:27
traz_ok00:27
notmynametraz_: "from keystoneclient.common import cms" <- it would seem to be required00:28
*** foexle has joined #openstack-swift00:29
notmynameI joined memcached. nothing has been said in there :-)00:29
traz_Yes, it seem to be , but  is there any way this can be done without upgrading openssl ?00:29
notmynametraz_: I don't know00:30
traz_ok thanks for responding00:30
notmynametraz_: I think you might find better answers (more helpful than "I don't know") by asking the keystone devs00:31
traz_ok thanks, I'l try there00:31
*** tdasilva has joined #openstack-swift00:33
*** kota_ has joined #openstack-swift00:38
*** foexle has quit IRC00:48
*** shri1 has left #openstack-swift00:51
*** siwsky has left #openstack-swift00:53
*** traz_ has quit IRC00:57
*** tkatarki has quit IRC01:08
*** tkatarki has joined #openstack-swift01:15
*** tkatarki has quit IRC01:21
*** tkatarki has joined #openstack-swift01:21
*** haomaiw__ has quit IRC01:30
*** haomaiwang has joined #openstack-swift01:31
*** tdasilva has quit IRC01:33
*** nosnos has joined #openstack-swift01:39
*** tkatarki has quit IRC01:40
*** Fin1te has joined #openstack-swift01:43
*** haomaiw__ has joined #openstack-swift01:46
*** haomaiwang has quit IRC01:48
*** haomaiwang has joined #openstack-swift01:56
*** haomaiw__ has quit IRC01:56
*** kota_ has quit IRC02:09
*** Fin1te has left #openstack-swift02:13
*** Fin1te has joined #openstack-swift02:14
*** tgohad has quit IRC02:16
*** HenryG has joined #openstack-swift02:26
*** bill_az has quit IRC02:40
*** mrsnivvel has quit IRC02:46
*** haomaiw__ has joined #openstack-swift02:48
*** haomaiwang has quit IRC02:52
*** openstackgerrit has quit IRC02:58
*** Fin1te has quit IRC03:00
*** mrsnivvel has joined #openstack-swift03:09
Sanchitclayg: None that I can see. Posting the query again.03:11
Sanchit Hi, Regarding the ACL permissions on Container, Is it possible to specify a particular role in 'X-Container-Read' and then, all the users with that particular role can access the objects in the specified container? In general terms, is role-based ACL a feature in openstack-swift?03:11
SanchitCan anyone help me regarding this query posted above???03:11
*** nosnos has quit IRC03:26
*** nosnos has joined #openstack-swift03:26
*** nosnos has quit IRC03:30
*** dmsimard is now known as dmsimard_away04:10
*** echevemaster has quit IRC04:14
*** nosnos has joined #openstack-swift04:32
*** zaitcev has quit IRC04:36
*** brnelson has quit IRC05:12
*** brnelson has joined #openstack-swift05:12
*** elambert has joined #openstack-swift05:20
*** haomaiw__ has quit IRC06:00
*** haomaiwang has joined #openstack-swift06:00
*** ttrumm has joined #openstack-swift06:06
mattoliverauNight swift land, I'm calling it a day (and it's friday, woo weekend!). Have a great one all.06:13
*** haomai___ has joined #openstack-swift06:16
*** haomaiwang has quit IRC06:19
*** d0m0reg00dthing has joined #openstack-swift06:28
*** kyles_ne has joined #openstack-swift06:32
*** k4n0 has joined #openstack-swift06:34
*** d0m0reg00dthing has quit IRC06:47
*** d0m0reg00dthing has joined #openstack-swift06:47
*** d0m0reg00dthing has quit IRC06:47
*** d0m0reg00dthing has joined #openstack-swift06:48
*** kevinbenton has quit IRC06:50
*** d0m0reg00dthing has quit IRC06:50
*** d0m0reg00dthing has joined #openstack-swift06:50
*** d0m0reg00dthing has quit IRC06:53
*** d0m0reg00dthing has joined #openstack-swift06:53
*** foexle has joined #openstack-swift07:08
*** acoles_away is now known as acoles07:08
*** tab___ has quit IRC07:10
*** k4n0 has quit IRC07:24
*** kyles_ne has quit IRC07:27
*** kyles_ne has joined #openstack-swift07:27
*** k4n0 has joined #openstack-swift07:28
*** kyles_ne has quit IRC07:32
*** jamiehannaford has joined #openstack-swift07:37
*** haomai___ has quit IRC07:52
*** haomaiwa_ has joined #openstack-swift07:53
*** jistr has joined #openstack-swift07:56
*** aix has joined #openstack-swift08:01
*** haomaiwa_ has quit IRC08:17
*** haomaiwang has joined #openstack-swift08:17
*** nellysmitt has joined #openstack-swift08:22
*** haomaiw__ has joined #openstack-swift08:31
*** ttrumm has quit IRC08:32
*** haomaiwang has quit IRC08:33
*** nellysmitt has quit IRC08:53
*** foexle has quit IRC08:54
*** geaaru has joined #openstack-swift09:32
*** nosnos has quit IRC09:39
*** nosnos has joined #openstack-swift09:40
*** nosnos has quit IRC09:44
*** d0m0reg00dthing has quit IRC09:58
*** kevinbenton has joined #openstack-swift10:03
*** X019 has quit IRC10:41
*** X019 has joined #openstack-swift10:54
*** kopparam has joined #openstack-swift11:33
*** miqui has quit IRC11:34
*** kopparam has quit IRC11:37
*** X019 has quit IRC11:41
*** k4n0 has quit IRC11:42
*** X019 has joined #openstack-swift11:44
*** jistr has quit IRC12:00
*** thofi74 has joined #openstack-swift12:02
*** mahatic has joined #openstack-swift12:14
*** mkollaro has joined #openstack-swift12:17
*** jistr has joined #openstack-swift12:19
*** foexle has joined #openstack-swift12:21
*** CaioBrentano has joined #openstack-swift12:36
*** SkyRocknRoll has joined #openstack-swift12:44
*** foexle has quit IRC12:46
*** NM has joined #openstack-swift12:55
*** miqui has joined #openstack-swift12:56
*** HenryG has quit IRC12:57
*** tkatarki has joined #openstack-swift13:08
*** tsg has joined #openstack-swift13:09
acolescschwede: i figured out how to mock OutputManager without needing to change its __init__ signature, https://review.openstack.org/#/c/125759/913:09
*** jyoti-ranjan has joined #openstack-swift13:12
jyoti-ranjanI have one question related to Swift cluster tunning as I am seeing some failure if number of concurrent request is large13:13
jyoti-ranjanIn particular, can anyone help me understanding how critical below paramters are important13:14
jyoti-ranjansysctl -w net.ipv4.tcp_tw_recycle=113:14
jyoti-ranjansysctl -w net.ipv4.tcp_tw_reuse=113:14
jyoti-ranjansysctl -w net.ipv4.tcp_syncookies=013:14
jyoti-ranjanAny input will be helpful!13:14
*** jistr is now known as jistr|bbl13:16
*** bill_az has joined #openstack-swift13:16
*** elambert has quit IRC13:20
*** tkatarki has quit IRC13:21
*** tkatarki has joined #openstack-swift13:26
*** mrsnivvel has quit IRC13:27
ctenniswhat failure are you seeing jyoti-ranjan>13:32
jyoti-ranjanI am seeing errors like13:34
jyoti-ranjanOct  9 06:49:08 overcloud-ce-controller-swiftstorage1-6wcs67e44qei proxy-server: ERROR with Object server 192.168.116.46:6000/d1411740199 re: Trying to DELETE /AUTH_a07be3f0ffc74183a0bba38ce1c57dc0/c/o-0-1-174: ConnectionTimeout (0.5s) (txn: tx8a8a4532ca64438fae8c2-0054362fe3) (client_ip: 192.168.116.34)13:34
jyoti-ranjanOct  9 06:49:08 overcloud-ce-controller-swiftstorage1-6wcs67e44qei proxy-server: Handoff requested (1) (txn: tx8a8a4532ca64438fae8c2-0054362fe3) (client_ip: 192.168.116.34)13:34
jyoti-ranjanOct  9 06:49:08 overcloud-ce-controller-swiftstorage1-6wcs67e44qei proxy-server: ERROR with Object server 192.168.116.48:6000/e1411744653 re: Trying to DELETE /AUTH_a07be3f0ffc74183a0bba38ce1c57dc0/c/o-0-1-174: ConnectionTimeout (0.5s) (txn: tx8a8a4532ca64438fae8c2-0054362fe3) (client_ip: 192.168.116.34)13:34
jyoti-ranjanConnectionTimeout error13:34
*** tsg has quit IRC13:35
*** tsg has joined #openstack-swift13:35
*** bill_az has quit IRC13:43
acolesSanchit: Assuming you are using keystone auth, you can specify a role in X-Container-Read13:48
acolesSanchit: a user with that role *on the account's tenant* can then read the container13:51
acolesSanchit: at least, that was my experience, see http://paste.openstack.org/show/120167/13:52
*** mahatic has quit IRC13:53
*** bsdkurt has quit IRC13:55
*** gvernik has joined #openstack-swift13:56
*** dmsimard_away is now known as dmsimard13:57
acolesSanchit: be aware that other access controls are based on a user having *any* role on a tenant e.g. X-Container-Write: test:tester2 will grant write access to user 'tester2' is tester2 has *any* role on tenant test14:01
acolesclayg: ^^14:02
*** tsg has quit IRC14:07
*** tsg has joined #openstack-swift14:13
*** otherjon has quit IRC14:15
*** otherjon has joined #openstack-swift14:15
*** openstackgerrit has joined #openstack-swift14:16
*** gvernik has quit IRC14:17
*** CaioBrentano1 has joined #openstack-swift14:17
*** gvernik has joined #openstack-swift14:19
*** CaioBrentano has quit IRC14:19
*** CaioBrentano1 is now known as CaioBrentano14:20
*** gvernik has quit IRC14:23
*** jamiehan_ has joined #openstack-swift14:25
*** jamiehan_ has quit IRC14:26
*** jamiehannaford has quit IRC14:27
*** tsg has quit IRC14:28
*** HenryG has joined #openstack-swift14:31
*** NM has quit IRC14:40
*** elambert has joined #openstack-swift14:54
*** SkyRocknRoll has quit IRC15:00
*** Sanchit has quit IRC15:01
*** foexle has joined #openstack-swift15:07
*** nellysmitt has joined #openstack-swift15:07
*** tsg has joined #openstack-swift15:08
*** cloudnull has joined #openstack-swift15:11
*** aerwin has joined #openstack-swift15:13
*** foexle has quit IRC15:18
*** kbee has joined #openstack-swift15:20
*** mahatic has joined #openstack-swift15:22
*** tdasilva has joined #openstack-swift15:33
*** kbee has quit IRC15:34
*** kbee has joined #openstack-swift15:35
mahaticnotmyname, Good morning. I was going through instructions for application process (opw) and stumbled onto this: https://wiki.openstack.org/wiki/OutreachProgramForWomen/Mentors15:49
mahaticnotmyname, should you not be adding yourself to the list that is at the end of the page?15:50
*** jistr|bbl is now known as jistr15:50
ctennisjyoti-ranjan: do your kernel logs indicate you're running out of tcp ports or connections?15:53
*** kbee has quit IRC15:53
mahaticacoles, hi, around?15:55
acolesmahatic: hi15:55
mahaticacoles, thank you for your comments. Just a couple of questions: I should also be modifying the check in service.py to accomodate "BKMG" from this: https://review.openstack.org/#/c/126310/15:56
mahaticcorrect?15:56
*** aerwin has quit IRC15:56
*** foexle has joined #openstack-swift15:58
acolesmahatic: no. 126310 will remove BKMG and pass an int to service.py15:58
mahaticacoles, oh15:59
mahaticacoles, yes, just saw. my bad!16:00
acolesmahatic: so your check is good16:00
mahaticacoles, hmm, i should only be moving the test and include your suggestions, right?16:02
*** lcurtis has joined #openstack-swift16:04
*** kbee has joined #openstack-swift16:04
mahaticacoles, i do not see a file like test_service.py, should i be creating that one?16:05
notmynamegppd ,prmomg16:08
notmynamewow16:08
*** bill_az has joined #openstack-swift16:08
notmynamelet's try that again16:08
notmynamegood morning16:08
acolesmahatic: at this moment, do not change the test you already have in test_shell.py16:09
*** kbee has quit IRC16:09
*** kbee has joined #openstack-swift16:09
acolesmahatic: if 126310 merges, then you will probably need to change that test, but 126310 has not been approved yet16:09
mahaticacoles, okay16:09
acolesmahatic: the test_service.py i suggested is an additional test that will work regardless of 12631016:10
acolesmahatic: its up to you, but if you want to add test_service.py then, yes, it is a new file under tests/unit - you can copy/paste from my pastebin16:11
acolesand git add the file16:11
acolesmahatic: or... you could leave a comment to say you do not want to change your patch any more :) I'm +1, the changes are only suggestions16:13
mahaticacoles, okay :) I will work on it as a follow-up patch maybe? and my current test will not be needed at all right if 126310 gets approved?16:14
mahaticacoles, not the check, but the test in test_shell.py16:14
acolesmahatic: if your patch merges before 126310 then the author of 126310 will have to modify your test in test_shell.py, because the output string will change. not your problem :)16:16
*** mkollaro has quit IRC16:17
*** foexle has quit IRC16:17
acolesmahatic: so if you want to take the other suggestions as a follow-up the i will +216:19
acoless/the/then/16:19
mahaticacoles, sure, I will do a follow-up patch16:21
*** kbee has quit IRC16:21
*** joseff has joined #openstack-swift16:21
joseffhi all anyone help me get a command installed/working on rhea?16:22
josefflooking to get st command working16:22
joseffhttp://bazaar.launchpad.net/~hudson-openstack/swift/1.2/view/head:/bin/st16:22
joseffdoesn't seem to be in regular swift files any more16:23
mahaticacoles, i can as well work on it now, but to give you some context, opw apparently requires a patch to be merged. Although this one is: https://review.openstack.org/11919316:24
mahaticacoles, that got overridden by https://review.openstack.org/#/c/93788/. So I'll be happy to have this merged first, and then continue working on the follow-uo16:24
notmynamejoseff: `st` ("swift tool") is really old. it was renamed "swift" and then separated into the python-swiftclient repo16:24
mahaticfollow-up*16:24
joseffso its just called swift now?16:25
acolesmahatic: ok16:25
mahaticacoles, and opw=OutreachProgramforWomen (internship program)16:25
joseffI installed the python-swiftclient from pip16:25
notmynamejoseff: yes. https://github.com/openstack/python-swiftclient/blob/master/bin/swift16:25
joseffsweet thanks for the insight16:25
joseffwill try it now same command structure?16:25
notmynamejoseff: yes.16:26
joseffgot errors16:26
acolesmahatic: ah, not the 'office of public works' then :)16:26
joseffNo module named pbr.version16:26
notmynameoh. then let me rephrase. "no"16:26
notmyname;-)16:26
joseffhaha16:26
notmynamejoseff: oh. fun. pbr16:27
joseffno idea16:27
mahaticacoles, :) nope!16:27
joseffall i want to do is move files lol16:27
*** jyoti-ranjan has quit IRC16:27
notmynamejoseff: ok, so that's an openstack library to install. it's a dependency of the CLI now16:27
*** delattec has joined #openstack-swift16:27
notmynamejoseff: it may also require you to upgrade your version of setuptools16:27
joseffthought i did all dependancy16:27
joseffits updated16:27
joseffException: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?16:29
joseffwith is that now16:29
josefflol16:29
joseffdid yum install python-pip16:29
joseffdid and now this16:29
notmynamejoseff: yeah. update setuptools. hang on let me check a bug report16:30
*** delatte has quit IRC16:30
joseffmight be working now16:32
joseffhad to update /install some del16:32
joseffdep16:32
notmynamejoseff: https://bugs.launchpad.net/python-swiftclient/+bug/137957916:32
mahaticacoles, thank you for the help and comments16:32
notmynamejoseff: if that's what you're seeing, then upgrading setuptools will fix it16:32
joseffI did that too16:32
joseffforced upgrade16:33
joseffhmm maybe I have the options wrong but I don't see status16:33
joseffswift upload -cv images /mnt/images -A https://identity.api.rackspacecloud.com/v2.0/ -U user -K key16:34
joseffthat right?16:34
notmynamejoseff: you need to add "-V2"16:34
joseffswift upload -cv -V2 ??16:35
joseffor swift upload -cV216:35
acolesmahatic: welcome16:36
*** delatte has joined #openstack-swift16:37
notmynamejoseff: -c -V2 to be safe :-)16:37
joseffok thanks lets try16:37
notmynamejoseff: or "-V 2"16:37
joseffhmm not showing anything16:39
joseffjust new line and blink16:39
joseffoh... different v16:39
joseffswift upload --verbose -c -V 216:40
joseffshows me nothing16:40
*** delattec has quit IRC16:40
notmynamejoseff: instead of "upload" start with "stat" just to see that the other stuff is working16:40
openstackgerritDavid Goetz proposed a change to openstack/swift: Fix bug with expirer and unicode  https://review.openstack.org/12759416:41
joseffaccount not found?16:43
joseffthis is working with cloud fuse16:43
notmynamejoseff: you've confirmed the username and key?16:44
joseffyea16:44
joseffswift -A https://identity.api.rackspacecloud.com/v2.0/ -U username -K key stat -v16:44
joseffright?16:44
notmynamejoseff: you need the "-V 2" to specify that rackspace is using the v2 auth protocol16:45
joseffahh16:45
joseffswift -A https://identity.api.rackspacecloud.com/v2.0/ -U username -K key stat -v -V 216:45
joseffnot working either16:45
joseffalso tried swift -V 216:46
swifterdarrelljoseff: "swift" CLI tool distinguishes between global args and sub-command args16:46
swifterdarrelljoseff: the "-V2" should be "global" so come before "stat"16:46
swifterdarrelljoseff: also, "--debug" (also global) gives more info than "-v"/"--verbose"16:46
swifterdarrelljoseff: those may not be all of your problems w/that command, but those jump out at me16:47
*** zackmdavis has left #openstack-swift16:47
joseffswift --debug -V 2 -A blah -U foo -K bar stat  -- nada16:48
joseffsays account not found16:48
swifterdarrelljoseff: oh yeah, do you have any of the ST_* env vars set?16:49
joseffthat is a very good idea and I would tell if knew how16:49
josefflol16:49
swifterdarrelljoseff: env | grep ST_16:50
joseffnothing16:50
swifterdarrelljoseff: k... i was going to look up a working example, but it was using Cloud Files' v1 auth16:50
notmynameswifterdarrell: ya, me too16:51
joseffyes don't get me started with their examples16:51
notmynamehowever, when I try to switch it to v2 auth for RAX, I get "Account not found"16:51
josefftotally screwed me over in cloud fuse that https://auth.api.rackspacecloud.com/v1.0 doesn't work any more16:52
joseffnow it's https://identity.api.rackspacecloud.com/v2.0/16:52
josefftalking about RS of course16:53
swifterdarrelljoseff: ya, i dunno... may need to get fanatical support or whatever to work through how the swift CLI needs to be contorted to work against RAX v2, especially if they've made changes to it recently16:53
notmynamejoseff: I can get it to work with https://identity.api.rackspacecloud.com/v1.016:53
josefflets try that16:53
notmynamejoseff: I think one other difference might be api key vs account password in v2 auth16:53
joseffaccepted16:54
joseffso let me see the upload16:54
notmynameoh. that's interesting: "ClientException: No tenant specified" when trying v2 auth. not sure if user error (some missing option) or if a bug in swiftclient16:55
joseffswift upload --verbose -c -V 1 production_images /mnt/images -A https://identity.api.rackspacecloud.com/v1.0 -U user -K key16:56
joseffright?16:56
joseffdoing nothing again16:56
joseffdebug shows nothing either16:57
notmyname  swift --os-auth-url https://api.example.com/v2.0 --os-tenant-name tenant \16:59
notmyname      --os-username user --os-password password list16:59
notmynameI have no idea how to find or what the tenant name is for rackspace16:59
joseffusing v 1 seems to work on connect17:00
joseffwould it be the collection name?17:00
*** shri has joined #openstack-swift17:00
swifterdarrellnotmyname: joseff: surely this is what Rackspace Support is *for*?17:00
joseffhahahaha17:00
joseffyea no17:00
swifterdarrellnotmyname: joseff: how can they sell this and not tell people how to actually use it?17:01
joseffthey just crawl docs17:01
notmynameswifterdarrell: they could tell people to ask in the swift dev channel ;-)17:01
*** aix has quit IRC17:01
swifterdarrellnotmyname: *that's* working17:01
claygacoles: that's interesting about roles in keystone auth with swift - i hadn't thought about it like that17:01
claygacorwin: didn't someone post in here they had managed to get some sort of policy.json support into swift + keystone?17:02
notmynamejoseff: yeah. at this point swifterdarrell is right. time to go ask rackspace support. they are in #rackspace17:02
joseffI asked a network tech (told really) that you guys are based on the Swift protocol for cloud file so I should be able to use clouffuse to mount to server17:02
joseffknow what he sai17:02
joseffwell possibly but we don't support third party apps. You should add a raid system to your server for file storage17:02
josefflol17:02
acolesclayg: yeah, i had to go and play to convince myself17:02
claygthe tenant is the rackspace username (that use to log into mycloud) - the *username* you have to create when you make the api keys - it's under some drop down in the upper left - something about "users"17:03
acolesclayg: but once user has any role on tenant then are considered to be 'in' the tenant as far as tenant:user type acls are concerned17:03
claygjoseff: ^ i recently hacked up a rc file that worked with novaclient17:03
acolesclayg: its not restricted to 'admin' and '__member__' (ie swiftoperators)17:03
claygacoles: yeah i mean that's how'd you have to map keystones idea of roles "in" tenants to swift's idea of "users" in "accounts" or whatever the f' we have17:04
claygjoseff: bah - upper right :\17:04
joseffyea got that17:04
acolesclayg: i believe (emphasize this is heresay :) that in other openstack services *any* role on a tenant gets you full access17:05
joseffswift -V 2 --debug --os-auth-url https://identity.api.rackspacecloud.com/v2.0 --os-tenant-name username --os-username username --os-password key list17:05
josefflike this?17:05
joseffdoesn't work17:05
shriHey guys… question about reclaiming objects. Which server deletes the rows from the container db and which one deletes the ".ts" files from the filesystem once an object has gone past the reclaim age?17:06
claygjoseff: well i think you have to *create* an api user for that sort of thing; i wouldn't imagine the name being the same as the account name17:07
joseffonly three user types17:07
joseffhmm17:08
joseffthats creating a real user17:08
btorchjoseff: just use swiftly tool https://github.com/gholt/swiftly/tree/stable it's much better than the swift tool17:09
joseffdoes it do uploads to cloud file?17:09
btorchjoseff: than you can create a file like http://goo.gl/eyCpky and source it before using the swiftly commands17:10
joseffclayg seems the v1 connection actually gives me a 204 -- no content17:12
joseffbtorch: just need a fast way of shipping files to cloud file -- faster then cp via cloud fuse17:12
btorchjoseff: btw you can use https://identity.api.rackspacecloud.com/v2.0  instead of the old auth endpoint I have on that file example17:13
joseffyea but the v2 gives errors with tenant etc17:13
joseffv1 just uses the user and key17:13
*** lpabon has joined #openstack-swift17:13
btorchjoseff: swiftly gives a lot or commands that swift tool doesn't .. just type swiftly and it will show you all the commands17:13
claygbtorch: what did you link me bro?17:13
btorchclayg: huh ?17:14
btorchclayg: how you doing ? :) long time no talk17:14
joseffbtorch Im a total swift newbie -- swiftly look intimidating to say the least17:15
josefflol17:15
claygyeah i'm doing great - but http://goo.gl/eyCpky does not look like a file bash would source?17:15
claygjoseff: no swiftly's great!  pip install swiftly - should be just as good17:15
joseffok17:15
joseff...beings try 417:15
josefflol17:15
joseffbegins*17:15
claygjoseff: but you're missing something obvious - you need to check in with rackspace support - they're probably better at explaining it than us johnnies17:15
josefferror: invalid command 'egg_info'17:16
joseffI have17:16
joseffI'll ask again17:16
btorchclayg: it shows the output of my .swiftly_dfw than can be sourced17:16
claygbtorch: RLY?  it looks like json - you "source" that?  Like bash "source" that?17:17
btorchjoseff: not sure what you mean by the "tenant" ... you have an account user right ?17:17
btorchclayg: lol what page are you on  ?17:17
joseffyea thats the username17:17
btorchclayg: I've seen 0bin.net not work well for some people .. not sure why17:18
joseffRS Rep: error: invalid command 'egg_info'17:18
btorchclayg: ok I see17:18
notmynamebtorch: the file you linked in the pastebin has a dictionary with the keys "iv" "salt" and "ct"17:18
joseffRS Rep: error: Have you checked out any of the support articles that we have?17:18
josefflol17:18
btorchclayg: it's not decrypting when behind my vpn17:18
joseffbet you she pulls up the API doc with the end point17:19
joseffthat we have all been looking at17:19
btorchclayg: http://0bin.net/paste/CLfdv3ANwQ9XF92s#lqaxF8A0ohgJvfdSuvdrIPRHEx+6N+CHfwM1EWrIaBs17:19
btorchclayg: weird now it is ... http://goo.gl/r85DDm  <- worked now as well17:20
joseffhttp://www.rackspace.com/knowledge_center/article/syncing-private-cloud-swift-containers-to-rackspace-cloud-files17:20
joseffdoesn't really explain how to do it to cloud file17:20
btorchjoseff: so all you need is the username and your account API key ... that's what I use and it works fine17:21
joseffgot that17:21
joseffwhats the command you use to upload17:21
joseff?17:21
joseffbtorch:Command python setup.py egg_info failed with error code 117:22
joseffwhen trying to install swiftly17:22
joseffok17:23
joseffgot it17:23
btorchjoseff: give me a quick sec and I'll put something together17:23
btorchok cool17:23
joseffgot the install done that it17:23
joseffis17:23
joseffhad to reinstall setup tools again17:23
btorchwhat version did you get  ?17:24
btorchswiftly --version17:24
joseff2.0417:24
btorchcool17:24
joseffI17:24
joseffm trying to upload a image folder recursively skipping existing to a container17:24
josefftalking like 850GB of images17:25
joseffbeen a bit of a nightmare17:25
btorchafter you create a file like .swiftly_whatever (http://pastebin.com/ekffRFzr) you can run "swiftly auth" to test out17:28
btorchjoseff: hmm, are you doing that from a public location ?17:28
joseffon server17:28
joseffvia ssh17:28
btorchjoseff: is it a racksapce server ? like a cloud server ?17:29
joseffits a rs hw server to a rs cloud server17:29
joseffcloud files I mean17:29
btorchok so, this is what I would find out first (end you probably know already)17:30
joseffcan't use sn17:30
btorch1 make sure that SWIFTLY_REGION is where your server is17:30
joseffservice net deosnt run between physical and cloud17:30
btorchit does if you get rack-connect17:30
joseffnope doesn't17:31
joseffI checked17:31
joseffi wish17:31
btorchhmm let me double check that but that's doesnt seem right17:31
joseffi know!17:31
joseffbut thats what the net tech said when I told my acct manager to get me one17:31
josefftwo different data centers for physical and cloyd -- but I thought thats what rack connect fixed17:32
btorchah no you can't that way17:32
btorchmust be on the same DC17:33
joseffyea that makes rc almost useless17:33
joseffok config is done17:33
joseff.swiftly_config17:33
btorchit's meant to connect service net within a DC so that you don't have to pay public bandwidth17:34
joseffyea, but hybrid networks get the short change17:34
joseffcan't wait till I'm all clloud17:34
btorchso the other option you have, and ask your AM to be sure, you could ship the data and someone on cloud support would import that data into your account17:35
btorchlike ship usb drive, and instructions on how to proceed and someone would import that data into your cloud account into a cloudfiles container on the region you want17:36
claygok you two - get your own room :P17:36
btorchlol17:36
joseffhaha17:36
btorchI gotta head out anyway .. joseff  hope it all works17:36
joseffhow do you upload?17:38
btorchjoseff: I pm'd you17:42
*** zaitcev has joined #openstack-swift17:51
*** ChanServ sets mode: +v zaitcev17:51
*** exploreshaifali has joined #openstack-swift17:53
shriHey guys, I think my previous question got lost amidst  other discussion… I have a question about reclaiming objects. Which server deletes the rows from the container db and which one deletes the ".ts" files from the filesystem once an object has gone past the reclaim age?17:54
*** themadcanudist has joined #openstack-swift17:56
*** themadcanudist has left #openstack-swift17:56
*** themadcanudist has joined #openstack-swift17:57
*** themadcanudist has left #openstack-swift17:57
*** themadcanudist has joined #openstack-swift17:57
*** themadcanudist has left #openstack-swift17:57
openstackgerritAlistair Coles proposed a change to openstack/swift: Make in process functional tests use sample proxy-server.conf  https://review.openstack.org/12760718:00
acolestdasilva: ^^ and portante fyi18:00
tdasilvaacoles: nice! will definitely take a look18:02
acolestdasilva: thx. btw, did your mouse receiver arrive?18:02
*** kyles_ne has joined #openstack-swift18:03
joseffswirly is refusing to play nice18:03
joseffswiftly18:03
tdasilvaacoles: just received an email from facilities saying a package arrived for me! :-)18:03
tdasilvaacoles: thanks!18:03
acolestdasilva: well if its a very small package then maybe thats it !)18:05
notmynameshri: replication. and yes, it seems that it should still work with just one replica18:06
shrinotmyname: Thanks! just to understand this correctly.. even with one replica replicator should reclaim deleted objects, correct?18:09
notmynameshri: that's my understanding from just now looking over the code (not running it). but note that the 1-replica case isn't something that's often (ever?) tested18:09
shriI see18:10
shriwho deletes the entries from the container db and the ".ts" files from the filesystem?18:10
notmynamereplication18:10
shribut there are replicators for objects as well as containers.18:10
notmynameyes18:10
joseffto use swiftly do I use put instead of upload?18:11
shriI mean to ask which does object-replicator delete the ".ts" files and container-replicator delete the entries from the container db?18:12
shris/ask which does/ask does/g18:12
*** jistr has quit IRC18:13
notmynameshri: yes18:15
shriI see.. so if I want to change the reclaim_age, I should change it in both container-server.conf as well as object-server.conf18:15
notmynamecorrect18:16
shriperfect… thanks a lot!18:16
*** acoles is now known as acoles_away18:16
joseffI think I got swiftly pushing files18:17
joseffnot sure really as I get some 200, 201 created and 40418:17
joseffand I'm not sure what they mean in this context18:18
joseffusing the put -d -i path container-name18:18
portanteacoles_away: sweet18:19
*** Anju has joined #openstack-swift18:19
*** Anju has quit IRC18:23
*** Anju has joined #openstack-swift18:23
*** kyles_ne has quit IRC18:25
*** kyles_ne has joined #openstack-swift18:26
*** mkollaro has joined #openstack-swift18:29
*** kyles_ne has quit IRC18:30
*** kyles_ne has joined #openstack-swift18:35
shrianother quick question.. I'm seeing a LockTimeout in the container-server trying to lock the db (.lock) file. Does the node_timeout config option govern this timeout value?18:36
zaitcevno18:36
zaitcevWhat version are you running? I seem to recall that Havana shipped with that bug.18:37
zaitcevOr maybe Grizzly18:37
zaitcevAnyway, it should not be happening.18:37
shriI'm using version 1.13.1 … I believe thats Havana18:37
*** aix has joined #openstack-swift18:39
shriso is the timeout value even configurable?18:40
*** swift_fan has left #openstack-swift18:40
zaitcevshri: I think your case is something different, but could you look into your /usr/lib/python2.*/site-*/swift/common/db.py and verify that this is in: https://github.com/openstack/swift/commit/ef7f9e27a2d10aeaa9ed550e9595c54ccacdd4f218:42
shriI see the GreenDBCursor class .. so I think the fix exists18:44
shrinot sure if this has a bearing on the timeout though, right? This affects retries.18:46
*** openstackgerrit has quit IRC18:48
notmynamehttp://www.ottawalife.com/wp-content/uploads/2012/07/actor-mime.jpg <- for torgomatic18:49
zaitcevhttp://www.pbfcomics.com/114/18:51
zaitcevshri: You could try to track down which particular timeout you're hitting ("I'm seeing a LockTimeout in the container-server trying to lock the db (.lock) file" is not sufficient to know).18:51
zaitcevshri: but I suggest that you look at the cluster health first18:52
shriThe locktimout is reported for both puts and deletes. Something like this:18:55
shricontainer-server: ERROR __call__ error with PUT /r0/96/AUTH_blah/blah-blaherm/652cec6a-22676977 : LockTimeout (10s)18:55
*** openstackgerrit has joined #openstack-swift18:55
openstackgerritanju Tiwari proposed a change to openstack/swift: Added a check for limit value  https://review.openstack.org/11818618:56
*** kyles_ne has quit IRC18:56
*** kyles_ne has joined #openstack-swift18:57
zaitcevoh, right, it's caught so you cannot know where it happens... it is in the reply body, however. I think.18:57
*** thofi74 has left #openstack-swift18:58
openstackgerritanju Tiwari proposed a change to openstack/swift: Added a check for limit value  https://review.openstack.org/11818618:59
openstackgerritDavid Goetz proposed a change to openstack/swift: Ssync does not replicate custom object headers  https://review.openstack.org/12703318:59
notmynameshri: is this with one replica?19:00
*** kyles_ne has quit IRC19:01
*** kyles_ne has joined #openstack-swift19:02
*** mkollaro has quit IRC19:04
josefflooks like swiftly is working good19:07
zaitcevit better19:21
notmyname`mv python-swiftclient slowly`19:21
*** smart_developer has joined #openstack-swift19:24
smart_developerI am trying to implement a rolling upgrade/patch scheme for my Swift cluster.19:25
smart_developerTo do that, I think it's best to bring down 1 node at a time, upgrade that, and then put it back in.19:25
notmynamesmart_developer: what have you tried? what have you already read online?19:25
notmynamebased on what' you've tried, what current issues are you seeing?19:26
smart_developerOnce the "recovered node" has had a chance to sync all the objects from the not-upgraded nodes, I plan to take down another node, repeat the process, etc.19:26
smart_developernotmyname : Well, I already know how to bring down the node, upgrade it, and bring it back up, but the main question is19:26
smart_developernotmyname : How to know once the "recovered node" has had a chance to sync all of the objects that need to be synced ?19:27
smart_developernotmyname : One method that comes to mind is using "swift-recon -d" to see that now the disk usage across the cluster is even,19:27
smart_developernotmyname : But this does not seem like the best method out there, nor does it seem like it would be reliable in every case.19:28
notmynameno. go read various already published articles online. try it out. look at logs. learn. then come with your specific questions based on what you are seeing19:28
smart_developernotmyname : Not only the objects, but also the containers and accounts, and any other information that needs to be synced as well.19:28
* notmyname will not get sucked into more hours-long conversations about stuff not based on what you're seeing in your cluster19:28
smart_developernotmyname : swift-recon was all I could find.19:29
smart_developernotmyname : I even came across a SwiftStack article.19:29
smart_developernotmyname : But that seemed to skip over the part about how to know when the "recovered node" is fully-recovered, and when the next node can be taken down.19:30
smart_developernotmyname : Sorry, I'm new to this, so it's not as easy to know what to even search for.19:32
*** kyles_ne has quit IRC19:32
*** kyles_ne has joined #openstack-swift19:33
smart_developerDoes anyone know?19:35
*** kyles_ne has quit IRC19:37
*** judd7 has joined #openstack-swift19:38
MooingLemurBecause of the decentralized nature of Swift, there is no way to know for certain how fully-replicated the cluster is at any particular point.  You can only get a general idea through sampling.  A decent set of metrics would be based on something like swift-recon (where you inject all the test objects against a fully-up cluster, then check it later), and by watching the logs for object-replicator and see that you've done at least ...19:41
MooingLemur... one full pass on all of your other nodes after an upgrade.19:41
swifterdarrellsmart_developer: what exactly are you upgrading?  why do you expect data to move?19:43
MooingLemurHowever, if you're just doing rolling restarts, is it that important to you to fully replicate before taking down the next node?  If each node is only going to be down a few minutes for upgrades, you probably won't be gaining too much in terms of coherency/consistency, and I don't think you'll necessarily reduce the amount of time that some objects aren't fully replicated.19:43
MooingLemurI would just take down one node at a time, and don't worry about allowing replication to happen before moving onto the next.  Since you likely have 3 replicas of each object anyway, the node you just brought up will get replicated data pushed to it almost as quickly anyway.19:44
*** judd7 has quit IRC19:45
openstackgerritDavid Goetz proposed a change to openstack/swift: Change black/white-listing to use sysmeta.  https://review.openstack.org/12604919:45
*** judd7 has joined #openstack-swift19:46
MooingLemurAnd since you're only taking one node down at a time, the likelihood of clients getting a transient 404 are minimal.19:46
*** judd7 has quit IRC19:47
smart_developerMooingLemur : Is this common practice, what you've suggested? How long do the upgrades usually take ?19:48
smart_developerswifterdarrell : not necessarily expecting data to move, but for instance, if new objects were uploaded to the cluster while the upgraded node was down, then the upgraded node would need some time to get synced with the new objects.19:48
smart_developerswifterdarrell : MooingLemur brings up a good point, but I'm not sure if that's the "recommended method" in actual production-end deployments.19:49
MooingLemursmart_developer: As your cluster gets large, waiting for replication between upgrading boxes becomes impractical.  I would venture to say that it would be common practice not to wait.  Our Swift systems are on Gentoo, and I've not used the Ubuntu/RHEL installation before except for the SAIO/Swiftstack test instances.19:50
MooingLemurSo I can't really answer how long it'll take.  It all depends on what you're upgrading :)19:50
smart_developerMooingLemur : The end cluster I'm planning to put into deployment will have 3 nodes total, each node having all the proxy,account,container,object services.19:51
smart_developerMooingLemur : And by upgrades, I generally mean patches, for instance, to the Swift code.19:52
smart_developerMooingLemur : But "upgrade" can really be anything that's necessary, more than that.19:52
MooingLemurThe process you use is up to you.  I'm just giving you a recommendation based on what I'd do in my environment (currently 20 object nodes in the largest cluster)19:55
*** Anju has quit IRC19:55
smart_developerMooingLemur : Do you have an upgrade recommendation for my 3-node cluster ?19:56
smart_developer(with all services running on each node).19:56
smart_developerI hear that you're saying that for large clusters, it may be better not to wait for replication.19:56
smart_developerBut what about for a cluster of 3-node size ?19:57
smart_developerwould there be motivation to wait ?19:57
smart_developer(for replication).19:57
MooingLemurnothing particually different, it's just that the longer a node is out, a larger % of data is affected in a small cluster.  I don't think it makes an appreciable difference on the overall health of the cluster based on whether you wait.  It's really up to you.  I wouldn't wait.19:58
MooingLemurI guess with the exception of the first machine, you might want to watch logs to make sure everything is happening as it should after the upgrade, before you do the rest of your machines. :)  But that's general advice, not anything specific to Swift.20:05
smart_developerMooingLemur : why for the first machine ?20:06
MooingLemurSo that you can gauge whether the upgrade was successful and had the intended effect, since if the upgrade didn't do the right thing, you won't be doing the same damage to the rest of your cluster. :P20:07
smart_developerMooingLemur : Ah, that makes sense! Thanks.20:15
smart_developerMooingLemur : :)20:15
smart_developerIs there any backing up of any information/data that is required, before or after the take-down of a node during the rolling upgrades process ?20:16
notmynametorgomatic: why does https://review.openstack.org/#/c/124903/4/swift/common/swob.py change cStringIO to StringIO? inheritance?20:20
shrinotmyname: sorry was afk. About the container-server LockTimeout while locking the .lock file, yes… this was with a single replica20:20
torgomaticnotmyname: yeah, you can't inherit from cStringIO20:20
notmynametorgomatic: oh. well that's fun20:20
*** tab_____ has joined #openstack-swift20:21
notmynametorgomatic: (and although I haven't gotten that far yet) I'm guessing the WsgiStringIO is so tests can squash something in those 100 headers?20:21
torgomaticnotmyname: yeah, if that method's not there, tests blow up but good20:21
notmynameok, thanks20:21
smart_developernotmyname : https://swiftstack.com/blog/2013/12/20/upgrade-openstack-swift-no-downtime/20:22
smart_developernotmyname : It seems that a lot of the web resources I've been looking through the past couple of days all point to this one.20:22
smart_developernotmyname : I'm not sure if it was intentionally left out, but,20:22
smart_developernotmyname : It doesn't say anything about whether backing up of any information/data before-or-after the takedown of a node during the rolling updates process20:23
smart_developernotmyname : is required.20:23
smart_developernotmyname : For instance, rings ?20:23
smart_developernotmyname : or anything else20:25
ctennissmart_developer: nothing20:25
smart_developernotmyname : I just discussed with MooingLemur, and it looks like at least the objects isn't an issue.20:25
smart_developernotmyname : But I'm not sure about anything else.20:26
*** lpabon has quit IRC20:32
smart_developerMooingLemur -- earlier you commented that there's really no way to tell whether the recovered node has been fully-synced with the other 2 nodes.20:40
smart_developerMooingLemur -- however, I was wondering why that is so, since there has got to be a CLI command that can check that, or something20:40
ctennissmart_developer: look in the logs for the output of the replicators (object and container) and once they've completed run through the entire set of partitions after your node is back up then you are in good shape20:41
smart_developerMooingLemur -- Like how "swift-recon -d" can check whether all the disks scattered across the cluster are being evenly utilized.20:41
openstackgerritOpenStack Proposal Bot proposed a change to openstack/python-swiftclient: Updated from global requirements  https://review.openstack.org/8925020:44
openstackgerritOpenStack Proposal Bot proposed a change to openstack/swift: Updated from global requirements  https://review.openstack.org/8873620:44
smart_developerctennis : What about the account replicator ?20:44
ctennissmart_developer: yes same20:44
MooingLemursmart_developer: the simple answer to that question is that it would take so long to verify that everything is synched, that an event that would cause it to get out of sync would likely happen in the meantime.  That's why there are tools like swift-recon that can give you a sampling of how replicated the data is.  Use swift-recon and what ctennis said, monitor the replicator logs on the nodes that were left up.20:45
smart_developerctennis : Are there any other replicators that I need to consider, as well ?20:45
ctennisthose are the only 3 replicators20:45
smart_developerMooingLemur : Ok. Do you know which swift-recon command/option you would need to use ?20:47
*** mitz_ has quit IRC20:47
*** delattec has joined #openstack-swift20:50
*** delatte has quit IRC20:52
*** miqui has quit IRC20:57
MooingLemurread it, try it, test it, figure it out.  :)21:01
*** delatte has joined #openstack-swift21:03
*** delattec has quit IRC21:05
*** mahatic has quit IRC21:07
*** joseff has quit IRC21:11
*** Nadeem has joined #openstack-swift21:23
smart_developerMooingLemur : okay, Thanks.21:30
*** CaioBrentano has quit IRC21:37
openstackgerritDavid Goetz proposed a change to openstack/swift: Fix bug with expirer and unicode  https://review.openstack.org/12759421:39
*** nshaikh has joined #openstack-swift21:42
*** nellysmitt has quit IRC21:47
*** tkatarki has quit IRC21:58
*** navid__ has joined #openstack-swift22:01
smart_developerHas anyone ever had any trouble using account quotas before ?22:02
smart_developerBecause the curl commands I've been using have been return a HTTP 200 OK, but when using a non-reseller-admin-role I can actually exceed the quota that I set, by a lot.22:03
smart_developerIs this a known bug within the Swift community, or is it likely that I'm just doing things wrong ?22:03
*** nshaikh has quit IRC22:04
*** navid__ is now known as nshaikh22:04
smart_developerI just followed one of the Swift user guides' examples, and modified what I needed to run it against my Swift cluster.22:04
smart_developerAnyways, has account-quota-bytes been known to cause various errors ?22:05
*** gyee has quit IRC22:18
smart_developerThank you, anyone who is able to answer this. :)22:18
*** IRTermite has quit IRC22:20
*** jergerber has joined #openstack-swift22:23
*** nshaikh has left #openstack-swift22:26
*** erlon_ has quit IRC22:29
smart_developerI modeled my cURL command based on this example : curl -k -i -H POST <my_HAProxy_IP>:<my_HAProxy_port>/v1/AUTH_<my_tenant_id> -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -H "X-Account-Meta-Quota-Bytes: 25"22:37
smart_developer(for my issue with trying to get account-quota-bytes to work).22:37
smart_developerMoreover, I've experimented with container quotas, and I did not experience any of these issues .........22:38
*** joseff has joined #openstack-swift22:44
*** geaaru has quit IRC22:46
*** wasmum has left #openstack-swift22:49
*** occup4nt is now known as occupant22:49
*** echevemaster has joined #openstack-swift22:52
*** openstackgerrit has quit IRC22:54
*** dmsimard is now known as dmsimard_away22:56
*** lcurtis has quit IRC22:56
smart_developer(basically, had no problems experimenting with container quotas and making them work, but when trying to make the account-quota-bytes work, I'm running into those issues).22:56
smart_developer:(22:56
*** cutforth has quit IRC22:59
*** marcusvrn_ has quit IRC23:02
*** Nadeem has quit IRC23:07
*** Nadeem has joined #openstack-swift23:23
*** Nadeem has quit IRC23:24
*** dmsimard_away is now known as dmsimard23:29
*** elambert has quit IRC23:33
*** tab_____ has quit IRC23:38
*** dmsimard is now known as dmsimard_away23:49

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