Wednesday, 2015-09-30

*** openstackgerrit has quit IRC00:01
*** openstackgerrit has joined #openstack-cue00:02
*** openstack has joined #openstack-cue00:03
*** abitha has quit IRC00:11
dkalleghey harlowja , looking into some zookeeper stuff, trying to use tooz to get a lock.  It asks for a connection string and a member id.  I'm not sure what the member id should be.  In my devstack deployment (with zookeeper) my /var/lib/zookeeper/myid is actually uninitialized.00:32
harlowjadkalleg hey00:33
dkallegvipul: tells me you might be able to help with zk stuff :)00:33
harlowjapossibly00:33
harlowjahaha00:33
harlowjaso myid in the var/lib dir is more of the zookeeper identifier for the zookeepr server (used when its in a cluster)00:33
dkallegok, so likely not related to the memberid00:33
harlowjathe memberid in tooz is the member 'name' of the client00:33
dkallegof what client?00:34
harlowjasorry, the tooz coordinator object u are fetching00:34
harlowjaits not really needed for locks though i think, but its required for group membership apis00:34
harlowjabut typically a uuid u make is fine00:34
harlowjawe (tooz folks) probably could make the member_id optional00:35
harlowjabecause for locks i don't think its used00:35
dkallegoh ok cool00:36
dkallegI did notice in the tooz tests that a random uuid is generated & passed in for the member id00:36
dkallegGreat, let me give it a shot with some random value.00:37
harlowjak00:37
dkallegThanks harlowja!00:37
harlowjacan u open a bug on https://bugs.launchpad.net/python-tooz 'something something don't need member_id for locks, don't require it'....00:37
harlowjathink it can be investigated and or made optional00:38
dkallegsure no problem00:40
dkallegalso, the get_lock() doesn't seem to be complaining, so I'll assume it worked00:40
harlowjawoot00:42
dkalleghm.. i even gave a bogus backend url in get_coordinator() then started & get_lock() and lock.acquired is True00:44
dkallegIs that expected?00:45
harlowjahmmmm, how bogus was the backend url, lol00:45
harlowjamedium bogus?00:45
harlowjaor very bogus?00:46
dkallegzake://444.444.444.444:218100:46
dkallegtried changing port too, same result00:46
harlowjaya, so zake pretty much ignores all the hostname, port00:46
harlowjasince zake is pretty much all local 'fake/mock' zookeeper00:46
harlowjapretty sure in that case only  zake:// is actually used (to figure out which driver to load)00:47
dkalleggave 'foobar' and it failed00:47
harlowjathe rest is just unsued00:47
harlowja*unused00:47
dkallegso zake://:2181 is really all it reads?  Whatever in the middle is stripped out?00:47
harlowjajust zake:// actually in this case00:47
harlowjathe rest is read, but not used00:48
dkallegok00:48
harlowjacertain drivers use different things from that url00:48
harlowjaprobably should have better docs on what is used from the url(s)00:48
dkallegSo that means there's a requirement that wherever you're running tooz must be on the same host as a zk node?00:48
harlowjanegative00:49
harlowjazake is a different one00:49
dkallegoh.  I'm still learning zake/zk/tooz :)00:49
harlowjazake basically mimics the kazoo (zookeeper client) api with a implmentation that doesn't actually talk to zookeeper00:49
harlowjazake version is mostly for testing (where no zookeeper can be ensured exists)00:49
dkallegoh! so if I want to get a lock from my running zookeeper service, I should not be using zake.  Is that so?00:50
harlowjau probably want zookeeper://localhost:2181 as the driver00:50
harlowjaright00:50
dkalleg:)00:50
dkallegfeel a bit silly now00:50
harlowjanp00:50
dkallegprogress!  Thanks, will go try that out00:50
harlowjacools00:50
harlowjahttps://github.com/openstack/tooz/blob/master/setup.cfg#L26 (Various drivers)00:51
harlowjazake is the special one in that group00:51
harlowja*more special* they are all special obviously, lol00:51
dkallegaha, this certainly seems to be working.  My oslo_service is also spitting out kazoo.client zookeeper connection CONNECTED / CLOSED00:52
harlowjathats good (hopefully, ha)00:53
harlowjaprobabaly don't make to many coordinators dynamically, since they each contain a client00:53
harlowjawhich consumes resources00:53
dkallegOk00:54
dkallegFor what I'm doing, I'll be trying to acquire a lock every 60s from 1 to 3 nodes, but I can keep the coordinator around so that I only ever create 1 to 3 coordinators at init time00:55
dkallegThanks a bunch!  Big help00:55
harlowjanp :)00:57
harlowjaand tell your friends, tooz is cool00:58
harlowjalol00:58
dkallegYou got it.  You guys have stickers?  haha, I'm all about the sticker01:01
dkallegs01:01
harlowjalol01:06
harlowjanot yet, perhaps we should get some, ha01:06
*** dkalleg has quit IRC01:15
*** HanSolace has joined #openstack-cue03:20
*** esmute has joined #openstack-cue04:27
*** dkalleg has joined #openstack-cue04:53
*** HanSolace has quit IRC04:54
*** dkalleg has quit IRC04:58
*** HanSolace has joined #openstack-cue05:01
*** HanSolace has quit IRC05:44
*** esmute has quit IRC05:46
*** jhesketh has quit IRC06:34
*** jhesketh has joined #openstack-cue06:35
*** dkalleg has joined #openstack-cue06:42
*** dkalleg has quit IRC06:46
*** dkalleg has joined #openstack-cue08:30
*** dkalleg has quit IRC08:34
*** dkalleg has joined #openstack-cue10:19
*** dkalleg has quit IRC10:24
*** dkalleg has joined #openstack-cue12:08
*** dkalleg has quit IRC12:12
openstackgerritVictor Stinner proposed openstack/cue: py3: Get urllib modules from six.moves  https://review.openstack.org/22913112:43
openstackgerritVictor Stinner proposed openstack/cue: py3: Replace unicode with six.text_type  https://review.openstack.org/22913012:55
*** dkalleg has joined #openstack-cue13:57
*** dkalleg has quit IRC14:01
*** sputnik13 has joined #openstack-cue14:47
*** HanSolace has joined #openstack-cue14:56
*** sputnik13 has quit IRC15:14
*** sputnik13 has joined #openstack-cue15:16
*** HanSolace has quit IRC15:16
*** dkalleg has joined #openstack-cue15:46
*** dkalleg has quit IRC15:50
*** ViswaV has joined #openstack-cue15:58
*** ViswaV has quit IRC16:02
*** ViswaV has joined #openstack-cue16:03
*** ViswaV has quit IRC16:35
openstackgerritVictor Stinner proposed openstack/cue: py3: Get urllib modules from six.moves  https://review.openstack.org/22913116:37
*** harlowja has quit IRC16:52
*** dkalleg has joined #openstack-cue17:06
*** abitha has joined #openstack-cue17:07
*** abitha has quit IRC17:19
*** abitha has joined #openstack-cue17:20
*** abitha has quit IRC17:24
*** abitha has joined #openstack-cue17:25
*** abitha has quit IRC17:27
*** abitha has joined #openstack-cue17:28
*** ViswaV has joined #openstack-cue18:05
*** ViswaV has quit IRC18:09
*** ViswaV has joined #openstack-cue18:10
*** harlowja has joined #openstack-cue18:13
*** openstackgerrit has quit IRC18:16
*** openstackgerrit has joined #openstack-cue18:17
*** openstackgerrit has quit IRC18:46
*** openstackgerrit has joined #openstack-cue18:47
*** ViswaV has quit IRC19:12
*** HanSolace has joined #openstack-cue19:46
*** sputnik13 has quit IRC20:04
*** ViswaV has joined #openstack-cue20:20
*** ViswaV has quit IRC20:24
*** ViswaV has joined #openstack-cue20:25
*** sputnik13 has joined #openstack-cue20:32
*** dkalleg has quit IRC20:45
*** ViswaV has quit IRC21:52
*** ViswaV has joined #openstack-cue21:56
*** ViswaV_ has joined #openstack-cue21:58
*** ViswaV has quit IRC22:00
*** dkalleg has joined #openstack-cue22:33
*** dkalleg has quit IRC23:12
*** dkalleg has joined #openstack-cue23:13
*** dkalleg has quit IRC23:15
*** HanSolace has quit IRC23:48

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