/srv/irclogs.ubuntu.com/2013/12/05/#juju-dev.txt

thumperhatch: which fix?00:26
thumperhatch: although probably not00:26
thumperhatch: you can probably expect a 1.18 soonish00:27
hatchthumper there was one related to mongodb that was fixed but not sure if it was going in 16 or 1800:27
thumperyeah, not sure sorry00:27
thumperaxw may know when he gets online00:27
hatchno problem thanks though00:33
wallyworldthumper: meeting?01:03
thumperoh yeah...01:03
thumperwallyworld: my popup reminder conveniently ended up behind emacs01:04
rick_h__come on, surely emacs will do reminders :P01:27
thumperrick_h__: probably, but it isn't hooked up to my google calendar!01:48
thumperaxw: sorted out the screen issue?02:13
axwthumper: all sorted02:13
axwsorry I'm late, will make it up later02:13
axwthumper: I got my new laptop - thought I had it sorted last night :/02:13
thumperwhat's the new laptop?02:14
axwxps 1502:14
thumpernice?02:14
thumperwith the high res screen?02:14
axwthumper: yup, the one I just turned down to 1080p because I can hardly read anything :(02:14
thumperI have some dude taking out my power meter and replacing it with a smart meter02:15
thumperno power in the house02:15
axwat 3200x1800 that is02:15
thumperso on battery and using mobile 3G02:15
thumperwow, that is good02:15
thumperhow's the battery?02:15
thumperand how heavy?02:15
axwthumper: dunno yet, hardly used it - just been frigging around getting my preferred OS on it ;)02:16
axw~2kg02:16
thumperheh02:16
thumperI'm curious to know when you have hammered it a bit02:16
axwI'll let you know when I do :)02:16
axwthe keyboard is a bit puny compared to what I'm used to02:17
axwgetting used to it though02:17
=== ray is now known as rawang
_thumper_bugger!03:40
=== _thumper_ is now known as thumper
axwthumper, wallyworld: is there a reason why we don't generate new SSH keys for environments?03:45
wallyworldaxw: we use the ssh key of the user who created the environment03:46
wallyworldi guess that was deemed sufficient03:46
axwwallyworld: yeah I know that's what we do now, just wondering why we shouldn't just create a new key03:46
axwmmk03:46
wallyworldnot sure, that design decision was way before my time03:46
axwnps03:46
axwwallyworld: https://bugs.launchpad.net/juju-core/+bug/1257371/comments/903:48
_mup_Bug #1257371: bootstrap fails because Permission denied (publickey) <bootstrap> <regression> <juju-core:In Progress by axwalk> <https://launchpad.net/bugs/1257371>03:48
axwsome people might not have a default ssh key, which buggers things up - that's why I ask03:48
wallyworldah, just read the bug03:50
wallyworldi can see why we don't generate a new key03:50
wallyworlds/dont't/ might not want to03:50
wallyworldit would be another key to manage03:50
wallyworldwhen we could just add existing user keys (or import using ssh-import-id)03:51
wallyworldbut if a user doesn't have a key already....03:51
wallyworldaxw: are you adding code to allow a key to be specified if not in ~/.ssh/id_rsa.pub?03:52
axwwallyworld: just considering options atm03:52
wallyworldok03:53
axwwallyworld: that's one option, or there's the option of generating one automatically03:53
axwor both03:53
wallyworldgenerating one would be more user/bot friendly03:53
axwyeah that's what I'm thinking03:53
wallyworldi'd +1 that approach :-)03:54
wallyworldmaybe run it by jam or william as well03:54
axwyeah, I'll just send an email to juju-dev now03:55
thumperwallyworld: http://pastebin.ubuntu.com/6523153/03:59
thumperwallyworld: and I logged in and checked, and it did indeed have 4G of disk, 1G of ram and 2 cores\03:59
thumper\o/03:59
wallyworld\o/03:59
wallyworldawesome03:59
* thumper proposes03:59
thumperwallyworld:  https://codereview.appspot.com/3761004304:11
* thumper goes to write some emails04:11
* wallyworld looks04:11
* wallyworld ->doctor, bbiab04:23
davecheneydoh06:33
davecheneyso close06:33
davecheneylucky(~/src/launchpad.net/juju-core) % juju ssh 006:33
davecheneyWARNING discarding API open error: <nil>06:33
davecheneyERROR environment has no access-key or secret-key06:33
davecheney^ what does this mean06:33
davecheneyany ideas ?06:33
davecheneyaxw: thanks for the tip06:45
davecheneythat fixed it06:45
axwdavecheney: cool06:45
axwseems to me it's another win for using gc-built jujud06:45
axwthe size, that is06:46
davecheneyaxw: oh, i'm not passing -Os06:47
davecheneymaybe that would help06:47
axwdavecheney: maybe at the expense of performance06:47
davecheneyman, even with sync bootstrap juju deploy the first time is still very slow06:48
davecheneyie, i type juju depoy mysql m106:48
davecheneyand it still took 2 minutes to return and tell me i spelt the command wrong06:48
axwhuh. I didn't think it did much before parsing the command line...06:50
davecheneyi think we still connect to the state too early in the subcommand06:50
davecheneyaxw: brace yourself06:52
davecheneylucky(~/src/launchpad.net/juju-core) % ls -alh ~/bin/juju{,d}06:52
davecheney-rwxr-xr-x 1 dfc dfc 36M Dec  5 17:21 /home/dfc/bin/juju06:52
davecheney-rwxr-xr-x 1 dfc dfc 40M Dec  5 17:21 /home/dfc/bin/jujud06:52
axw:o06:52
davecheneyding ding ding!06:59
davecheneyhttp://ec2-54-253-189-54.ap-southeast-2.compute.amazonaws.com/wp-admin/install.php06:59
axwvery nice :)06:59
davecheneyif only it wasn't wordpress07:00
davecheneywe're not allowed to mention wordpress07:00
=== dspiteri is now known as darrenS
=== darrenS is now known as DarrenS
=== rogpeppe1 is now known as rogpeppe
rogpeppe1mornin' all08:39
dimiternmorning!08:40
dimiternwe should decide what to do about putcharm today08:41
dimiternotherwise the discussion can drag on too long08:41
dimiternfwereade_, i'm not sure i understand the icon question for local charms09:28
dimiternfwereade_, why do we need GET support?09:28
fwereade_dimitern, ah sorry -- did the mail I forwarded lack the original context?09:29
dimiternfwereade_, the context is there, but I still have no clue how to do that09:29
dimiternfwereade_, I don't know how it works with the charmworld now09:29
fwereade_dimitern, I think the charmworld bit is a red herring tbh09:30
dimiternfwereade_, can the icon be part of the charm package?09:30
fwereade_dimitern, the question is maybe best phrased as "can we somehow serve individual charm files to authenticated clients"09:30
fwereade_dimitern, yeah, icon.svg09:31
dimiternfwereade_, hmm..09:31
dimiternfwereade_, i suppose, if we duplicate part of charmworld in the api server yes09:31
fwereade_dimitern, if we do go through an unpack/repack step for every local charm we do at least have all that data available somehwere already, and it'd just a matter of putting it in the right place09:32
dimiternfwereade_, we can have GET /charms/xyz/icon.svg09:32
fwereade_dimitern, and I don't think we need to worry about store charms so much because they can already get the data from elsewhere09:32
fwereade_dimitern, although it would probably be best to make this functionality available for allcharms09:33
dimiternfwereade_, i was thinking of removing the data after repackaging - why bother - it's already in the provider storage09:33
dimiternfwereade_, so it gets hairer by the minute :)09:33
dimiternfwereade_, proxy any charm files from the provider storage or charm store through the api09:34
thumperdimitern: hey, when do you go on leave?09:34
dimiternfwereade_, this seems like a potential DDOS target - pinging the api server with random urls of valid charm, just so it has to fetch and unpack them09:35
dimiternthumper, hey, on 23rd09:35
fwereade_dimitern, well we *do* want charm access to be authenticated09:35
thumperdimitern: ah, for some reason canonical admin is all fubared09:35
thumperdimitern: how's the upload charm stuff going?09:35
fwereade_dimitern, we dropped the ball on that because signed urls are an openstack extension iirc09:35
dimiternthumper, oh? it was looking fine last time i looked09:35
thumperdimitern: I'm not surprised it is screwed, it was mramm that told me09:36
dimiternfwereade_, nevertheless it's a ddos target of a sort - an authenticated client written badly can bring down the api server like that perhaps09:36
fwereade_dimitern, but we ought to be clawing it back if possible -- in general we shouldn't just be making the contents of environment storage available to anyone who asks09:36
fwereade_dimitern, more so than *any* endpoint?09:37
fwereade_dimitern, if we're ok with one-time tokens for PUTs, we could surely do the same with GETs09:37
dimiternfwereade_, well, a bit more so, because it requires some busy work of fetching and unpacking a charm just to serve a file09:37
dimiternfwereade_, i'm not sure what approach did we decide to pick09:38
fwereade_dimitern, quite, we should definitely not do that09:38
fwereade_dimitern, and your work maybe involves extracting all the charm files anyway09:38
fwereade_dimitern, hence the potential connection in my mind09:38
dimiternfwereade_, if we need the get stuff, rogpeppe1's proposal seems to fit better than mine09:38
dimiternfwereade_, have POST/PUT/GET support for charm urls prefix, like /charms/ and handle everything there09:39
dimiternfwereade_, potentially caching the unpacked charms locally forever09:39
fwereade_dimitern, well we can't do that exactly09:39
fwereade_dimitern, HA09:39
rogpeppe1fwereade_: why is HA a problem there?09:40
fwereade_dimitern, we presumably want them, and everything else that doesn't have to be provider-level, in gridfs storage09:40
dimiternfwereade_, do what? cache?09:40
jamfwereade_: you could write it all into mongo09:40
jamrogpeppe1: dimiter was saying 'localyl'09:40
fwereade_dimitern, which machine unpacked then?09:40
jamas in /tmp, I believ09:40
rogpeppe1jam: i think that was with respect to caching09:40
rogpeppe1jam: which would be fine, i think09:40
rogpeppe1jam: although you'd want to keep a handle on the size of the cache09:41
dimiternfwereade_, doesn't matter which machine09:41
fwereade_dimitern, well, we need the files on all the machines, right?09:41
dimiternfwereade_, whichever api server serves a charm, it checks its local cache and populates it before serving09:41
rogpeppe1jam: and actually, it might not be worth caching - you don't need to unpack for a GET09:41
dimiternfwereade_, no09:41
dimiternrogpeppe1, you need specific files inside the package, like the icon.svg09:42
jamrogpeppe1: so the request from fwereade_ was that you could serve just the icon.svg, for example, and that is not trivial to proxy without unpacking09:42
rogpeppe1ah, i hadn't realised that09:42
* rogpeppe1 goes to look at the gridfs docs09:42
rogpeppe1jam: actually, i don't think it would be too hard09:44
dimiternfwereade_, rogpeppe1, although I still think going with a pure http-based interface will screw us up badly when we need to think of role-based auth09:44
rogpeppe1dimitern: how's that?09:44
jamdimitern: basic auth is username + password09:44
dimiterni now that09:44
jamI think oauth is an HTTP header09:44
jamand you can always have X-Juju-Authorization-Token: XYZ09:45
rogpeppe1jam: +109:45
dimiternbut what don't know is would it be enough/like the api login09:45
rogpeppe1dimitern: it doesn't necessarily need to be09:45
rogpeppe1dimitern: did you see my reply to Gary's comment?09:45
fwereade_rogpeppe1, jam, dimitern: well, I want us to remain open to the possibility of alternative auth mechanisms09:45
rogpeppe1fwereade_: definitely09:45
dimiternrogpeppe1, so using the same user/pass for login and for basic http auth09:45
jamfwereade_: I think HTTP headers are just as turing complete as anything else09:46
rogpeppe1jam: actually, they're not quite09:46
fwereade_rogpeppe1, jam, dimitern: so issuing tokens from the API feels like it gets round that potentialcomplexity completely09:46
fwereade_?09:46
rogpeppe1jam: you can't do a multi-stage login protocol09:46
dimiternfwereade_, exactly09:46
dimiternfwereade_, but then we don't solve the get issue09:46
rogpeppe1fwereade_: we could issue auth tokens from the API09:47
dimiternfwereade_, and having to implement a get handler + a bunch of apis, rather than a bunch of http handlers only seems simpler09:47
jamrogpeppe1: you could with round trips, and I'm pretty sure basic PUT can return an "please finish Auth" request.09:47
rogpeppe1fwereade_: which don't have any specific relationship to charms09:47
rogpeppe1jam: ah, ok09:47
rogpeppe1jam: sounds complex though.09:47
dimiternjam, PUT can return 401 as POST or GET09:48
jamrogpeppe1: that said, client sides may not implement the 100 Continue stuff, which would mean they try to upload the whole content and then get a "hey, you need to auth, please upload again"09:49
rogpeppe1fwereade_: in the future, i'm thinking of a method, say Client.AuthToken that returns an authentication token that can be used to authenticate future URL operations.09:49
rogpeppe1fwereade_: but for the time being, i don't think it's necessary.09:49
dimiternrogpeppe1, actually it is i think09:52
dimiternrogpeppe1, we can always generate a token and return it as a result of login09:52
dimiternrogpeppe1, then we can use this token as a session key for url requests09:52
dimiternrogpeppe1, and have a call to renew a token perhaps09:52
rogpeppe1dimitern: that's not a bad idea - i don't think it's *necessary* but it would work well09:52
rogpeppe1dimitern: for the time being we could just return the username and password09:53
dimiternrogpeppe1, you mean ask for?09:54
dimiternrogpeppe1, not return09:54
rogpeppe1dimitern: i mean that the auth token returned by Login would just embed the user name and password that was passed to Login09:54
rogpeppe1dimitern: the client would treat it as an opaque identifier09:55
dimiternrogpeppe1, not in plain text though09:55
rogpeppe1dimitern: so if we changed to using a more sophisticated scheme in the future, the client would not need to change09:55
rogpeppe1dimitern: why not?09:55
dimiternrogpeppe1, because it's a security leak09:55
rogpeppe1dimitern: how so?09:55
dimiternrogpeppe1, returning the "usernamepassword" in plain text from the server?09:56
rogpeppe1dimitern: yeah09:56
dimiternrogpeppe1, and then using that as a token?09:56
rogpeppe1dimitern: yup09:56
dimiternrogpeppe1, why?09:56
rogpeppe1dimitern: how is it a security leak?09:57
dimiternrogpeppe1, basic auth does that already - user/pass auth09:57
rogpeppe1dimitern: sure, and that's essentially what we're doing now09:57
rogpeppe1dimitern: how is it a security leak?09:57
dimiternrogpeppe1, my point is that a token is probably either a part of the url (unsafe) or a header (with ssl probably safe)09:57
rogpeppe1dimitern: it would be part of the header (and the url is actually safe too with https, i believe)09:58
dimiternrogpeppe1, unsafe, meaning if the token is not opaque, like you're suggesting09:58
rogpeppe1dimitern: we're talking about an authentication token, right? any time that leaks, it's a security leak regardless, whether it's plain text or not),09:59
rogpeppe1dimitern: i'm just suggesting we go with an ultra-simple approach to start with, which is sufficient for our current needs, and also capable for the future.10:00
dimiternrogpeppe1, no it's not10:00
rogpeppe1dimitern: why not?10:00
jamdimitern: rogpeppe1, fwereade_, TheMue, davecheney: weekly standup10:00
dimiternrogpeppe1, an opaque token, which is time-sensitive is better, even if leaked the damage is minimized10:00
jammramm: standup if you're around10:00
jammgz: ^^10:01
jamhttps://plus.google.com/hangouts/_/calendar/bWFyay5yYW1tLWNocmlzdGVuc2VuQGNhbm9uaWNhbC5jb20.8sj9smn017584lljvp63djdnn810:01
mgzI'm there10:03
=== gary_poster|away is now known as gary_poster
davecheneyjam: bad news, -O2/s has no appreciable effect on binary size11:20
davecheneywell, -O2 made it 5% bigger11:20
davecheney-rwxr-xr-x 1 dfc dfc 19M Dec  5 22:20 /home/dfc/bin/juju11:23
davecheney-rwxr-xr-x 1 dfc dfc 22M Dec  5 22:20 /home/dfc/bin/jujud11:23
davecheney^ jam stripped11:23
davecheneybut I don't know if it is safe to do that with gccgo binaries11:23
davecheneyi'd guess it is probably safer than gc binaries11:23
davecheneybut i don't have enough experiecen11:23
* dimitern lunch11:24
* davecheney bed11:24
jamdavecheney: thanks for the reference point, sleep well11:41
davecheneyjam: antonio put me up to this, i swear11:44
jamespagejam: urgh - I just got the --upload-tools thing when running from trusty with gccgo and trying the manage precise12:45
jamespageesp if libgo is not statically linked....12:46
jamespagegah12:46
jamjamespage: so as I understand from davecheney, it *is* intended that final binaries built with gccgo would be staticly linked to avoid 'what version is on what platform' problems13:34
jamespagejam: not sure about the statically linked thing13:35
jamespagethat's something the security team where keen to avoud13:35
jamespagelibgo contains a core set of SSL libraries13:35
jamespageso not having to rebuild for every security vulnerability is a +13:35
TheMuerogpeppe1: *carefulPing* I changed the tailer now that it starts N lines before the end. only downside is that those N lines aren't already filtered, so that the initially returned lines can be less.14:18
rogpeppe1TheMue: presumably you could filter as you go back through the file?14:23
TheMuerogpeppe1: should be possible too, only a bit more logic to create the right strings to check14:25
TheMuerogpeppe1: and those may span two or more read buffers14:25
TheMuerogpeppe1: but will try it after hangout (in 2 mins)14:28
rogpeppe1TheMue: yes, you may need to use something more like the code i sent you14:28
TheMuerogpeppe1: a bit more of it, yes14:30
TheMuerogpeppe1: btw, how about the storm in your hometown? here it's ok so far, but it still shall grow14:30
rogpeppe1TheMue: pretty windy today14:31
TheMuerogpeppe1: yeah, we have some douglas firs in front of the house and they are swinging fine :)14:32
TheMuerogpeppe1: so, off for some minutes, hangout14:33
dimiternrogpeppe1, why is there a mutex in apiserver Login/15:13
rogpeppe1dimitern: because it might be called concurrently15:13
dimiternrogpeppe1, it seems I can reuse the same Login call for http basic auth15:14
dimiternrogpeppe1, except for the loggedIn flag15:14
rogpeppe1dimitern: i'd abstract out a separate function called by both15:14
rogpeppe1dimitern: i did that in the example http handler code i posted a while ago15:14
dimiternrogpeppe1, yeah, my thoughts exactly15:15
rogpeppe1dimitern: authUser in https://codereview.appspot.com/22100045/diff/20001/state/apiserver/admin.go15:19
sinzuinatefinch, I put you in an n+1 config yesterday. I built the windows installer juju 1.16.4 and verified I could bootstrap and deploy from windows with it.15:19
natefinchsinzui: awesome15:20
sinzuinatefinch, I learned I can use wine+inno to make the installer. I don't have windows so I started an instance in aws. I learned about rdp and making ssh work. I think I know enough now to test this reguarly15:21
natefinchsinzui: awesome.  I hoped wine would work, but hadn't tried it myself.15:21
abentleysinzui: I think I will upgrade CI's system juju to 1.16.4.  Any reason not to?15:25
sinzuiabentley, +1 to upgrade15:29
rogpeppe1TheMue: you have a review16:20
TheMuerogpeppe1: thx16:21
mgzdstroppa: so, do you have lbox installed and working?17:19
dstroppamgz: I'm getting an 'undefined: syscall.TCGETS' when I execute 'go get launchpad.net/lbox'17:23
mgz>_<17:24
mgzmaaacs...17:24
mgzfrom goetveld/rietveld/terminal_darwin.go?17:25
mgzthat should be worked around in latest release...17:26
dstroppagoetveld/rietveld/terminal.go17:27
mgzI have terminal_darwin.go and terminal_linux.go17:31
dstroppahere http://bazaar.launchpad.net/~goetveld/goetveld/trunk/files I can only see terminal.go17:36
mgzuuu17:37
mgzdstroppa: can you branch lp:~gophers/goetveld/trunk instead?17:38
mgzI'm not sure why we have two, at different revisions17:38
mgzdstroppa: or just try againt now, I've changed it on launchpad17:39
mgzso go get should now work17:40
dstroppamgz: go get works17:40
dstroppaand now I got lbox17:40
mgzphew :)17:41
mgzokay, so now go to your gojoyent branch, and run: (adjust the path as needed)17:41
mgz`~/go/bin/lbox propose --for lp:~juju/gojoyent/for_review -cr -v -wip`17:41
mgzwhich does some stuff, then should bring up an editor for you to write a review message in17:42
mgzalso creds for g+ and launchpad as part of it... painful but hopefully not too bad17:42
dstroppaBranch is not clean (I got some file that are not pushed yet as I'm still working on it)17:44
dstroppashall I move them or can work around it?17:44
mgzshelve those bits then run it again17:44
mgz`bzr shelve --all -m "wip whatever"`17:45
mgzand `bzr unshelve` when you want it back17:45
dstroppash: sensible-editor: command not found17:48
mgzheh17:48
mgzset EDITOR to something?17:49
mgzthis is the flakiest tool...17:49
dstroppaerror: Change summary is empty.17:53
dstroppaeven though I added both summary and desc17:53
mgzdstroppa: the code opens a tempfile, execs your editor with that name, waits for it to exit, seeks to 0, then reads17:55
mgzis there anything there that would get upset for you?17:55
mgzor maybe just a blank line at the top or something daft?17:57
dstroppaI believe no17:57
dstroppait opens up vi17:57
dstroppaI edit the file (replace the <enter…> with my text)17:57
dstroppasave and close17:57
mgzfeel free to poke at lbox text.go to work out why it's being fussy17:58
mgzvim's what I use so I'd expect it to be fine for you as well17:58
mgzdstroppa: any luck?18:05
dstroppatried vi and vim, same error18:06
dstroppalooking at text.go, but can see anything in particular18:07
mgzcould just add a log statement to dump the file name/contents before that error, see if that makes anything clearer18:09
dstroppamgz: looks like it's still reading the template18:26
dstroppaeven though the temp file is saved18:26
hazinhellso is safe mode the default?19:02
hatchon juju 1.16.4-precise has anyone else been experiencing 'unauthorized mongo access' errors?19:05
jamhatch: from where, to where? from the 'juju' CLI or from agents, or ? (It hasn't been reported before, but it is worth investigating)19:15
hatchjam so I just did a apt-get upgrade and now when I type `sudo juju bootstrap` I get that error19:16
jamhatch: so this is for local provider ?19:17
hatchcorrect19:17
jam(otherwise you wouldn't be using sudo, presumably)19:17
jamhatch: can you try "sudo juju bootstrap --debug" and then paste bin the result (it might have secrets if you want to be careful)19:17
hatchsure one sec19:18
jamhatch: also, what version of 'mongodb' is on your machine? (dpkg -l mongodb-server)19:20
hatchjam I think here are the relevant bits https://gist.github.com/hatched/3e8a13af98250c236c9d19:20
hatch1:2.2.4-0ubuntu1~ub19:20
jamhatch: what series are you on? (precise/raring/etc)19:21
hatchprecise19:21
hatchthese issues appeared after the update to ,419:21
jamso I'm not saying to do this *yet* but we do have mongodb-2.4.6 in the cloud-archive: sudo add-apt-repository cloud-archive:tools19:21
jamhatch: the actual changes of 1.16.3 vs 1.16.4 don't seem like they would be causing db auth problems, but I'll dig a bit19:22
hatchI saw some emails going by that talked about a juju specific mongodb19:22
hatchdid those land in .4?19:22
jamhatch: I just "juju destroy-environment; and then juju bootstrap" locally and it worked on precise, so it *might* be the newer mongodb19:22
jamhatch: no19:22
jamthat is going to be a while in the future19:23
hatchahh ok ok19:24
jamhatch: so I know we didn't intend to change anything about how we connect to the db in 1.16.4 vs 1.16.3, and I confirmed the diff doesn't appear to contain a change there.19:25
hatchvery odd...19:26
jamhatch: are you bootstrapping with a DB already configured or something like that ? (I wouldn't think you would get this far)19:26
hatchjam I'm going to say no....19:26
hatchI've tried deleting the local/ and environments/ but that doesn't appear to help19:28
jamhatch: well if you delete those, then you can't "juju destroy-environment" properly, which means you possibly *do* have a stale DB that we aren't aware of (maybe)19:30
hatchoh hmm19:30
hatchany idea on how I would wipe it clean?19:30
jamhatch: just to try it "juju destroy-environment -e local; sudo juju bootstrap -e local"19:30
jamor whatever you named it19:30
hatchsame19:30
hatchissue19:31
jamhatch: I'll try to install 2.2.4 here, but so far I have no luck reproducing your issue  (next step is to install the 1.16.4 binary that was built, because it might be flawed somehow vs building from trunk)19:35
hatchjam is there a way I could clear out my mongodb besides the destroy-environment call?19:36
jamhatch: btw, do you know about paste.canonical.com? it requires Auth tokens so is generally 'safe enough' when pasting private stuff.19:36
jamhatch: well, "create mongo journal dir: /home/jameinel/.juju/local/db/journal" so I'm 95% sure that deleting ~/.juju/local would have done that19:37
hatchahh ok that was my thought process as well19:37
hatchjam yeah I usually dont' use that paste because it doesn't allow edits19:39
jamhatch: can you paste your local config ?19:39
hatchsure19:39
hatchhttps://gist.github.com/hatched/72ce29821d4c56c7628019:40
hatchnothing changed in there since the update19:40
jamhatch: sure, you could *try* just commenting out the admin-secret19:40
jamas we should generate one for you if it isn't present19:40
jambut I haven't been able to reproduce the problem19:40
hatchok trying19:40
hatchnope :/19:41
hatchdarn19:41
jamhatch: I didn't expect much there, as there is no reason to expect the value there is invalid. I also can't reproduce on Precise with the jujud binary installed from the ppa and mongo from that ppa as well.19:41
jamhatch: maybe you can pastebin more of the log? In case there was a config earlier that is wierd19:42
jamweird19:42
jamnatefinch: I'm about to head to bed, any chance you can give this a look ? I'm skeptical that this is caused by 1.16.4 vs 1.16.3, but I'd really like to know what a root cause is19:43
hatchthanks for the help jam - maybe what I'll do is remove juju and mongo and start frash19:43
hatchfresh*19:44
hatchmaybe something got messed up in the update19:44
jamor maybe wallyworld or thumper depending on who logs in first (we're almost around to start-of-day NZ I believe)19:44
jamhatch: I would like to understand what is broken, but I can also understand you just want to get it working19:44
hatchwell the good news is that I don't need to test any new GUI work until tomorrow :)19:45
hatchhaha so I have until then19:45
jamits nearly 8am in NZ, so thumper should be around soon. and rogpeppe2 is often known as a very helpful fella :)19:45
jamthough its past his EOD, I believe19:46
rogpeppe2jam: it is :-)19:46
natefinchjam: I'm here19:46
natefinchjam: took a jaunt to the Lexington, MA office, since they wanted to see Ubuntu on my laptop (high DPI screen)19:46
jamnatefinch: k, brief summary, hatch upgraded to 1.16.4 from the ppa, and now when he tries to bootstrap it gives him unauthorized failures19:47
jamI'm unable to reproduce, even using Precise + mongo-2.2.4 + juju-1.16.4 from the PPA19:47
jamnatefinch: sounds fun19:47
jamhow far away is it for you?19:47
hatchnatefinch this is the error https://gist.github.com/hatched/3e8a13af98250c236c9d19:48
natefinch1/2 hour, not bad at all.  Had lunch with David Pitkin, old colleague from our younger startup days19:48
natefinchhatch: hmm.. interesting19:49
hatchI've tried deleting the environments/ and local/ as well as doing a destroy-environment and no luck19:49
jamnatefinch: a thought occurs, could it be something with apparmor ?19:50
jamit doesn't seem like it should be, but that unauthorized message looks odd to me19:50
natefinchyeah, I was looking at the unauthorized message19:51
jamlooks like it is stock mongo failures19:51
jamhttp://stackoverflow.com/questions/13850191/mongodb-set-user-password-to-access-to-db19:51
jamhatch: other things to check "what is ps -ef | grep mongod" look like19:53
jamwhat happens when you "juju destroy-environment -e local" and then check ps again19:53
jam(i'm wondering if you have a rogue mongodb process that for some reason isn't being stopped like it should)19:54
jamanyway, sleepytime19:54
hatchjam no change, 1 mongo process running19:54
hatchjam thanks for your help! have a good night19:54
natefinchhatch: I'm doing some investigating on this end.  trying to see if we changed some of the mongo login code or otherwise changed our form of access to mongo20:00
natefinchhatch - saw you and jam talking about mongo versions... just curious, you don't have to do it yet, but would it be a problem to upgrade 2.4.6?   I'm not convinced it'll fix anything, just want to get the lay of the land.20:03
hatchnatefinch nope no problem at all, it's just my testing box20:04
hatchnormal repos don't show a 2.4.6 version20:05
natefinchhatch: hmmm I must have a ppa for mongo20:05
natefinch2.4.6 is their most recent stable version (from just a few months ago)20:06
hatchlooking for another ppa20:08
hatchnatefinch here is my dpkg output https://gist.github.com/hatched/b2e72169891505be29d4 for mongo*20:11
natefinchahh yeah, that's what it was, mongodb-10gen20:13
hatchso I'm all up to date then it looks like20:13
natefinchyep, seems like it.  good20:14
hatchbasically I'm at the point where it looks like a R&R on Juju and Mongo is in order20:15
hatchsince noone else is having these issues heh20:15
natefinchyeah, it's weird.  It would be good for us to understand what happened so we can make sure it won't happen again, though.20:20
hatchyeah well I'm available to help but I will need to get it back working for tomorrow :)20:21
natefinchI know the feeling20:22
natefinchcertainly, if there's a point where you need to bail and reset everything, just let me know and go for it.20:22
hatchI can probably use ec2 tomorrow/Monday to give us some extra time20:24
natefinchhatch: if we can't get it figured out, I'll talk to jam, and we'll decide if we will gain anything by making life more difficult for you :)20:30
hatchhaha20:31
hatchsounds like a plan20:31
=== negronjl_ is now known as negronjl
natefinchhatch: very strange.... the code really looks totally right.... we create the db  with your admin secret as the password... unless the admin secret changed in the middle of bootstrap somehow, which seems impossible21:20
hatchheh yeah21:21
natefinchhatch: obviously *something* is going on21:21
thumpermorning21:22
natefinchthumper: morning21:22
hatchnatefinch when I ps -ef | grep mongod there is a mongod instance running21:22
hatchassuming that's supposed to be there21:22
hatch /usr/bin/mongod --auth --dbpath=/home/hatch/.juju/local/db21:22
natefinchhatch: yeah, it should be running.  That looks correct.21:23
natefinchthumper: hatch is having a problem bootstrapping the local provider after upgrading from the ppa to 1.16.4.  He's getting an unauthorized error from mongo during bootstrap21:24
hatchhttps://gist.github.com/hatched/3e8a13af98250c236c9d this is the error21:24
thumperweird...21:24
natefinchhatch: had you had mongo or juju local running before the upgrade?21:25
hatchnatefinch nope21:25
hatchI'm rebooting the machine now21:25
natefinchk21:25
hatchmaybe that'll fix it heh21:25
thumperhatch: are you bootstrapping using sudo?21:25
natefinchthumper: it won't let you bootstrap without sudo21:26
hatchthumper yes `sudo juju bootstrap` and 'local' is my default21:26
thumperhatch: if you go 'which juju' what does it say?21:26
hatch /usr/bin/juju21:27
hatchok the machine has been rebooted21:27
hatchand....21:27
hatch*drumroll*21:27
hatch.....longer drumrolll21:27
natefinchheh21:27
natefinchif that works, I'll eat my hat21:27
hatchbootstrapped21:27
thumperhaha21:28
hatch....w t h21:28
natefinchhaha21:28
natefinchgood thing I don't actually have a hat21:28
hatchlol21:28
thumpernatefinch: I'll buy one for you21:28
natefinchthumper: that's very kind of you21:28
thumpernatefinch: np21:28
hatchso...wow...why? heh21:28
hatchI even killed and restarted mongo21:28
thumperours is not to reason why, ours is just to reboot21:29
hatchhaha21:29
hatchdamn....that took so long to debug21:29
hatchI guess we should have just listened to the IT Crowd21:29
hatch"did you turn it off and back on again"21:29
natefinchstep 1: reboot21:29
hatchwell thanks everyone for their help haha21:30
natefinchI'm glad it's fixed.  I can't even... I don't...21:31
hatchwell honestly....I even killed and restarted mongo and it didn't help21:31
hatchso I have no idea what else was stuck in there causing it to break21:31
natefinchYEah,. that's the thing, I'd think killing mongo would have to be the same as rebooting21:32
thumperhmm...21:32
* thumper shrugs21:32
natefinchWhatever, I'm just glad I could be here to fix it for you ;)21:33
thumperwallyworld: I'm heading to the gym, if you are happy with my changes, can I get you to approve the MP so it lands?22:40
thumpercheers22:40
wallyworldthumper: done23:11

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