/srv/irclogs.ubuntu.com/2014/05/06/#juju-dev.txt

jammorning all04:37
=== stokachu_ is now known as stokachu
=== vladk|offline is now known as vladk
vladkjam: morning06:45
jammorning vladk. note that you probably don't have to work today, since you should get 2 swap days for travelling. (at least, I don't think you've taken both days yet)06:46
vladkjam: yes, I am still recovering today06:46
jamvladk: how was your flight back? (uneventful I hope)06:47
vladkjam: all was fine06:49
jamvladk: good to hear. Are you suffering from jetlag at all?06:50
vladkjam: unfortunately yes, I terribly want to sleep now06:51
jamvladk: ouch. I know for me the best way to switch is on the flight itself. For some reason I can generally force myself to rest at the appropriate sleeping time of the destination, and that really helps reset my clock.06:52
jamif that doesn't work, then make sure you get sunshine when you can, as I've heard that helps, too.06:52
vladkjam: sunshine is good, but it's rain now in Moscow and only +406:54
=== vladk is now known as vladk|offline
jammorning natefinch are you coming to the standup?10:46
jamI was hoping fwereade would show up, but he isn't on IRC10:46
jamthough he is responding to emails10:46
=== bodie_ is now known as Guest50187
=== bodie_ is now known as Guest46720
lazyPowerEy! I see a new line in juju status:     state-server-member-status: has-vote15:15
lazyPowerwhat is this magic?!15:16
lazyPowerdid we get quorem?!15:16
natefinchlazyPower: that's HA (high availability)15:20
lazyPowerahh ok. i thought that was crazy fast to land a quorem feature.15:21
natefinchlazyPower: if you're on a non-local provider, you can do juju ensure-availability -n 3 and it'll bring up two more state servers15:21
=== tvansteenburgh1 is now known as tvansteenburgh
lazyPowerahhh ok. was any mention of that posted to the list or changelog?15:21
natefinchlazyPower: you mean like leader election, or something else?  Not sure what quorem means wrt juju15:21
lazyPowernatefinch: leader election. there's a few charms in teh store that would benefit from that.15:22
natefinchlazyPower: it's on the roadmap, but yeah, not implemented yet.  Most of juju devs are still recovering from the sprint ;)15:22
lazyPowernatefinch: +1 from me for recovering15:23
lazyPowersorry for the excitement :P I saw that and was instantly energized to figure out what it's wrt15:23
natefinchlazyPower: as for announcing HA... I had thought there was an announcement, but possibly not.  That was one of the things we talked about during the sprint - better communication of what features we're working on and what we're releasing15:24
dimiternnatefinch, hey, are you the only one around at this time today? seems everyone is taking holidays15:25
lazyPowerright on. You guys are doing a bang up job. Thanks for rocking it15:25
lazyPowerdimitern: o/!15:25
dimiternhey lazyPower ;)15:25
natefinchdimitern: yeah, pretty much just me.  Everyone else gets two swap days.15:26
dimiternnatefinch, i'll post a review for you to see then shortly15:26
natefinchdimitern: cool.  How come you're not taking a second swap day?15:26
dimiternnatefinch, i think with some help from the server guys containers on ec2 can get addresses and talk to other instances and v.v.15:27
dimiternnatefinch, i'm in austin still15:27
dimiternnatefinch, but i'm taking next week of15:27
dimiternoff15:27
natefinchdimitern: ahh, didn't realize you were still in the US.15:27
dimiternnatefinch, yep, i've got my share of the us for this year i hope :)15:28
natefinchdimitern: a week in Vegas is enough of the US for anyone :)15:28
dimiternnatefinch, and denver, and now austin :)15:30
=== marcoceppi_ is now known as marcoceppi
sinzuibac, Orangesquad credentials and swift are happy again. I am still investigating bug 1312217. Make sure all envs have control-bucket and access-secret specified in environments.yaml to avoid breaking swift access16:18
_mup_Bug #1312217: open-stack provider breaks swift with standard config <openstack-provider> <juju-core:Triaged> <https://launchpad.net/bugs/1312217>16:18
=== Guest46720 is now known as bodie_
bodie_is there a way to get a unique ID for a mongo document through the transaction mechanism?16:57
bodie_for a new document*16:57
bodie_or do you just use the built in labix/mgo stuff16:57
bodie_I just don't want to step on any toes16:57
bodie_am I asking the wrong question?  is there somewhere obvious I'm not looking?17:09
jcw4bodie_: do you mean inserting a new document in a transaction and getting back a mongo generated id?17:10
bodie_right17:16
jcw4bodie_: the only way I see it maybe possible is using the txn.Runner ChangeLog17:16
jcw4bodie_: still looking17:17
natefinchbodie_: http://docs.mongodb.org/manual/tutorial/create-an-auto-incrementing-field/17:17
jcw4http://docs.mongodb.org/manual/tutorial/create-an-auto-incrementing-field/17:17
natefinchjcw4: too slow ;)17:17
bodie_right... but everything in the State document is dealt with through a special handler called txn17:17
natefinchbodie_: http://docs.mongodb.org/manual/reference/glossary/#term-objectid17:18
jcw4damnit no... I copied your link and accidentally pasted it in irc17:18
natefinchjcw4: heh17:18
bodie_ugh...   yes...  that's as in "do you just use the built in labix/mgo stuff"17:18
jcw4natefinch: :)17:18
natefinchbodie_: looks like the right way to do it is to let mongo set your id.  Which works unless you need to know the id before you commit17:18
jcw4so that would be using Upsert? or is it implicit?17:19
bodie_precisely, and since the ID is built into the document, I need to compose the transaction using that ID.17:19
jcw4natefinch: and if that is in a transaction then to retrieve that _id requires the changelog?17:19
bodie_or we need some other mechanism for generating a uuid for the Action documents17:19
bodie_I suppose one way would be to generate the document using a transaction, then look it up and upsert it with the ID that was generated for it.  but that seems so kludgy17:20
jcw4bodie_: you mean use the generated id in another document within the same transaction?17:20
natefinchbodie_: http://godoc.org/labix.org/v2/mgo/bson#NewObjectId17:21
natefinchbodie_: that's what you want to use17:21
bodie_I was hoping to use this http://paste.ubuntu.com/7405686/17:22
* bodie_ checks what natefinch said... was looking up how I'm doing it now17:22
bodie_okay, so we can bypass the transaction mechanism to use newObjectID?17:22
natefinchbodie_: they're not really related. The object Id is just a unique id.  You can set whatever you want as the document's _id as long as it's unique17:23
bodie_right, that's what I'm getting at lol17:23
bodie_I didn't see any other technique for coming up with a unique identifier except I guess a hash function or something17:23
natefinchbodie_: yes, you can use NewObjectId for the id and still use the documents in a transaction17:23
bodie_alright, thanks for the assist :)17:24
bacgood news sinzui17:26
sinzuinatefinch, bug 1316709 could be marked low (we don't think we will support linux mint series) or wont fix (we don't want to support linux mint in clouds) or invalid (The user could set default-series in the yaml)18:10
sinzuinatefinch, your thoughts?18:10
natefinchsinzui: likely the intent is just to use the client on mint, which seems reasonable. I think saying that they should set default-series is a good workaround.  I'd say won't fix with the default-series workaround is ok18:17
sinzuithank you natefinch18:18
dimiternnatefinch, quick & easy review? https://codereview.appspot.com/91150044/18:52
natefinchdimitern: sure18:54
dimiternnatefinch, ta!18:54
bodie_jcw4, I'm going to implement that test, so hopefully basics on Action will be good to go by EOD19:17
jcw4bodie_: cool19:17
dimiternnatefinch, thanks for the review19:24
natefinchdimitern: welcome19:24
thumpero/ menn021:11
menn0thumper: howdy :)21:12
* thumper goes to make a coffee so he can trawl email with coffee in hand22:04
dimiternthumper, menn0 hey ;)22:09
menn0dimitern: hi!22:17
thumperdown to under 300 unread work emails22:51
perrito666thumper: heh, I only am missing the review ones22:57

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