Monday, 2014-06-23

*** dmorita has joined #openstack-swift00:26
*** matsuhashi has joined #openstack-swift00:31
*** kota_ has joined #openstack-swift00:58
*** mitz has quit IRC01:11
*** mitz has joined #openstack-swift01:25
*** mitz has quit IRC01:28
*** mitz has joined #openstack-swift01:28
*** nosnos has joined #openstack-swift01:39
*** mitz has quit IRC01:57
*** mitz has joined #openstack-swift02:01
*** AbyssOne__ has joined #openstack-swift02:16
*** AbyssOne_ has quit IRC02:17
*** bvandenh has quit IRC02:18
*** annegentle_ has quit IRC02:25
*** annegentle has joined #openstack-swift02:35
*** yuan has quit IRC02:36
*** yuan has joined #openstack-swift02:37
*** mlipchuk has quit IRC02:37
*** charz has joined #openstack-swift02:41
*** bkopilov has quit IRC02:42
*** mitz has quit IRC02:48
*** mitz has joined #openstack-swift02:50
*** mitz has quit IRC02:52
*** mitz has joined #openstack-swift02:54
*** zhiyan_ is now known as zhiyan03:04
*** dmorita has quit IRC03:16
notmynamehello, world.03:19
notmynamezaitcev isn't here, but it looks like the upstream links are all there now03:20
notmynameI'll be doing launchpad busywork to make it look vaguely similar to reality this week03:21
notmynamepeluse_: I may not be able to make the pyeclib meeting in the morning. I've got a ptl webinar to give tomorrow afternoon and have to prep for. depends on how timing goes with dropping kids off in the morning03:26
*** matsuhashi has quit IRC03:39
*** mlipchuk has joined #openstack-swift03:41
*** mlipchuk has quit IRC03:51
*** nosnos has quit IRC03:54
notmyname2.0 RC announce email http://lists.openstack.org/pipermail/openstack-dev/2014-June/038357.html03:57
*** fifieldt has joined #openstack-swift04:00
kota_notmyname: great! I'm happy to hear the news :)04:08
*** charz has quit IRC04:08
*** bkopilov has joined #openstack-swift04:13
*** bkopilov_ has joined #openstack-swift04:19
goodesgood morning all04:36
*** haomaiwang has joined #openstack-swift04:36
notmynamepeluse_: ah. my PTL update is on tuesday. got my invites out of order. chances looking better to be at pyeclib tomorrow am ;-)04:38
notmynamegoodes: hi04:38
*** matsuhashi has joined #openstack-swift04:39
*** nosnos has joined #openstack-swift04:41
goodesnotmyname: hi04:44
notmynameand goodnight to you :-)04:44
notmynameI've got to turn in early tonight. my wife is traveling and I've got to get up early with the kids tomorrow. and I'll need my sleep04:45
notmynameI'll probably be online again in about 12 hours (after I drop off kids)04:45
kota_peluse: Hi, peluse. Can I get the log of the pyeclib meeting or join it?04:45
notmynamekota_: I'll forward you the invite04:46
*** kopparam has joined #openstack-swift04:46
*** nosnos has quit IRC04:46
kota_notmyname: Thanks!04:46
notmynamekota_: done04:47
*** nosnos has joined #openstack-swift04:47
kota_notmyname: got it04:47
*** ChanServ changes topic to "Currently in Swift 2.0 RC phase -- read all about it at http://lists.openstack.org/pipermail/openstack-dev/2014-June/038357.html"04:48
notmynameok, good night all04:48
*** nshaikh has joined #openstack-swift04:52
StevenKnotmyname: When you're back, congrats on 2.0 rc104:58
goodesnotmyname: there seems to be a issue with the link you have to overview_policies - the trailing dot is included which renders a 404.05:08
goodesCongrats all on 2.0RC105:08
*** fifieldt has quit IRC05:12
*** navid__ has joined #openstack-swift05:12
*** chandan_kumar_ has joined #openstack-swift05:13
*** jyoti_ranjan has joined #openstack-swift05:13
*** fifieldt has joined #openstack-swift05:14
*** chandan_kumar has quit IRC05:16
*** nshaikh has quit IRC05:16
*** chandan_kumar_ is now known as chandan_kumar05:17
*** ppai has joined #openstack-swift05:20
*** navid__ has quit IRC05:29
*** ajc_ has joined #openstack-swift05:29
*** kopparam has quit IRC05:32
mattoliverauWow, there is action in the channel!! I go away for... ahem.. a long lunch break (but means I now have a car) and.. boom everyones awake :) Welcome to Monday people!!05:33
*** nosnos has quit IRC05:35
openstackgerritOpenStack Proposal Bot proposed a change to openstack/swift: Updated from global requirements  https://review.openstack.org/8873605:35
*** nosnos has joined #openstack-swift05:37
*** psharma has joined #openstack-swift05:38
*** kajinamit has joined #openstack-swift05:39
* portante folks are just sleep walking ... ;)05:41
mattoliverauportante: lol, probably :P05:45
*** nshaikh has joined #openstack-swift05:48
*** matsuhashi has quit IRC06:05
*** matsuhashi has joined #openstack-swift06:06
*** kopparam has joined #openstack-swift06:07
*** matsuhashi has quit IRC06:11
*** grapsus_ has joined #openstack-swift06:11
*** ktsuyuzaki has joined #openstack-swift06:12
*** kota_ has quit IRC06:13
*** matsuhashi has joined #openstack-swift06:13
*** kopparam has quit IRC06:15
*** kopparam has joined #openstack-swift06:15
openstackgerritKota Tsuyuzaki proposed a change to openstack/swift: Efficient Replication for Distributed Regions  https://review.openstack.org/9982406:16
*** kopparam_ has joined #openstack-swift06:19
*** matsuhashi has quit IRC06:19
*** matsuhashi has joined #openstack-swift06:19
*** kopparam has quit IRC06:20
*** kota_ has joined #openstack-swift06:20
*** ktsuyuzaki has quit IRC06:22
*** ktsuyuzaki has joined #openstack-swift06:23
*** MooingLemur has quit IRC06:23
*** MooingLemur has joined #openstack-swift06:23
*** kota_ has quit IRC06:25
*** kopparam_ has quit IRC06:26
*** pconstantine_ has joined #openstack-swift06:26
*** kopparam has joined #openstack-swift06:26
*** openstackstatus has quit IRC06:27
*** acorwin has quit IRC06:27
*** kota_ has joined #openstack-swift06:29
*** acorwin has joined #openstack-swift06:30
*** ktsuyuzaki has quit IRC06:31
*** ktsuyuzaki has joined #openstack-swift06:34
*** jamiehannaford has joined #openstack-swift06:34
*** kota_ has quit IRC06:36
*** kota_ has joined #openstack-swift06:41
*** ktsuyuzaki has quit IRC06:43
*** ktsuyuzaki has joined #openstack-swift06:43
*** haomaiwang has quit IRC06:45
*** kota_ has quit IRC06:45
*** kota_ has joined #openstack-swift06:46
*** mkollaro has joined #openstack-swift06:47
*** ktsuyuzaki has quit IRC06:48
*** ktsuyuzaki has joined #openstack-swift06:48
*** ktsuyuza_ has joined #openstack-swift06:51
*** kota_ has quit IRC06:51
*** kota_ has joined #openstack-swift06:53
*** ktsuyuzaki has quit IRC06:53
*** matsuhashi has quit IRC06:55
*** ktsuyuza_ has quit IRC06:55
*** matsuhashi has joined #openstack-swift06:56
*** ktsuyuzaki has joined #openstack-swift06:56
*** kota_ has quit IRC06:58
*** kota_ has joined #openstack-swift06:58
*** ktsuyuzaki has quit IRC07:01
*** ktsuyuzaki has joined #openstack-swift07:01
*** kota_ has quit IRC07:03
*** kota_ has joined #openstack-swift07:03
*** bkopilov has quit IRC07:04
*** bkopilov_ has quit IRC07:05
*** ktsuyuzaki has quit IRC07:05
*** pconstantine_ has quit IRC07:06
ppaiDoes anyone know what role reseller_prefix has in account name ?07:07
*** kopparam has quit IRC07:10
*** ktsuyuzaki has joined #openstack-swift07:10
*** kota_ has quit IRC07:12
*** jamiehannaford has quit IRC07:12
*** jamiehannaford has joined #openstack-swift07:12
*** kota_ has joined #openstack-swift07:14
*** ktsuyuzaki has quit IRC07:16
*** bkopilov_ has joined #openstack-swift07:20
*** bkopilov has joined #openstack-swift07:20
*** jamiehannaford has quit IRC07:22
*** jamiehannaford has joined #openstack-swift07:25
*** joeljwright has joined #openstack-swift07:25
*** sileht has quit IRC07:35
*** pconstantine_ has joined #openstack-swift07:35
*** pconstantine_ has quit IRC07:46
mattoliverauHi ppai, the authentication middleware I think appends the reseller_prefix to the account name so it knows which authenticator was and is used to authnticate it. The token is also appended with it. The default prefix is AUTH.07:52
*** nacim has joined #openstack-swift07:52
*** kopparam has joined #openstack-swift07:53
mattoliverauor what authenitcator an account is apart of.07:54
ppai<mattoliverau> I understand...the entry in account DBs  also has this prefix07:54
ppaiSo I guess, if i change my reseller_prefix, then I can't access those accounts that were PUT earlier using a different reseller_prefix07:55
mattoliverauppai: its possible with swift to use multiple authentication middle ware, so that makes sense to store it in the dbs.07:56
mattoliverauppai: hmm, yeah good question. I'll do some digging :)07:56
ppaithe only doc I could find about the purpose of reseller_prefix is this: http://manpages.ubuntu.com/manpages/raring/man5/proxy-server.conf.5.html07:57
*** ahale has joined #openstack-swift08:01
*** ahale has quit IRC08:01
*** ahale has joined #openstack-swift08:01
*** ppai has quit IRC08:02
*** foexle has joined #openstack-swift08:07
*** ppai has joined #openstack-swift08:08
*** kopparam has quit IRC08:14
*** mmcardle has joined #openstack-swift08:14
*** kopparam_ has joined #openstack-swift08:19
*** kopparam_ has quit IRC08:20
*** kopparam has joined #openstack-swift08:23
*** jyoti_ranjan has quit IRC08:24
*** jyoti_ranjan has joined #openstack-swift08:25
*** rieglflo has joined #openstack-swift08:29
*** sileht has joined #openstack-swift08:41
mattoliverauppai: hmm, I'm a little stuck, it looks like there used to be a tool that updated the reseller-prefix: http://is.gd/4Woz2M But this is old and doens't seem to exist anymore. You will have to ask your question during US day time when there are more devs online. Maybe its built into swift somewhere new, maybe they assume to migrate away you need to use mixed08:44
mattoliveraureseller_prefixes (ie load the middleware twice with different prefixs) and move everything. I'm stumped, I'm new to the project so isn't something I've faced. So please don't take the previous suggestions (load middleware twice, etc) and play in production.. instead I think the question needs to be raised to a core.  But now I want to know, so I'll definitely be asking the other devs when they're08:44
mattoliverauonline (tomorrow morning for me). If you can't be around during the US day time, hopefully I can answer you question tomorrow :)08:44
mattoliverauOn that note, it's getting later into the evening here and I need dinner.08:44
mattoliverauNight all.08:44
mattoliverauppai: sorry I couldn't help further08:45
rieglflohi everyone, is it possible to create a container as admin and give exactly one (non admin nor swiftoperator ) user within that tenant read, write, listing permissions for that container? the user shall not be able to make the objects within that container public accessable but shall be able to list it's objects as well as add/remove objects. .rlistings seems to make the container public readable ....08:46
rieglfloplease advise08:46
*** nshaikh has quit IRC08:47
*** charz has joined #openstack-swift08:58
*** ujjain has quit IRC09:01
ppaimattoliverau, thanks :)09:06
*** mkerrin has quit IRC09:15
*** jyoti_ranjan has quit IRC09:16
*** mkerrin has joined #openstack-swift09:18
*** pberis has quit IRC09:19
*** jyoti_ranjan has joined #openstack-swift09:20
*** pberis has joined #openstack-swift09:21
*** kopparam has quit IRC09:23
*** kopparam_ has joined #openstack-swift09:23
*** kopparam_ has quit IRC09:26
acolesriegflo: assuming you are using keystone, use X-Container-[Read|Write] ACL *:user_id where user_id is the keystone id of the user you want to grant container access to09:26
*** kopparam has joined #openstack-swift09:28
*** haomaiwa_ has joined #openstack-swift09:34
*** kopparam has quit IRC09:36
*** RockKuo_Office has joined #openstack-swift09:37
*** RockKuo_Office has joined #openstack-swift09:37
*** RockKuo_ has joined #openstack-swift09:37
*** RockKuo_Office has quit IRC09:37
*** RockKuo_ has quit IRC09:37
*** RockKuo_Office has joined #openstack-swift09:38
*** haomaiwa_ has quit IRC09:39
*** toolslive has joined #openstack-swift09:40
*** kota_ has quit IRC09:43
*** jyoti_ranjan has quit IRC09:47
*** kopparam has joined #openstack-swift09:50
*** nsquare has quit IRC10:07
*** nsquare has joined #openstack-swift10:09
*** nsquare has quit IRC10:09
*** mlipchuk has joined #openstack-swift10:11
*** bkopilov has quit IRC10:15
*** bkopilov_ has quit IRC10:16
*** mmcardle has quit IRC10:20
*** mlipchuk has quit IRC10:22
*** haomaiwa_ has joined #openstack-swift10:23
*** haomaiwa_ has quit IRC10:28
*** AbyssOne is now known as a1|away10:28
*** jyoti_ranjan has joined #openstack-swift10:31
*** zhiyan is now known as zhiyan_10:32
*** haomaiwang has joined #openstack-swift10:34
*** haomaiw__ has joined #openstack-swift10:47
*** haomaiwang has quit IRC10:49
*** bkopilov has joined #openstack-swift10:54
*** bkopilov_ has joined #openstack-swift10:54
*** bkopilov_ has quit IRC11:00
rieglfloacoles: thank you, but is that somewhere documented? http://docs.openstack.org/developer/swift/misc.html#acls ....?11:01
*** bkopilov has quit IRC11:03
*** tdasilva has joined #openstack-swift11:04
*** ppai has quit IRC11:07
*** bkopilov has joined #openstack-swift11:13
*** jyoti_ranjan has quit IRC11:14
acolesrieglflo: its a variant of the example 'sues_account:sue'. sues_account can be replaced with wildcard *. but i agree its not too clear.11:18
acolesrieglflo: and i recommend that you use keystone user ID not name - user names are not guaranteed to remain globally unique in keystone (they are unique within domains), id's will always be globally unique.11:19
*** bkopilov has quit IRC11:19
*** dmsimard_away is now known as dmsimard11:19
rieglfloacoles: thank you very much for that clarification!11:21
acolesrieglflo: no problem11:21
*** charz has quit IRC11:21
*** ppai has joined #openstack-swift11:24
*** chandan_kumar is now known as chkumar24611:35
*** RockKuo_Office has quit IRC11:38
*** chkumar246 has quit IRC11:45
*** chandan_kumar has joined #openstack-swift11:46
*** jyoti_ranjan has joined #openstack-swift11:48
*** a1|away is now known as AbyssOne11:52
*** mmcardle has joined #openstack-swift11:55
*** Ju_ has joined #openstack-swift11:55
*** kopparam has quit IRC12:03
*** mmcardle has quit IRC12:06
dmsimardnotmyname, chmouel: Debating wether or not to open a bug for this.. python-swiftclient doesn't seem to support TLS SNI but it's not exactly it's fault, it's more because the underlying libraries do not. What do you guys think ?12:06
dmsimardA bug would at least allow to track the progress towards SNI support ?12:06
pconstantinefresh saio: TypeError: list_objects_iter() got an unexpected keyword argument 'storage_policy_index'12:07
*** kopparam has joined #openstack-swift12:11
*** CaioBrentano has joined #openstack-swift12:16
*** jamiehannaford has quit IRC12:20
*** tdasilva_ has joined #openstack-swift12:20
*** tdasilva has quit IRC12:20
*** jamiehannaford has joined #openstack-swift12:21
*** jamiehannaford has quit IRC12:22
*** matsuhashi has quit IRC12:23
*** ppai has quit IRC12:23
*** matsuhashi has joined #openstack-swift12:23
*** jamiehannaford has joined #openstack-swift12:23
*** jamiehannaford has quit IRC12:23
*** jamiehannaford has joined #openstack-swift12:26
*** matsuhashi has quit IRC12:28
chmoueldmsimard: i think it may be easier to add that to requests/urllib3 than swiftclient12:28
*** matsuhashi has joined #openstack-swift12:28
dmsimardchmouel: *nod*, like I said, it's more of a bug/missing feature in requests/urllib312:28
dmsimardBut we should probably document somewhere that this means python-swiftclient doesn't support SNI12:28
dmsimardTook me a while to find out this particular issue in an implementation :)12:29
chmoueldmsimard: sorry about that, is that something that was supported with the homegrown ssl implementation that we had in pre-swiftclient-2.0 ?12:30
dmsimardchmouel: I haven't dug in the changelog too much but I can tell that the SSL verification mechanisms have improved in the recent versions - for instance in the Ubuntu packaged swiftclient, it won't complain about a selfsigned/wrong certificate and in the pip release it does.12:31
dmsimardchmouel: In the pip release, if I have two SSL vhosts on the same IP and I query the vhost that isn't returned as a default by the webserver, swiftclient will complain that the hostname I queried doesn't match the domain for the SSL certificate12:33
dmsimardbecause the SSL certificate returned is the one for the default domain12:33
chmouelisn't that dependent of the python version?12:33
chmoueli.e: python3 supports it and not py212:33
dmsimardBoth running python 2.7, Ubuntu packaged version for swiftclient is 1.6.0, pip release is 2.1.012:34
*** matsuhashi has quit IRC12:35
dmsimardDon't have a python 3 to test on right now.12:35
*** matsuhashi has joined #openstack-swift12:35
*** ppai has joined #openstack-swift12:36
*** matsuhas_ has joined #openstack-swift12:38
chmoueldmsimard: this is mentioning in the requests FAQ http://docs.python-requests.org/en/latest/community/faq/#what-are-hostname-doesn-t-match-errors12:38
*** matsuhashi has quit IRC12:39
dmsimardYup. I'm sure you appreciate like me the fact that swiftclient is py3 compatible now but unfortunately 2.7 is going to stick around for a while still :(12:40
*** ajc_ has quit IRC12:40
dmsimardThey mention "This support has not been back ported to Python2", I wonder if that means they have not (yet) done it or if they will not do it outright12:41
*** dANOKELOFF has joined #openstack-swift12:48
dANOKELOFFHi everyone, I follow the guide for SAIO replication ( http://docs.openstack.org/developer/swift/replication_network.html) but i dont understand now, how i can test if the replication work or not.12:49
*** miqui has joined #openstack-swift12:50
*** kopparam_ has joined #openstack-swift12:53
*** kajinamit has quit IRC12:54
*** kopparam has quit IRC12:56
*** matsuhas_ has quit IRC13:03
*** matsuhashi has joined #openstack-swift13:03
*** kopparam_ has quit IRC13:04
goodesIs there a more efficient way to move objects between profiles beyond doing a server side copy/put and then a delete?13:04
*** matsuhashi has quit IRC13:08
*** matsuhashi has joined #openstack-swift13:08
*** kopparam has joined #openstack-swift13:13
*** matsuhashi has quit IRC13:13
*** matsuhashi has joined #openstack-swift13:14
*** matsuhashi has quit IRC13:18
*** zz_wasmum is now known as wasmum13:24
*** ppai has quit IRC13:26
peluse_dANOKELOFF:  if you just want to know that its started 'swift-init object-replciator status'...13:27
peluse_dANOKELOFF:  if you want to test it you can either run the unit tests, or manually PUT an object and then browse your dir strcture to find one of the copies.  Then you can edit the file, put some junk it it and save it.13:28
dANOKELOFFpeluse_: thank's for the command, i dont found correct guide ton setup the replication , i just found this guide : http://docs.openstack.org/developer/swift/replication_network.html#dedicated-replication-network)13:29
peluse_dANOKELOFF:  make sure the autiro and repl are running and the auditor will figure out that its bad, quantine it, and then the replicator will push a new copy over the top.  You can watch all that happen while it happens13:29
*** kopparam has quit IRC13:29
dANOKELOFFpeluse_: but i'm not sure this guide is good13:29
*** nosnos has quit IRC13:29
peluse_dANOKELOFF:  actually I haven't personally tried the dedicated repl netork but if you set it up and it is running you can try the steps I just mentioned to see if its actually working (you can manually delete the hashes.pkl file located in the partition directory (and everything below it if you wish) and that will also cause another replicator to push everything back over13:31
dANOKELOFFi would try to upload a file13:31
dANOKELOFFand see if the replication work13:32
dANOKELOFFi really dont understand the replication anyone has a good and clear guide for beginners please ?13:40
tdasilva_dANOKELOFF: do you have a specific question?13:45
tdasilva_dANOKELOFF: this doc has a nice section on replication: https://swiftstack.com/openstack-swift/architecture/13:46
dANOKELOFFtdasilva : yes , i'm beginner with swift so i try to use it and the replication system.I create to different server, with the SAIO swift. I follow the guide Dedicated replication network but when i upload file in my main server, the replication server doesnt received the file , i really dont understand how can use and setup the replication in swift13:47
dANOKELOFFi go to read this13:47
peluse_is a very good book!13:47
peluse_dANOKELOFF:  you may wan to try the basic SAIO setup first (before anything with dedicated repl netowrk) so that you're starting as simple as possible13:48
dANOKELOFFi do that, i have two saio swift server13:48
dANOKELOFFwhere i can use for upload file13:49
dANOKELOFFcreate account13:49
dANOKELOFFlist all file present13:49
*** haomaiwang has joined #openstack-swift13:49
*** annegent_ has joined #openstack-swift13:50
*** annegent_ is now known as annegentle_13:50
*** haomaiw__ has quit IRC13:50
dANOKELOFFBut now, i want to implement the replication for secure my data13:50
tdasilva_so...when you setup saio and start all services, the replication daemon is already running on the saio cluster13:51
tdasilva_once you upload an object, the object will be replicated automatically for you13:51
*** haomaiw__ has joined #openstack-swift13:52
tdasilva_that document you listed is for a more advanced setup where you have replicator server running on separate nodes13:52
tdasilva_it is not needed for the saio setup13:52
*** wasmum is now known as zz_wasmum13:52
*** haomaiwang has quit IRC13:54
tdasilva_dANOKELOFF: does that help?13:55
*** kopparam has joined #openstack-swift13:57
*** zz_wasmum is now known as wasmum13:58
dANOKELOFFyeah, i know is not need for the saio setup, but i want to implement the replicator in different server, but i dont found any clear guide for that.13:58
*** annegentle_ has quit IRC14:02
*** annegent_ has joined #openstack-swift14:03
*** mmcardle has joined #openstack-swift14:07
tdasilva_dANOKELOFF: honestly i don't have experience setting up a dedicated replication network, that's probably something notmyname or creiht can help with...they usually show up a bit later...14:18
*** kenhui has joined #openstack-swift14:18
dANOKELOFFok, tdasilva_ thank's for your help , i continue to read the book for see if i can understand some things.14:18
creihtgoodes: that's pretty much it14:19
*** wasmum is now known as zz_wasmum14:19
*** tdasilva_ is now known as tdasilva14:20
creihtdANOKELOFF: not sure I completely understand what you are trying to do14:21
creihtreplication talks to the object server to get certain information it needs14:22
creihtnormally this is the same object server that is handling all other requests14:22
dANOKELOFFcreiht: i try to use the swift replication between two servers, but i dont know how i can use and setup the replication.14:22
creihtthe separate replication allows you to run a an object server isntance that is dedicated to object replication14:23
creihtdANOKELOFF: the ring determines what servers/devices are enabled in the cluster14:23
creihtreplication uses the ring to figure out where things to be and where it needs to move them to14:24
creihtso if you are adding a server, usually you have to add its devices to the ring14:24
creihtpush it out to the servers, and replication will take over14:24
dANOKELOFFcreiht: ok. But what is the file when i indicate my other server ?14:25
creihtdANOKELOFF: what do you mean by file?14:25
dANOKELOFFthe configuration ring file14:26
creihtdANOKELOFF: http://docs.openstack.org/developer/swift/development_saio.html#setting-up-scripts-for-running-swift14:28
creihtstep 714:28
creihtwhen you were setting up the saio14:28
creihtthat script is what is used to make the rings for the saio14:28
dANOKELOFFok thank's. after that, how i can test if the replication working ?14:29
goodescreiht: will the files be deleted immediately?14:30
creihtwell once you get swift properly installed on the other node, and setup the ring, then you should see the partitions with objects being replicated over to that other machine14:31
creihtgoodes: unless there are failures, then yes it should be deleted as soon as the delete returns14:31
goodescreiht: thes14:32
creihtdANOKELOFF: http://docs.openstack.org/developer/swift/howto_installmultinode.html14:32
goodescreiht: that's reasonable then14:33
creihtthat might be good for you to read, as it goes over what needs to be done to setup swift for multiple nodes14:33
creihtthe SAIO is mainly meant for developers or people that just want a quick way to try out swift14:33
dANOKELOFFok thank's but the step 6 and more , the command need to do on the second or the first node ?14:34
creihtgoodes: cool... in error cases (like a server isn't responding, or bad drive, etc) replication will eventually take care of it14:34
creihtdANOKELOFF: realy trying to move a SAIO to use more than one machine is a bit complicated14:36
creihtthat's why I showed you the other docs, as it should give you a better idea of what you need to do to run swift on more than one machine14:36
dANOKELOFFhum... so i need to reinstall two swift but not SAIO swift14:38
dANOKELOFFcreiht: Ok , just one question the step 6 and the other need to do on the two server ? or just one ?14:40
*** kopparam has quit IRC14:40
creihtdANOKELOFF: well it is kind of complicated14:41
creihtdANOKELOFF: the SAIO basically emulates running 4 servers on a single server14:42
dANOKELOFFcreiht: ok14:43
creihtdANOKELOFF: if you want ot use swift on more than one machine, it is really better to start over and set up the two machines using what you have learned with the SAIO14:44
creihtand the help of the multi-server instructions14:44
*** jyoti_ranjan has quit IRC14:46
dANOKELOFFcreiht: ok, so i need to follow the multi-server instructions and not the SAIO guide. Ok14:47
dANOKELOFFi will do that14:47
dANOKELOFFthank's for your help14:47
*** charz has joined #openstack-swift14:48
creihtnp14:48
*** IRTermite has quit IRC14:52
*** kevinc_ has joined #openstack-swift14:55
*** IRTermite has joined #openstack-swift14:56
*** charz has quit IRC15:00
*** charz has joined #openstack-swift15:02
*** zz_wasmum is now known as wasmum15:05
*** mmcardle has quit IRC15:09
*** byeager has joined #openstack-swift15:14
*** mwstorer has joined #openstack-swift15:16
toolsliveThere is a feature branch for erasure coding. what's the status on that?15:19
*** nacim has quit IRC15:21
*** annegent_ has quit IRC15:24
tdasilvatoolslive: as you have probably heard Storage policies have landed on master....that work was being developed on the ec branch15:24
tdasilvaas it was the foundation work for ec15:25
tdasilvaec work itself is still ongoing15:25
tdasilvabeing led by the folks at intel, box and others15:25
tdasilvai'm not sure whether they will use the same feature/ec branch or create a new one15:26
toolsliveone of the problems I see is that erasure coding will make the items stored on disk a lot smaller; and you have a lot more of them while swift is using the file system to store them. So I wonder what they will do to compensate that.15:27
dANOKELOFFon this guide (http://docs.openstack.org/developer/swift/howto_installmultinode.html) , step 6, i need to change the adress ip and give the ip adress of my server or i dont change it ?15:27
*** bsdkurt has quit IRC15:29
*** judd7 has joined #openstack-swift15:30
*** annegent_ has joined #openstack-swift15:34
*** zaitcev has joined #openstack-swift15:36
*** ChanServ sets mode: +v zaitcev15:36
*** dANOKELOFF has quit IRC15:40
*** gyee has joined #openstack-swift15:42
*** charz has quit IRC16:03
*** annegent_ has quit IRC16:05
*** wasmum is now known as zz_wasmum16:10
notmynamegood morning, world16:16
*** nsquare has joined #openstack-swift16:17
peluse_toolslive:  well, "a lot smaller" depends :)  We will have many knobs to help tune for various impacts of doing EC, including a few things to minimize the effect you mention.  Bottom line though - EC isn't right for every usage model out there16:17
peluse_notmyname:  good morning!16:18
peluse_tdasilva:  yes, we decided to use feature/ec for the EC work, its not current right now though16:18
peluse_notmyname: speaking of that, any ETA on when feature/ec will be clean so we can start landing some EC specific stuff?16:19
notmynamepeluse_: ya, that's next, now that we got SP landed as a different branch. I'll need to fight clarkb be on it, though. he really doesn't want that history to go away16:20
notmynamepeluse_: I'll see if the existing one can be renamed and then the "feature/ec" reused. maybe we'll call it "ec2" just to throw everyone off ;-)16:21
peluse_notmyname:  very cool, let me know when ready.  tsg has 2-3 patches that he needs to rebase and propose that will get us started and that's the first step...16:22
peluse_ec2 - heh16:22
* peluse_ offline for an hour or so...16:22
notmynamedmsimard: this is a cool experiment http://dmsimard.com/2014/06/21/a-use-case-of-tengine-a-drop-in-replacement-and-fork-of-nginx/16:24
notmynamedmsimard: thanks for writing/publishing it16:25
creihtdmsimard: yeah I read that this morning as well16:27
dmsimardWoah, I'm a superstar now? :)16:28
dmsimardGlad it's useful.16:28
notmynamedmsimard: the buffering thing in nginx is really annoying when normally nginx is a best-practice thing and then when an admin is deploying swift, suddenly they need to learn new tricks. makes adoption harder, I think16:30
creihthaha16:30
dmsimardYeah I learned it the hard way and had to do a move, quickly :)16:30
notmynamedmsimard: as did we all ;-)16:31
*** kevinc_ has quit IRC16:31
dmsimardIn one of the threads I link to, there is this obscure patch of 3k+ lines of C code to be able to disable buffering16:31
*** baojg has joined #openstack-swift16:31
dmsimardI had to find another way :)16:31
*** baojg has quit IRC16:32
*** baojg has joined #openstack-swift16:32
notmynamedmsimard: I wonder if the current direction of nginx to an open-core model would make it impossible to maintain that fork over time. eg they may just say that no-buffer is a pay feature16:32
dmsimardnotmyname: good question. Perhaps at that point it'd be time for tengine to distance itself from nginx like mariadb to mysql16:33
*** rook has joined #openstack-swift16:33
dmsimardIn my experience, mariadb 5.5 fits right in as a drop-in replacement to mysql.. mariadb 10, not so much16:34
dmsimardhell, mariadb started being the default now in some distributions like fedora16:35
dmsimardso that means something.16:35
notmynamedmsimard: so what you're saying is that nginx will be bought by oracle next? ;-)16:36
*** kevinc_ has joined #openstack-swift16:38
*** zz_wasmum is now known as wasmum16:38
*** madhuri has quit IRC16:40
*** CaioBrentano has quit IRC16:41
dmsimardnotmyname: oh my god16:43
*** elambert has joined #openstack-swift16:43
dmsimardLet's hope not :)16:43
notmyname:-)16:44
notmynamethat'll be right after they buy rackspace, right creiht? ;-)16:44
dmsimardWell, Redhat is making a lot of waves recently.. with Inktank and Enovance. Rackspace looking for a buyer apparently and Softlayer that was acquired by IBM.. Market is moving a lot.16:46
* creiht sighs16:46
*** miqui_ has joined #openstack-swift16:50
*** miqui has quit IRC16:51
*** wasmum is now known as zz_wasmum16:52
*** bsdkurt has joined #openstack-swift16:52
*** mmcardle has joined #openstack-swift16:54
notmynamemordred: I sent you an email last week taking you up on your offer to do the first swift-spec commit with the infra-required boilerplate. will you be able to get to that this week?17:00
*** nsquare has quit IRC17:01
*** byeager has quit IRC17:01
mordrednotmyname: sure nuff17:02
notmynamemordred: thanks17:02
*** baojg_ has joined #openstack-swift17:04
*** annegent_ has joined #openstack-swift17:05
*** annegent_ has quit IRC17:05
openstackgerritDonagh McCabe proposed a change to openstack/swift: Add swift-checker utility for use by monitoring tools  https://review.openstack.org/9996117:05
*** annegent_ has joined #openstack-swift17:06
*** baojg has quit IRC17:07
*** shri has joined #openstack-swift17:14
*** mmcardle has quit IRC17:18
*** annegent_ has quit IRC17:26
*** baojg_ has quit IRC17:30
*** kevinc_ has quit IRC17:31
*** byeager has joined #openstack-swift17:32
*** nsquare has joined #openstack-swift17:33
*** annegent_ has joined #openstack-swift17:35
*** byeager has quit IRC17:41
*** kevinc_ has joined #openstack-swift17:42
claygmorning17:43
claygpeluse_: has someone volunteered to do the sed replace of POLICY[_INDEX] with X[-Backend]-Storage-Policy[-Index]?17:43
claygpeluse_: can i volunteer you?  I probably won't get around to it for a couple of days17:44
claygcreiht: on the list endpoints api thing - I don't want to make the redirect... well I just don't think it will work on all clients - so it seems like it should be able to turn off17:44
creihtclayg: yeah I understand17:44
creihtnot sure if you can just turn it off?17:45
claygcreiht: but I also don't really want /endpoints/ to just... "always" respond /v1 - it seems useless to clients from a discoverability perspective to push them to the old version17:45
creihtahh17:45
claygcreiht: i like /endpoints/v1/ and /endpoints/v2/ to both be there and work17:45
peluse_clayg:  you bet17:45
claygcreiht: the only question is what to do with /endpoints/17:45
peluse_clayd:  what was the final verdict wrt what to call them?17:45
claygpeluse_: string literals for the headers like every other header in the book17:46
creihtclayg: yeah17:46
peluse_clayg:  no sweat17:46
claygcreiht: i sorta had the mind that if we had *started* with the /v2/ response I wouldn't even be doing this whole version dance - which is why i sorta had this notion that some deployments might just make /endpoints/ point to v2 and happyily go on like that for years... but OTOH i get your point about differences between deployments - if someone did "swift ring api bindings in ruby" and they only work with /endpoints/ that re17:47
claygcreiht: dunno if that cut off17:47
claygcreiht: so I like the idea that maybe /endpoints is a redirect - then *most* client authors will pick the format they want and ask for it as /v2 or /v117:48
claygcreiht: but for legacy clients /endpoints *has* to be able to respond /v1 - it's like a "redirect_api = None" sorta situation... idk17:48
* clayg is just babbling cause he doesn't know what the right answer is17:49
claygfucking tradeoffs17:49
*** byeager has joined #openstack-swift17:49
claygpeluse_: THANKS!17:49
claygcreiht: anyway, the {'endpoints': [], 'headers', []} thing for the /v2 responses seemed like a good idea - i'll definately do that17:50
claygnotmyname: torgomatic: i'm also working on a patch to make the reconciler scale sorta like what we did with the expirer - but it's a little trickier because you don't want objects to just get "skipped" for long periods if the queue isn't very deep or one of the reconciler process = N is down17:51
claygnotmyname: so I just abandon all the other pending storage policies reviews?  it doesn't look like that happened automatically when it got merged last week17:52
claygtorgomatic: any other cores in channel that might want to look at adding the x-backend-storage-policy-index header to the additional_info in the object server logs?17:53
notmynameclayg: not yet. mordred had some ideas on how to get those actually marked as merged in gerrit. that's the first thing to try.17:53
torgomaticclayg: yeah, it gets tricky; you gonna have two sync points like container sync does?17:53
notmynamemordred: but on that (the gerrit patches) something needs to happen soon so that we can get them out of the way for reviews17:54
claygtorgomatic: on the scaling thing?  nah, i wasn't thinking that exactly.  what you mean in the db's or for the queue?  the reconciler is a lot more like the expirer that container sync17:54
mordrednotmyname: nod17:54
notmynamemordred: thanks17:54
notmynamemordred: if you're choosing between the gerrit reviews and swift-specs to do first, the gerrit reviews are more important17:55
notmyname:-017:55
notmyname:-)17:55
creihtclayg: sorry lost my network connection17:55
torgomaticclayg: yeah, I was just thinking of how the container sync guy has the two windows; first he does his work, and then he does everyone else's old work17:55
*** kevinc___ has joined #openstack-swift17:56
claygtorgomatic: oh yeah that part is gunna be sorta similar in that regard, but it'll be doing the if hash(queue_entry) % processes != (some subset of process N that i'm working on this cycle): skip sorta dance17:56
creihtclayg: part of me wonders how many people use the endpoints stuff17:57
claygnotmyname: mordred has a small army of clones for these types of multi-tasking events17:57
creihtI think a short term, would be go /v1 and /v2 and have endpoints/ be a copy of /v1 for now17:58
creihtand document that endpoints/ is deprecated17:58
claygcreiht: probably just zerovm - but I'm not sure if that's an excuse to do something stupid - seems like it's a decent exercise in how to revise un-versioned apis?17:58
claygcreiht: that's pretty close to how I'm leaning i suppose17:58
creihtthen we can move at a later release to remove that17:58
creihtcool17:58
creihtwe do the best we can17:58
creiht:)17:58
creihtthe other problem is that /v1 isn't going to work with clusters that haven't upgraded yet17:59
creihtso it makes it difficult for clients17:59
claygcreiht: alright well let me get that working at least and then if anyone has a better idea before too long we could go and try that too17:59
claygcreiht: ack17:59
notmynameclayg: creiht: soo (good|bad) news is that I found another user of /endpoints :-)18:00
notmynamebeyond pconstantine at zerovm18:00
creihthah18:00
creihtwell the hadoops integration uses it right?18:00
notmynamegil (gvernick -- don't remember exactly) is using it with apache spark for hadoopy-style stuff18:01
notmynameclayg: right18:01
*** jamiehannaford has quit IRC18:01
*** kevinc_ has quit IRC18:01
notmynamebut the good news is that he's normally in here18:01
notmyname(gil at IBM Haifa)18:01
creihtnotmyname: well the real bad news, is we really can't know how many people us it18:01
creihtuse it18:01
notmynameof course18:01
creihtbut either way, I think what clayg will be doing will work18:02
notmynameyes. agreed18:02
notmynameclayg: +118:02
creihtjust have to make sure we communicate it well18:02
*** mkollaro has quit IRC18:02
creihtso that we don't catch anyone off guard18:02
claygoh it's so weird to type 'git rebase -i master' and only see one change - i sorta had to remember how to do swift branch based workflow after doing the rebase changes into a chain based workflow for three weeks18:03
notmynamecreiht: this actually sounds very similar to the transition RAX had to do with moving auth to v2+ for new regions18:03
claygcreiht: clients make everything harder, it's easy to write software no one uses18:03
dmsimardnotmyname, creiht: Damn, I didn't even notice Mirantis linked to my article. That's an accomplishment for me :O18:03
*** jamiehannaford has joined #openstack-swift18:03
creihtclayg: lol18:03
creihthaha18:03
dmsimarder, s/accomplishment/achievement/18:03
notmynamedmsimard: badge unlocked18:04
torgomatichaving a middleware whose job is to expose internal data structures really does make it hard to maintain compatibility18:04
creihtdmsimard: one step closer to the stackerati18:04
claygtorgomatic: well and having it expose it w/o a version in a sturcture that you can't add data to...18:04
torgomaticclayg: true; that certainly doesn't help18:05
claygcreiht: is that like a car you win for being a openstack fanboy?18:05
creihthaha18:05
notmynameemacs users rejoice. vim commands in openstack source files considered harmful. https://review.openstack.org/#/c/101969/18:07
* notmyname throws gasoline on the fire18:07
creihtlol18:07
torgomaticM-x erc-part-from-channel18:08
*** elambert has quit IRC18:13
*** zz_wasmum is now known as wasmum18:15
openstackgerritpaul luse proposed a change to openstack/swift: Minor Updates to Storage Policy Docs  https://review.openstack.org/10170518:15
*** elambert has joined #openstack-swift18:15
peluse_clayg:  OK, about to enter formatting hell... header replacement underway.  If you don't hear back from me in 10 hours call the paramedics :)18:16
*** occupant has quit IRC18:17
claygpeluse_: understood18:17
notmynameproposed idea of how to re-use the feature/ec branch (for actual ec work): tag the current HEAD of feature/ec as storage-policies-historical, then delete/recreate feature/ec off of current HEAD of master18:19
notmynamegholt: note I said HEAD of <branch>, not tip ;-)18:19
*** nthacker_ has joined #openstack-swift18:19
notmynameclayg: peluse_: ^^ sound ok for banch management?18:20
peluse_notmyname:  works for me18:21
*** nthacker__ has quit IRC18:22
*** zaitcev has quit IRC18:25
claygnotmyname: i like the delete part, everything else seems ok - but I think portante was on to somehting calling the branch for doing ec work 'feature/sp'18:30
rookhey guys, is this the correct header to set account listing (list of containers) for a user?    swift stat | grep X-Ac   ===>  Meta X-Account-Read: eu1prdimgsrvtenant:eu1prdimgsrvread0118:31
notmynameclayg: peluse_: doesn't look like I can push tags to gerrit for swift (I can for swiftclient), so I'll try to find someone with the proper perms to do it18:32
portanteclayg: yes!18:33
*** toolslive has quit IRC18:34
*** zaitcev has joined #openstack-swift18:35
*** ChanServ sets mode: +v zaitcev18:35
notmynamepeluse_: hmm..what will it take to get tushar and kevin on IRC normally? :-)18:39
peluse_notmyname: cold hard cash I'd bet :)18:40
notmynamepeluse_: that tends to work well for most people :-)18:40
torgomaticis master still frozen, or are we merging stuff again?18:40
peluse_notmyname:  seriously, tsg is usually lurking and will obviously become more active once he posts to gerrit...18:41
creihttorgomatic: let it go... let it go...18:41
creihtsorry, couldn't resist :)18:41
notmynametorgomatic: unfrozen. merge away18:41
torgomaticcreiht: hey, I'll have you know I've only had to hear songs from that movie *twice* today! :)18:41
creihthaha18:42
notmynamewanna build a snowman?18:42
creihtwhat's one more?18:42
creihthttps://www.youtube.com/watch?v=Pa-qgRasdvc18:43
creiht:)18:43
*** wasmum is now known as zz_wasmum18:43
notmynamecreiht: wow18:43
creiht:)18:43
*** j_king has joined #openstack-swift18:45
notmynamepeluse_: there is some concern with PyECLib from upstream packagers that needs to be addressed. Kevin and Tushar are the points of contact, right?18:45
peluse_notmyname:  correct18:46
notmynameack18:46
creihtbar18:46
peluse_tushar has already had some discussions there (fyi)18:46
tdasilvacreiht, torgomatic: even pearl jam is singing it: https://www.youtube.com/watch?v=kBPRVUG0kiQ :P18:47
creihthehe18:48
peluse_that made the Today show this morning18:48
*** zz_wasmum is now known as wasmum18:50
gholtnotmyname: Nicely done, you're learning git! ;)18:52
notmynamegholt: one day I'll figure out all this new technology18:52
*** mkollaro has joined #openstack-swift18:53
*** miqui_ is now known as miqui18:53
*** jamiehannaford has quit IRC18:56
*** tdasilva has quit IRC19:01
*** wasmum is now known as zz_wasmum19:05
claygrook: missed your question earlier, i'm not sure i understood - but account acl's don't ever use X-Acount-Read, it's X-Account-Acl: <json> all the time19:10
*** esmute has quit IRC19:10
*** byeager has quit IRC19:11
claygrook: one of the keys in <json> is "read_only": ["list", "of", "users"]19:11
rookclayg: ah TY - trying it19:12
rookclayg:  like this?  swift post  'X-Account-Acl: {"read_only": ["eu1prdimgsrvtenant:eu1prdimgsrvread01"]}'19:16
claygrook: maybe a -H 'X-Account-Acl:{"read_only": ["eu1prdimgsrvtenant:eu1prdimgsrvread01"]}' - not sure i recal19:17
*** esmute has joined #openstack-swift19:25
*** zz_wasmum is now known as wasmum19:26
*** kevinc___ has quit IRC19:28
wasmumwow the scroll back of today, lead me to PJ singing Let it go...  not half as good as my 4 year princess though, sorry Eddie19:38
rookclayg:  https://gist.github.com/anonymous/cd85783452b73e0d62fa    did I add the ACL correctly ?19:38
claygrook: yeah the X-Account-Acl header is like normally sanitized somewhat... but your users don't have auth prefixes... are you using keystone?19:39
rookyes19:39
claygrook: i don't think keystone supports account-acls'19:40
rookbummer19:40
claygrook: acctually i'm sure it doesn't, but I'm saying "I don't think" incase i'm wrong19:40
notmynameclayg: it doesn't yet19:41
claygrook: i'm curious though - what's your use case for account acl's and keystone - most keystone folks seem to think that's all better handled by the auth system (not that keystone or keystone_auth in swift supports that either)19:41
rookYeah, my customer insists on using keystone because they are going to implement the rest of the openstack stack.  swift is just their first deployment19:42
claygrook: well i say keystone doesn't support it - the roles and policies stuff is pretty flexible - I think if keystone_auth was smarter you could come up with some sort of keystone-client command that you could send to keystone to make a user have read only access to another user's account in swift19:42
rookclayg:  TY, will start digging19:43
claygrook: good for them!19:43
*** jamiehannaford has joined #openstack-swift19:43
claygrook: ok, container-acl's work in keystone_auth like you might expect tho...19:43
notmynameya, in the next few months we need to get account-acl support into the keystone middleware, I think. rook, I'd love it if you could help contribute code for that!19:43
claygnotmyname: last I talked with acoles he didn't really think account-acl's in keystone_auth was worth pursing, otherjon also sorta had the notion that policies and roles support in keystone auth would be more interesting19:44
notmynameah19:44
claygnotmyname: I persaonlly don't much care for policies and roles - and think it'd be way better from a swift clint perspective if keystone_auth was extended to do swift account acl's the way other auth middlewares that don't have a seperate "idenity api" are going to work.19:45
notmynameclayg: hmmm..that doesn't immediately make sense to me. I'll need to bug them on it and think it over. why wouldn't swift store account acl roles like it does for containers?19:45
notmynamebut acoles and otherjon have been working and thinking about keystone a _lot_ more than I have19:46
claygnotmyname: I think at the fundemental level swift accounts (and their authorization) aren't discoverable - where as keystone already has a record of every account, so unlike say... ldap intergration... there's no reason you can't just update the keystone database for the account everytime you want to grant someone access19:47
notmynameI'll begrudgingly not argue there. It doesn't sound great, but my rebuttal isn't very good either :-)19:49
claygnotmyname: I think it'd be fine to have both, but at some level the lack of auditability of swift's account acls is sorta problematic for security teams (we try not to tell them we already have container acl's - sshhhhhh)19:49
claygrook: oh hey, btw, that traceback looks terrible - can you repeat that request with curl and capture the raw swift response?19:50
notmynameclayg: ya, but at that point, you pretty much have the same argument of directory permissions (or ACLs) on a filesystem. (thanks for that analogy creiht)19:50
rookclayg: ok19:51
notmynameeg you can't really ask a filesystem "show me all the directories that I have access to". same with swift, currently19:51
claygnotmyname: oh yeah i agree, and looking into "all the servers" and checking the pam_ldap.conf is somehow more palitable than doing a HEAD on every account?  idk, i like account acls' - but i assume that you want the people creating the data in charge of who has access to it19:52
rookhttps://gist.github.com/anonymous/721acee68786093b784319:54
claygoh gawd keystone tokens...19:55
creihtlol19:55
rooklol - sorry19:55
notmynamelol19:56
claygrook: anyway that 403 looks pretty reasonable, and basically what you'd expect from an auth system that doesn't support account acls - so... i wonder why the client choked so hard?19:56
rookclayg:  yeah, haven't gone thru the stack - too many other things on the plate atm19:56
*** foexle has quit IRC19:56
*** psharma has quit IRC19:58
*** miqui has quit IRC19:58
claygrook: yeah np, thanks for what you got - if you're still feeling like super charitable you could file a bug at https://bugs.launchpad.net/swift/+filebug19:59
*** kevinc_ has joined #openstack-swift19:59
openstackgerritpaul luse proposed a change to openstack/swift: Replace POLICY and POLICY_INDEX with string literals  https://review.openstack.org/10199119:59
claygrook: i guess I could just copy/paste your gist, might be good enough if someone has a devstack/keystone/swift setup rockin'19:59
openstackgerritClay Gerrard proposed a change to openstack/swift: Add v2 API to list endpoints middleware  https://review.openstack.org/10166520:02
*** wasmum is now known as zz_wasmum20:05
*** zz_wasmum is now known as wasmum20:06
*** occupant has joined #openstack-swift20:10
rookclayg:  I'm stuck in a infinate loop choosing a password for a new launchpad account :/ grr20:15
*** acoles has quit IRC20:16
claygrook: wtf, oh many i'm so sorry :(20:18
rooklol - workin on it20:18
notmynamepeluse_: clayg: SAIO running unittests. swift.conf has 3 policies (0,1,2), policy 2 is default, none are deprecated. unittests fail (can't find object-2.ring.gz). is that expected?20:20
peluse_did you create the ring file?20:24
rookclayg: https://bugs.launchpad.net/swift/+bug/133340920:25
notmynamepeluse_: I've got rings for all those (eg swift works). but those rings are in /etc/swift. it fails in test_wsgi because(?) _fake_rings() only creates 2 rings in the tmpdir. but maybe the test is getting code from swift.conf too?20:26
notmynamepeluse_: ie I think that the tests are getting config overlap from /etc/swift and not handling it properly in the test framework20:27
peluse_notmyname:  yeah, OK that's probably a real problem.  Have dealt with a bunch of those kinds of things, will take a look... give me a min20:27
notmynamepeluse_: no particular rush yet. just something I noticed just now20:28
notmynamethanks20:28
*** joeljwright has quit IRC20:31
*** wasmum is now known as zz_wasmum20:31
notmynametorgomatic: I'm looking at https://review.openstack.org/#/c/93780/ (which you gave a +2 to), and I don't see how the new code path is actually tested. but maybe I'm missing something about mocking (likely)20:34
torgomaticnotmyname: it's not really tested that well, but it's like... pass this flag to this library so that $thing-under-swift happens20:36
*** zz_wasmum is now known as wasmum20:37
notmynametorgomatic: I get the mechanism20:38
otherjonnotmyname: clayg: rook: it seems to me that while tracking "everything I can access" is a difficult problem, it's the auth middleware's problem rather than core Swift's -- someone could write middleware that intercepted every PUT/POST, checked if account ACLs were being set, updated a canonical source of truth which mapped auth groups (not users, not accounts) to access locations (accounts or containers), solved the problem of replicating tha20:38
otherjont source of truth, etc.20:38
otherjonwouldn't be easy, but it's not a swift limitation20:38
claygnotmyname: notmyname did you really just ask if failing unittests are "expected"??!?20:38
notmynametorgomatic: just that the mock for inspect is just there to make it not break, rather than actually testing it. in fact (just confirmed) the patch doesn't touch line 346 (the one that's actually doing the thing)20:38
notmynameclayg: lol. no, failing if more than 2 policies are defined in swift.conf expected to cause failure20:39
claygnotmyname: sounds like the same question to me, the @patch_policies thing is something folks writing tests are gunna have to get used to... don't know exactly what form of failure your describing20:40
claygbut either something is messed up or you messed something up, dunno20:40
notmynameclayg: nah that's not it in this case. I think peluse_ confirmed that it's unexpected and was looking further in to it20:40
claygnotmyname: yeah i mean tests shouldn't look at swift.conf or anything in /etc/swift really - but they do sometimes if you forget to mock something...20:41
claygmock/patch w/e20:41
claygnotmyname: oh, i guess if swift.conf exists and is not valid import swift might fail - so you could get failing tests that way20:42
claygnotmyname: it'd be like a test that calls hash_path but doesn't patch endcap or something20:43
notmynameclayg: ah, it may be a missing decorator somewhere. the failing test (testing the wsgi pipeline mutating) isn't decorated20:43
claygnotmyname: idk ring loading doesn't normally happen at import time though20:43
claygnotmyname: oh, well then that's probably it - probably again assuming your swift.conf isn't valid to acctually start a wsgi server in the first place?20:44
notmynameswift.conf is valid20:44
claygnotmyname: still highlights a dependency on the the test and /etc/swift which is generally bad20:44
notmynameright. I think that was my point or question20:44
notmynameclayg: also, just to clarify, if no policy is set as default (eg I have 0 and 1, both with rings and a name set), then policy 0 is set as default, right? this is what I expected, but I get a "no default set" error20:45
claygnotmyname: docs say if you define more than one policy you have to specify a default20:45
notmynameclayg: ah, gotcha. thanks20:45
notmynameclayg: which is exactly what I'm seeing. so that's good :-)20:46
claygnotmyname: and I still don't think "a dependency on the the test and /etc/swift which is generally bad" is a question20:46
peluse_sorry, was off on a call.  so easy to repro - I'll go ahead and take care of it unless you've already fixed it20:47
notmynamepeluse_: getting a repro right now, but I haven't looked in to a patch yet20:48
*** kevinc_ has quit IRC20:53
peluse_notmyname:  yeah. missing decorators on a few functions20:54
notmynamepeluse_: ah ok20:54
notmynamepeluse_: is that jsut @patch_policies?20:55
peluse_notmyname:  in need of one more tweak as well but yes that's the one that's missing.20:55
notmynamepeluse_: ah ok. then if you've already solved it (and I'm jsut locally testing what you're saying) can you submit it? unless you don't even have your editor open, I can do it20:56
*** jamiehannaford has quit IRC20:57
*** miqui has joined #openstack-swift20:57
peluse_the one additional tweak is in _fake_rings() btu yes I'll go ahead and submit it.  Need a few more min to scrub and do some additional testing20:57
notmynamepeluse_: https://gist.github.com/notmyname/2e3e682e743aa0fa1d3621:01
*** dmsimard is now known as dmsimard_away21:01
notmynamepeluse_: same with or without _fake_rings() patches21:01
notmyname*patched21:02
claygnotmyname: ew... that one has to do with the mocked policies caching rings between tests, sort of a failing of the class level patch polies21:02
peluse_notmyname:  the tweak isn't to patch _fake_rings(), its currently incorrect in its used of declaring a local policy collection21:03
notmynameoh21:03
notmynamemakes sense21:03
claygpeluse_: who's _fake_rings()?21:03
notmynameclayg: test_wsgi.py21:03
*** annegent_ has quit IRC21:04
* notmyname is starting to think he won't get everything done today that he wanted to do21:06
claygnotmyname: peluse_: meh, patch_policies should probably create new policies each time instead of reusing the same muted globals - what a pita21:07
claygmutated21:07
peluse_claygg: will propose something shortly.... see whatcha think21:08
*** byeager has joined #openstack-swift21:14
openstackgerritJoel Wright proposed a change to openstack/python-swiftclient: Add importable SwiftService incorporating shell.py logic  https://review.openstack.org/8545321:19
*** wasmum is now known as zz_wasmum21:22
*** byeager has quit IRC21:26
* notmyname steps away for a while21:30
*** kenhui has quit IRC21:34
*** rook has quit IRC21:41
*** kevinc_ has joined #openstack-swift21:47
*** pconstantine_ has joined #openstack-swift21:50
*** jamiehannaford has joined #openstack-swift22:02
*** zz_wasmum is now known as wasmum22:05
openstackgerritJoel Wright proposed a change to openstack/python-swiftclient: Add importable SwiftService incorporating shell.py logic  https://review.openstack.org/8545322:08
*** wasmum is now known as zz_wasmum22:08
*** zz_wasmum is now known as wasmum22:20
*** wasmum is now known as zz_wasmum22:21
*** pconstantine_ has quit IRC22:25
*** pconstantine_ has joined #openstack-swift22:29
mattoliverauMorning everyone23:00
* notmyname is back for a bit23:02
*** dmsimard_away is now known as dmsimard23:03
*** jamiehannaford has quit IRC23:04
openstackgerritpaul luse proposed a change to openstack/swift: Fix issues with test_wsgi.py and Storage Policies  https://review.openstack.org/10205223:05
notmynamepeluse_: looking (thanks)23:06
peluse_notmyname: no prob.  turned out to be a little more of a PITA than I thought so hopefully it passes for you as well and you and/or clayg can double check the imp changes also23:08
* peluse_ heading home...23:09
notmynamepeluse_: in your updated test_loadapp_proxy()23:09
notmynamepeluse_: is overriding POLICIES and then not setting it back going to cause problems?23:10
notmynamepeluse_: ah, nm. it's ok because _fake_ring resets it23:11
notmynametests pass23:11
shriFolks… Consider that I have swift cluster deployed with multiple regions. Is there a way for the client to write data to a specific region?23:26
notmynameshri: are the regions independently addressable?23:27
shrinope23:27
notmynameie do you have a unique domain/IP endpoint for each?23:27
notmynameshri: your using one domain/IP for each and eg use DNS to route to the "closest"?23:27
shriactially, right now this is just slideware.. but yes, I could either use DNS to route to the closest or have separate IPs for each.23:28
shri*actually23:28
notmynameok, there's two solutions then :-)23:29
notmynameshri: you could also look in to Swift's write and read affinity settings23:29
*** acoles has joined #openstack-swift23:30
*** ChanServ sets mode: +v acoles23:30
notmynameshri: ie http://docs.openstack.org/developer/swift/admin_guide.html#geographically-distributed-clusters23:30
shriyeah… I'm seeing just those. but then those settings are at the swift proxy config level. When a client writes, it will directly send the http request to the swift endpoint23:30
notmynameshri: right. which is a proxy server23:30
notmynameshri: you'll have proxy servers everywhere23:30
shrioh…23:30
notmynameshri: eg https://swiftstack.com/blog/2012/09/16/globally-distributed-openstack-swift-cluster/23:31
shriso I can have proxy servers in each region and clients will simply write data to the proxy server closest to them23:31
notmynameshri: it's slightly more complicated than that. read over those two links first23:31
shriok .. :-)23:31
notmynameshri: and now that storage policies are merged (as of last friday) you could create a policy for each region. but you won't find a lot of docs online for that yet--it's not even released yet (still in QA)23:32
shrisure… let me go through this and understand it first. will come back with more questions!23:33
*** annegent_ has joined #openstack-swift23:38
mattoliverauWhile questions are flying around, last night (my time) a question came up in channel, so I thought I'd ask the experts the answer so I can help them tonight (after you all go to sleep). The question was about reseller_prefix's, this guy wanted to change the reseller-prefix but the account databases have the old one set. So how does one go changing the reseller prefix.. according to some old answers23:38
mattoliverauon lauchpad, there used to be a swift-auth-update-reseller-prefix cli tool. Is this possible any more? If not would they have to load the requred middle ware again with a different prefix and migrate or can swift do something magic?23:38
notmynamemattoliverau: I don't remember that tool, but it seems like a pretty hard thing to change. the reseller prefix is used as part of the hash for placement, so _every_ thing (account, contianer, and object) would have to be rehashed23:39
*** elambert has quit IRC23:40
*** mkollaro has quit IRC23:40
torgomaticthe moral of the story: even if you're 100% sure that your cluster will never be used for anything, don't make your reseller prefix "BUTT_"23:40
notmynametorgomatic: what's that transid suffix you have?23:41
torgomaticnotmyname: exactly :)23:41
notmynamelol23:41
* notmyname out again for a while23:42
mattoliveraulol, fair enough, thanks guys. Good to have an extra peice of the puzzle and have a definitive answer for them :)23:45

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