/srv/irclogs.ubuntu.com/2014/01/17/#juju-dev.txt

wallyworld_thumper: i'm off to the cricket soon, i'll land any approved branches when i get back tonight01:05
thumperok01:09
wallyworld_ ah good, i can land one now :-)01:12
wallyworld_ah not quite, upstream still pending :-)01:12
dimitern62238807:20
dimiternoops, morning07:20
rogpeppe2fwereade: just checking: we only care about 1.16 -> 1.18 compatibility, not 1.17.x -> 1.18 compatibility, right?10:29
rogpeppe2jam, dimitern: ^10:30
fwereaderogpeppe2, I will be somewhat if it doesn't work, but they are explicitly dev releases... what needs to change?10:31
fwereadesomwhat sad10:31
rogpeppe2fwereade: some time after 1.16 i added code to create the stateServers collection, but it isn't maintained correctly and i'm adding another field to it10:32
rogpeppe2fwereade: i started writing compatibility code for both cases, but started getting bogged down10:33
fwereaderogpeppe2, I has a bit of a sad there10:33
fwereaderogpeppe2, given that no previous version will have any data worth keeping, can you do a detect-and-trash-old-format when yu create a State connection?10:34
rogpeppe2fwereade: it's not that easy to do in a concurrent-safe way10:34
rogpeppe2fwereade: although in all honesty the probability of something dodgy happening is very close to zero10:35
fwereaderogpeppe2, I have a preference for "actually zero" -- what are the possible concurrent actions in play that might go wrong?10:36
fwereadecrap, I have to be afk some time, standup without me and I'll join if/when I can10:39
rogpeppe2fwereade: ok10:42
dimiternrogpeppe2, right10:44
=== rogpeppe2 is now known as rogpeppe
dimiternfwereade, wallyworld_, standup10:47
=== nate_finch is now known as natefinch
jamespagesinzui, is the juju-core test suite offline? i.e. is it possible to run it in an offline build environment?11:27
dimiternrogpeppe, how do you feel about EnvironWatcher mixin type (in state/apiserver/common/), with WatchForEnvironConfigChanges() and EnvironConfig() methods?12:38
rogpeppedimitern: SGTM12:38
dimiternrogpeppe,  cool, thanks12:38
rogpeppefwereade: w.r.t. your query above, the sequence would look like: {scan state server machines; txn{remove doc; insert doc with found state server ids}}; if a client adds state servers just after doing that and there are two concurrent clients, the doc might be added without the newly added ids13:12
rogpeppefwereade: but that could only happen upgrading from 1.17 environments13:12
rogpeppefwereade: the alternative is to have different paths in State.createStateServers doc, one which asserts that the doc doesn't exist, the other which asserts that it exists with the expected revno13:14
fwereaderogpeppe, without pre-existing multiple state servers, aren't we going to be down to a singe state client anyway?13:15
rogpeppefwereade: yes, but i can't see quite how that changes matters13:16
fwereaderogpeppe, well, no concurrent access, right?13:16
rogpeppefwereade: i think you can still get concurrent access even with a single client, can't you?13:16
rogpeppefwereade: unless txn serialises everything on a single client, which it may, i suppose13:17
fwereaderogpeppe, if you do it at state.Open time, or just after, before everything else gets their hands on it13:17
rogpeppefwereade: ah13:18
rogpeppefwereade: yeah, i think that works, thanks13:18
fwereaderogpeppe, awesome13:18
rogpeppefwereade: although...13:18
rogpeppefwereade: no, it's ok13:18
fwereadeyou had me worried though :)13:19
rogpeppefwereade: good thing the only mongo connection is from one place in the single machine agent!13:19
fwereaderogpeppe, isn't it13:21
rogpeppelunch13:28
sinzuijamespage, There are one or two bugs reported that it does need to be online. It should run on an offline computer though13:29
wallyworld_fwereade: hi, if you have a few minutes, i got all but one branch approved. tim looked at this last one and had some issues which i addressed and a question which i answered. i was using an update interval of 6 hours cause i thought 24 was too long. i can change it if you agree with tim. https://codereview.appspot.com/49500043/13:32
fwereadewallyworld_, I'm inclined to go with 24h for now13:34
wallyworld_ok, i'll change. i just thought it was too long13:34
wallyworld_fwereade: updated13:37
=== gary_poster|away is now known as gary_poster
dimiterngary_poster, hazmat, cmars, api meeting?14:02
jamespagesinzui, I'll stuff it in a ppa and see14:02
gary_posterdimitern: having computer issues.  will be there asap and trying to find delegate14:03
mbruzekrogpeppe, I updated the bug.  When you get back from lunch let me know if you need any more information.14:20
argeshey guys, need help with getting juju-tools in a private cloud where s3 is blocked. is there a wiki on how to set this up with 1.16.5?14:31
jam1arges: I'd don't have a ton of time, but you can look for "sync-tools --source" which can be a local directory, but you'll need to have downloaded the tools some other way14:46
argesjam1: yea so here's what i did... and i'm not sure if there is a better way14:47
=== jam1 is now known as jam
argesjam1: juju sync-tools (in LXC enviornment)14:47
argescopy the files from .juju/local/storage into maas enviornment14:47
argesjuju sync-tools --source=<Storage dir>?14:47
argesjuju bootstrap --source=<storage dir>14:47
jamarges: sounds reasonable to me,14:48
argesOk... I'm open for alternatives if there are any14:48
mgzarges: I think that's what we decided the other day was the best way pre-1.18?14:49
jamarges: you could wget, or something along those lines , but I think sync-tools into LXC gives you a nice way that it will discover everything you need rather than you figuring it out14:49
argesmgz: yup. just checking14:49
argesjam: yea that's what i used originally, but i missed files14:50
dimiterni'm giving up :/15:02
natefinchMan I hate it when I go to change a constant and find it's been hard coded in like 8 other spots15:36
mgzit should be a woho moment, you get to make 8 bits of code better :)15:37
natefinchmgz: that too, it just means more work that I wasn't expecting to have to do :)15:37
natefinchare the juju-backup and juju-restore plugins things that are actively supported and supposed to work?15:40
mgzpresumably.15:40
mgzat least till we have a better story there15:40
mgzand multiple stateservers still isn't a replacement for the ability to backup...15:41
natefinchbecause they're like one big hardcoded list of assumptions that need to be kept up to date with the rest of the code by hand.15:41
rogpeppe1mbruzek: thanks16:33
mbruzekyou are welcome rogpeppe116:33
=== rogpeppe1 is now known as rogpeppe
rogpeppepretty trivial review anyone? https://codereview.appspot.com/5375004317:46
natefinchrogpeppe: sure17:50
rogpeppenatefinch: thanks17:51
natefinchrogpeppe: do you know if we currently support the user running more than one local environment at the same time?17:51
jamespagesinzui, fwereade: fyi the uploads I did today for juju-core in trusty enable build with both go compilers17:51
rogpeppenatefinch: i don't *think* we do, but i may be wrong there.17:51
jamespagehttp://javacruft.wordpress.com/2014/01/17/call-for-testing-juju-and-gccgo/17:51
jamespagejcastro, ^^17:52
sinzuijamespage, \o/ Did you also test with a closed network?17:53
jamespagesinzui, not yet - its on my list17:53
sinzuijamespage, I have been tracking the packaging branch, I can pull your rules in when you ask me to. Oh, and 1.17.0 has a packaging change. I have not forwarded it to you since there may be more getting to 1.18.017:54
natefinchrogpeppe: reviewed17:54
rogpeppenatefinch: thanks17:54
jamespagesinzui, binaries right?17:54
sinzuiyes, one was renamed17:55
jamespagesinzui, got that17:55
jamespagesinzui, I was not going to upload 1.17 but I wanted some wider testing of the gccgo stuff17:55
sinzuijamespage, ack17:55
jamespagesinzui, oh - I had to pull in a commit for mgo (r257 I think) for gccgo compat17:55
jamespagesinzui, can that be included in trunk if not done so already please17:56
sinzuijamespage, I will report the issue now17:56
jamespagesinzui, thanks17:56
rogpeppehmm, i can't destroy my local environment now :-\ lp:127025218:13
rogpeppe127025218:14
natefinchrogpeppe: dang, that's annoying18:41
rogpeppefwereade: you're not around atm are you, by any chance?18:53
natefinchrogpeppe: I have code in the machine agent to install the upstart job for mongo, but it's making the tests barf because they don't have rights to do that... do we have a common way to test that kind of code?19:11
rogpeppenatefinch: good question.19:11
rogpeppenatefinch: no, not really.19:12
natefinchsudo go test? ;)19:12
rogpeppenatefinch: no, we don't want to do that19:12
rogpeppenatefinch: (although that's what docker does)19:12
natefinchrogpeppe: I know, I was just joking19:12
rogpeppenatefinch: i'd just rely on mocking in this kind of case19:12
natefinchrogpeppe: ok, fair enough19:12
rogpeppenatefinch: and it's the kind of thing that we could have live tests for, but the live tests seem to have languished19:13
rogpeppenatefinch: another fairly simple review? (fixes a critical bug) https://codereview.appspot.com/5381004519:43
natefinchrogpeppe: sure19:43
rogpeppenatefinch: thanks19:44
natefinchrogpeppe: done19:48
rogpeppenatefinch: ta!19:48
rogpeppewhat a lovely launchpad error: "milestone_link: Constraint not satisfied."19:50
natefinchyuck19:51
hazmatdid something change wrt to mongodb 'admin' password? its still the same as admin-secret right?20:34
hazmati had a working auth mongodb auth setup that now results in auth fails error msg from mongo20:40
hazmatnatefinch, sound familiar?20:41
natefinchhazmat: not at al familiar20:43
natefinchhazmat: I highly doubt we changed the mongodb admin password, but I can double check20:44
natefinchhazmat: yeah, still the admin secret20:48
hazmatdefinitely feels like somethings changed about this21:07
hazmathmm.. admin-secret's no longer in environments.yaml.. i'm pulling it directly from jenv though21:09
hazmatnatefinch, so it looks like this has changed, the state server agents are basically autogenerating the password, previously that was a nonce that would update to the admin-secret subsequently21:57
hazmatsigh.. maybe not.. still trying to figure out the delta21:59
natefinchhazmat: ahh hmm... there's still some code in there about it being admin-secret, but maybe that gets overridden21:59
hazmatnatefinch, well more like it never gets called22:14
hazmatnatefinch, so i'm on the state server22:14
hazmatnatefinch, and looking at machine-0's agent.conf22:14
hazmatthe actual value that works to login is not the 'admin-secret' for the enviornment22:15
hazmatbut the 'oldpassword' from the agent.conf22:15
hazmata wee bit of fubar22:15
hazmatthe update to the new admin password is supposed to happen i think the first time the client accesses mongodb, but with the move to api for all client ops.. it never happens22:18
hazmatwhere new admin-password is admin-secret22:18
=== gary_poster is now known as gary_poster|away

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