/srv/irclogs.ubuntu.com/2014/04/25/#juju-dev.txt

=== ev_ is now known as ev
=== allenap_ is now known as allenap
=== vladk|offline is now known as vladk
voidspacemorning all08:37
voidspacewwitzel3: ping09:16
natefinchvoidspace:  standup?10:47
voidspacenatefinch: coming10:47
jam1fwereade: do you think authorized-keys is worthy of 1.18?10:57
fwereadejam1, I don't see that it'll hurt, and it's nice to get consistency fixes in early imo10:57
jamperrito666: did you get a chance to file the "juju-restore depends on mongodb-clients" ?11:01
jambug11:01
perrito666jam1: nope, sorry I was up until very late hooked on the (what I believe is) las bug from restore11:04
perrito666natefinch: I will go get something caffeinated an then ping you11:07
natefinchperrito666: ok11:08
fwereadevoidspace, wwitzel3: hmm, it kinda looks as though we only update the addresses on login, and we don't have any sort of watcher on them11:14
voidspacefwereade: ah11:14
voidspacefwereade: I'm pretty sure we update some mongo document as new state servers come up, and we may even have a watcher already for that11:15
voidspacefwereade: just somewhere else11:15
voidspacefwereade: we'll be needing this shortly, but not *right now*11:16
voidspaceso we'll circle back to it11:16
voidspaceit's  StateServingInfo I was thinking of - I'm not sure that's what we need11:21
voidspacealthough there's also StateServerInfo11:22
psivaajam1: hey sorry to bother you, with juju-1.19.1-trusty-amd64, i see http://pastebin.ubuntu.com/7329106/11:28
psivaai was hoping to pick the fix for bug 130876711:28
perrito666natefinch: back11:31
natefinchperrito666: hey11:36
* perrito666 is properly caffeinated11:36
natefinchso, it's really unfortunate that the backup and restore stuff is a bash script and not a Go program, becausew then you could just reuse the code we already have for dealing with replicasets.  But anyway, it's easy enough to do via command line11:37
perrito666natefinch: well, such is my luck :p11:37
natefinchperrito666: hopefully we'll fix it later, but for now I guess we have to deal with it as-is.11:38
perrito666basically, after loading the dump, mongo keeps yelling11:38
perrito666replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG)11:38
perrito666among other things11:38
natefinchyeah, that means the replicaset config is incorrect11:38
natefinchwhich is not surprising, since it'll be referencing IP addresses that don't exist anymore11:39
perrito666yup11:39
natefinchyou can use the mongo client and give it either javascript in the command line or javascript from a file to run11:39
perrito666ill go with the client, that is what i being done o far for the rest11:40
natefinchperrito666: what you want to call is rs.reconfig() and pass it a document with the right IP addresses11:42
natefinchperrito666: http://docs.mongodb.org/manual/reference/method/rs.reconfig/11:42
perrito666taking a look11:45
natefinchperrito666: the document you pass to it should look something like this one: http://docs.mongodb.org/manual/reference/replica-configuration/11:46
natefinchperrito666: ideally we'd read out the old config, fix up the IPs, and reset it with the IPs being the only things different, but I'm not sure if we can even get the old config out of it11:47
perrito666mmm, something tell me that I will need to export that in the backup first11:47
perrito666heh11:47
natefinchperrito666: exporting it during backup is an excellent idea.  Hadn't thought of that11:47
perrito666I mean, if the replset has more members I would be loosing them if I dont backup that explicitly11:48
perrito666right?11:48
natefinchperrito666: right.  Definitely it's a good idea to back up the replset config on its own, because you'll need to fix it up before you can connect to the database properly11:48
natefinchperrito666: the nice thing is, is that we tag each replica entry with the machine ID, so we can correlate the entry with the machine's new IP address11:49
natefinchbrb11:55
natefinchback12:08
perrito666jam1: any form of you around here?12:44
perrito666anyone knows if I can report a bug and say "affects this, this and this" (and how exactly, I dont see that option on the submit form)12:46
fwereadeperrito666, not sure quite what you're asking12:55
fwereadeperrito666, filing a single bug with multiple not-obviously-connected consequences?12:55
fwereadeperrito666, offhand I would be inclined to file the consequences separately and immediately mark them all dupes of the real cause, but this is really just a guess12:56
perrito666fwereade: nope I need to file a bug because backup/restore requires mongodb-clients and jam suggested I should include juju-mongodb package and juju-core in the report12:56
fwereadeperrito666, ah, once you've filed it there's an "also affect project" link12:57
* perrito666 is about to bash hi head on the kb if his keys keep failing12:57
fwereadeperrito666, maybe there's one on the report-a-bug page too, not sure12:57
perrito666fwereade: tx, I never added dependencies to my bug reports before :)12:58
coreycbjuju get is returns 'default: true' for every option as far as I can tell.  is that a known bug?13:07
coreycbjust 'juju get' (no is)13:13
fwereadecoreycb, so you've explicitly set some config options and its still saying they're set to the defaults? that surely does sound like a bug13:22
coreycbfwereade, yeah so for example 'juju get mysql | grep default' returns 'default: true' for everything, even if it has 'type: int'13:24
coreycbunless I'm misinterpreting the meaning of default13:24
coreycbit doesn't correspond to the config.yaml default values, at least13:25
fwereadecoreycb, the type is not relevant afaics -- but if the values claim to be the defaults but don't match, that's definitely surprising13:26
coreycbfwereade, I may be misinterpreting the meaning of default for juju get13:27
coreycbfwereade, is it always a bool?13:27
fwereadecoreycb, "default: true" means "nobody's explicitly set this -- or someone has explicitly unset it -- and so it has the default value and may change to the new default value if the charm is upgraded"13:27
coreycbfwereade, yeah ok so I'm misinterpreting.  that's pretty confusing though vs usage of 'default: ' in the config.yaml.13:28
fwereadecoreycb, if you explicitly set a config value to one that happens to match the default, it will persist through charm upgrades so long as the type for that field continues to match13:28
fwereadecoreycb, yeah, I never liked it much myself, iirc it was a compatibility-with-pyjuju thing13:29
coreycbfwereade, I was thinking if 'default: eth0' in config.yaml, then juju get should return 'default: eth0'13:29
coreycbok13:29
coreycbnevermind me then13:29
coreycb:)13:29
fwereadecoreycb, the thinking is that *what* the default is isn't very interesting, but that fact that it *is* the default value is, because that has runtimeimplications13:30
* fwereade has to collect laura, bbiab13:30
coreycbfwereade, well a different option name could make sense in juju get.. like 'using-default: true' to differentiate from what's in config.yaml13:31
coreycbbut maybe you need backware compat at this point13:32
coreycbbackward13:32
=== vladk is now known as vladk|offline
natefinchfwereade: is this really something we need in for 1.19? https://bugs.launchpad.net/juju-core/+bug/131246314:10
fwereadenatefinch, well, they rather suck, but I don't think they're critical14:26
fwereadenatefinch, feels like they should be pretty trivial though -- 1 missing line in setup sort of thing14:26
natefinchfwereade: could be, it just seems like an edge case - running tests without network. Surely we shouldn't rely on having access to the network for tests, but it's also not going to affect the user at all.14:27
fwereadenatefinch, I'd prefer not to treat it as edgey -- look at it from the "intermittent failure" perspective14:28
fwereadenatefinch, agree not user-facing though14:28
natefinchfwereade: yeah, definitely makes the tests more fragile14:30
natefinchfwereade: where do we get the db username and password from?14:38
natefinchfwereade: I'm trying to help perrito666 with the backup and restore scripts, and we need the user/pw for the admin database to be able to get the replicaset config14:39
* perrito666 keeps finding things to ask that nobody knows :p karma hates me14:40
natefinchperrito666: it's just one of those rabbitholes where this data structure gets it from that data structure which gets it from another data structure.... and half the time if you trace it back far enough, it's actually hard coded14:42
perrito666well, in the past I know I am in problems when fwereade says "ahh oh, ... that ... uhm"14:43
perrito666I found, for instance that one particular failure case of not working db ends up with mongo flooding with a success message :p14:45
natefinchperrito666: haha... that's mongo for you14:46
natefinchperrito666: working with mongo in juju has reinforced my love of postgres for personal projects :)14:46
perrito666well working enough with postgres has reinforced my love for csv :p and kind of db in excess is bad for your health14:48
natefinchperrito666: heh, yeah, often times simple file storage is more than good enough14:48
perrito666natefinch: so, is perhaps the password stored in agent config as "old-password"?14:50
fwereadeperrito666, natefinch: I don't think it's that one... don't we set up the state server machine-tag/password as mongo admins?14:53
fwereadeperrito666, natefinch: user-admin used to be one, with admin-secret, but I *think* we closed that off14:54
fwereadeperrito666, natefinch: sorry, I'm a bit back and forth at the moment, I have fewer hours until I fly than I thought I did14:56
perrito666fwereade: ah, you leave today?14:56
fwereadeperrito666, early tomorrow15:00
=== negronjl is now known as negronjl-afk
perrito666fwereade: ouch15:02
* perrito666 reminds he needs to secure a travel to the airport15:03
* fwereade just did that himself :)15:04
perrito666my flight is at the not so fun time of 2AM15:06
natefinchheh... I got our second car inspected yesterday so I could drive to the airport and not get ticketed for driving an uninspected vehicle.  Nothing like waiting until the last minute.15:06
natefinchperrito666: ouch!15:06
perrito666natefinch: you leave the car at the airport?15:08
natefinchperrito666: sorta have to.  It's an hour and 15 minutes away... telling my wife she needs to drive 2 1/2 hours with two screaming kids in the back to drop me off is not a viable option :)15:08
perrito666natefinch: ah, I live 15-10 min trough highway from the airport... although telling my wife that she needs to drive at 2am trough the unsafest places of the city might yield a similar result, so cab it is15:10
natefinchperrito666: haha yeah15:10
natefinchperrito666: I don't think there's a cab in the world that would even agree to take me that far, and even if they did, it would cost as much each direction as parking for the week15:10
perrito666heh cab here are cheap for intl standards, its a U$D15 ride to the airport ~27km15:11
perrito666against 120 for a weeks parking15:12
natefinchheh, it's like 90km for me, and if I could get a ride it would cost me at least $100.  There *might* be a shuttle bus from a nearby town, but those are usually $50 each way, and parking is only $108 per week15:12
natefinchperrito666: anyway, I leave 7pm on Sunday and arrive 9:41pm local time in Vegas.  I had hoped to leave earlier on sunday, but there were no other direct flights, and indirect flights were adding like 2-3 hours onto the 5.5 hour direct flight15:17
perrito666natefinch: well I get out at 2AM and get there around 4 o 5 PM local time with a 2h wait in panama15:18
natefinchperrito666: on sunday?15:18
perrito666yep15:18
perrito666when I say local time, I mean ART15:19
perrito666Its like 2PM there15:19
natefinchthat's not too bad then.  Long haul, but nice to have a little time to recover that day15:20
perrito666yep, return on the other hand, is a 20h flight15:20
perrito6668 of those are a wait in panama :p15:20
natefinchoh man, that's rough15:20
natefinchI hate layovers15:20
perrito666but, I have been told that tocumen airport has shuttles that take you to know the canal and the city if you have long waits15:21
fwereadeperrito666, did you get your priority pass for the lounges? I, uh, didn't, and I have 5+ hours in heathrow on the way back15:21
perrito666fwereade: the code for canonical was not working and I forgot to ask and well, also I just remembered to ask for this too late15:22
perrito666their page says they send the card un 3 to 7 business days, which, here, if its intl mail will be around 15 days to a month15:23
MakyoHi from GopherCon. For those who aren't in talks, I'm trying to get juju building on my new laptop and running into the following: utils/ssh/ssh_gocrypto.go:84: undefined: ssh.ClientConn15:23
fwereadeperrito666, fwiw you're meant to make sure it gets sent to the office, and they need to send it on15:24
wwitzel3... well I was going to complain about my 1h layover in ATL and my 4 hour flight, but I feel much better about it now15:24
fwereadeperrito666, not surewhy15:25
voidspacehah15:25
perrito666wwitzel3: lol15:26
jcw4Makyo: did you use godeps to update the dependency versions?15:28
Makyojcw4, no, this is a fresh checkout.  I read about it in CONTRIBUTING, but wasn't sure if it was required for building.15:30
jcw4Makyo: yes, that specific error looks like one I got recently before running godeps15:30
Makyojcw4, alright, thanks, will try.15:31
jcw4Makyo: my process (in juju-core): go get -u ./... ; godeps -u dependencies.tsv; go build ./...15:31
hazmatfwereade, ping15:31
fwereadehazmat, pong15:31
perrito666natefinch: strange, bootstrap seems to be using oldpassword as the password15:32
hazmatfwereade, re cloud-installer, was wondering if you had a minute to chat about the approach they went with.. its actually a bit cleaner than what they were looking at previously (no --to=kvm:0) but it does have some nesting15:32
hazmatusing kvm as the local provider container type, with lxc inside of them15:33
hazmatinstead of touching machine 0 in local ... which is special.15:33
natefinchperrito666: I think we change it after we log in the first time15:33
perrito666apparently so, bc oldpassword is not working either15:34
* perrito666 dives back into grep15:34
wwitzel3voidspace: ping15:41
voidspacewwitzel3: pong15:54
voidspacesorry15:54
wwitzel3voidspace: np :)15:57
=== vladk|offline is now known as vladk
voidspacewwitzel3: https://code.launchpad.net/~mfoord/juju-core/ha-rsyslog/+merge/21727016:40
perrito666natefinch: interesting, we seem to be setting the admin-secret as password, yet this does not seem to work for a simple query using the client17:09
natefinchperrito666: hmm weird.  can you try adding a logging statement to write out the exact password we're using to log in?17:14
natefinchperrito666: also, it's possible there's two different passwords - one for the db in general and one for the admin database17:14
perrito666natefinch: I pasted somthing in priv there17:15
perrito666mostly bc it has the pw17:16
wwitzel3was someone else seeing hash sum mismatch errors on ec2 earlier?17:19
wwitzel3http://paste.ubuntu.com/7331230/17:20
natefinchnope, sounds like maybe just a networking error though17:21
wwitzel3natefinch: yeah I just kept retrying it and eventually it worked :/17:23
wwitzel3always makes me confident17:23
natefinchI gotta go run an errand.  Good luck perrito666, sorry I haven't been much help.  My wife is sick, so I'm getting a lot more kid duty today17:25
perrito666ouch hope she gets better17:25
perrito666you where very helpful17:25
natefinchif her cold is anything like mine, it'll last another 3 weeks.  I've been sick for like a month.17:25
=== natefinch is now known as natefinch-afk
perrito666is this a correct invocation for mongo?:  mongo --ssl -u "admin" -p "a very secret password" localhost:37017/admin -eval "rs.conf()"17:32
voidspaceEOW17:33
voidspacesee you in Vegas17:33
perrito666voidspace: have a nice trip17:33
voidspaceperrito666: you too17:33
voidspacebye all17:33
=== vladk is now known as vladk|offline
natefinch-afkperrito666: how goes?18:41
perrito666natefinch-afk: hey, just came back from lunch18:42
perrito666natefinch-afk: not many uses of SetAdminMongoPassword18:42
perrito666but I do notice that sets the hash18:43
perrito666that might be why Its not working18:43
=== natefinch-afk is now known as natefinch
sinzuiperrito666, lbox hates me. Lp sees the diff, bug lbox/reitvield tells me to get stufffed18:49
sinzuiFailed to send patch set to codereview: diff is empty18:49
sinzui^ any ideas18:49
natefinchsinzui: just propose it the old fashioned way, I had to do that yesterday18:50
natefinchsinzui: there's a diff in launchpad, it's just not as purty as rietveld's18:50
sinzuinatefinch, I think the old fashioned way is LP's MP. Is that what you mean?18:51
natefinchsinzui: yeah18:52
sinzuinatefinch, Do you have a moment? https://code.launchpad.net/~sinzui/juju-core/inc-1.19.2/+merge/21728718:53
natefinchsinzui: see? we don't need no reitveld for that.  :)18:54
sinzui:)18:55
sinzuiThis is the first release without quantal. This could be the first release without a build failure.18:55
mgzsinzui: for lbox things, it helps to delete any random branch directories it's gone and created18:56
sinzuimgz, I find the from time to time.18:56
perrito666sinzui: sorry I was afk19:01
sinzuinp perrito66619:02
natefinchsinzui: no more 1.19.1 bugs?19:08
natefinchsinzui: I don't see 1.19.1 as a valid milestone choice under milestone-targeted bugs19:08
sinzuinatefinch, yep, 1.19.1 is closed. It is being build now19:09
natefinchsinzui: cool19:09
sinzuinatefinch, I will create 1.19.219:09
sinzuinatefinch, 1.19.2 will show up if you reload the page19:10
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
bits3rpentLets say I set a config value to something new config-changed hook runs19:46
bits3rpenteventually the actual config-changed script runs, and performs config-get. Does config-get get the new config that was changed in the state server, or the old config in the local state?19:46
natefinchbits3rpent: I think there's very few juju devs online right now20:03
natefinchI'm packing it in.  EOD for me today.20:09
mgzfix for bug 1312940 <https://codereview.appspot.com/95770045/>22:18

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