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

thumpermorning folks21:02
mwhudsonthumper: you haven't turned into a zombie then?21:05
thumperno... survived with all my lives21:06
hazmatthumper, fully encrypted email to public list?21:09
thumperhazmat: yeah, no idea what happened there21:09
* thumper is trying to work it out21:09
thumperI can't even open the item in my sent mail :-(21:10
thumperI wrote heaps21:10
thumperdamn21:10
hazmatfwereade_, i'm not convinced that the something-changed hook is actually a step forward compared to the default-hook impl.. the former requires rewriting charms with an entirely different frame of mind to utilize, while the later is a simple optimization that removes tedium.21:10
hazmatalthough both need a feature flag21:11
rick_h__thumper: defeated by the gpg :P21:29
thumperrick_h__: yeah...21:34
* thumper goes to make another coffee22:37
thumperlol - Panic: Invalid user tag "not touched" (PC=0x414676)22:52
thumperpanic: Invalid user tag ""22:52
thumpergnn,,,22:55
thumperhmm... even22:55
=== Guest79828 is now known as wallyworld
davecheneythumper: waigani menn0 https://github.com/juju/juju/pull/53123:24
menn0davecheney, thumper, waigani: and here's mine https://github.com/juju/juju/pull/50823:25
menn0davecheney: looking at yours now23:25
thumperhmm...23:26
wallyworldthumper: interesting lxc issue in bug 1357552 - some but not all containers can't see the http server on port 8040 which is used to provide tools into the containers via curl. sigh23:26
mupBug #1357552: lxc containers created, juju can't seen or communicate with them <landscape> <juju-core:Triaged> <juju-core 1.20:Triaged> <https://launchpad.net/bugs/1357552>23:26
thumperI'm wanting the git equivalent of 'bzr diff -r -2..-1'23:27
thumperI want the diff of the last merge23:27
thumpergit diff HEAD^ HEAD doesn't quite do it23:27
thumperas it shows the last commit, not the last merge diff23:27
thumperany git gurus?23:27
thumperwallyworld: that's weird23:27
thumperwallyworld: sounds like an lxc networking problem23:27
wallyworldwe have a few lxc issues at the moment23:28
* thumper nods23:28
wallyworld:-(23:28
wallyworldi could understand if all containers failed23:28
wallyworldbut not some23:28
wallyworldthumper: i'm thinking we should just mount a host dir into the container and grab the tools from there rather than a http server23:29
davecheneywallyworld: why not use wget -c23:29
wallyworldi wonder if that will work for nested23:29
menn0thumper: does "git show -m <sha>" give you what you want?23:29
davecheneythen it'll loop automagically23:29
thumperwallyworld: I'd really prefer if we didn't treat lxc too specially23:30
thumperbut I can see the desire23:30
wallyworlddavecheney: i have no idea, someone else used curl23:30
thumpermenn0: shows the last commit23:30
thumpernot the last merge23:30
wallyworldthumper: lxc is already special - there's a big hack in machine agent to start the http server :-(23:30
thumperwallyworld: yeah, but we are changing that aren't we?23:31
thumperwe want machine 0 to be a container23:31
thumperany change like this just makes that move harder23:31
wallyworldthumper: sure, but we do need a way to get stuff passed in23:31
thumperagreed23:31
thumperbut lets not make it hard for us to move where we want to go23:32
wallyworldhow is mounting a host dir making it hard? don't we want to do that anyway for charm develppment?23:33
menn0thumper: does this help? http://stackoverflow.com/a/733558023:33
thumperwallyworld: yes we do (ish)23:35
thumperhah... found out why we are now panicing making user tags23:37
thumperin the past, when we created a user tag from a string, there was no validation23:37
thumpernow there is23:37
davecheneythumper: BOMM!23:37
davecheneynames.NewXXXTag is only for testing23:37
davecheneyor when you are very very sure that what you are passing it is a valid tag23:38
davecheneyin which case, you should probably just use names.ParseXXXTag23:38
thumpershould still be valid though23:39
davecheneywhat is the line ?23:39
thumperenvirons/cloudinit_test.go line 49 ish23:40
thumperalthough I have another23:41
thumperTag:        names.NewUserTag(info.APICredentials().User),23:41
thumperfrom juju/api.go23:41
thumperseems that the user is blank23:41
thumperblank isn't a valid tag23:41
thumpers/tag/user/23:41
thumpergrr23:41
davecheneybingo23:41
davecheneythumper: why do the apiserver tests embed another test suite ?23:42
davecheneytype rsyslogSuite struct { testing.JujuConnSuite *commontesting.EnvironWatcherTest23:42
thumperNFI23:42
davecheneythe embedding with a pointer means that the EnvironWEatcherTets are run when the rsyslogSuite tests are rung23:42
davecheneyrun23:42
thumperah...23:42
thumperyes, that is by design23:42
davecheneycontinue23:42
* thumper thinks back23:43
davecheney        s.EnvironWatcherTest = commontesting.NewEnvironWatcherTest(23:43
davecheney                api, s.State, s.resources, commontesting.NoSecrets)23:43
davecheneyoh23:43
thumperthere were situations where each other test had a copy of the common test functions23:43
davecheneythis is somet facade thing23:43
thumperI consolidated them23:43
thumperyeah23:43
davecheneyhmm23:43
davecheneyi still don't see what it does23:43
thumperit isn't great23:43
thumperit repeats a lot of stuff23:43
thumperbut it is better than it was23:44
davecheneywell23:44
davecheneyi sort of do23:44
thumperI agree it isn't correct yet23:44
thumperjust 'less shit'23:44
davecheney'cos it is this logic that does the canAuth("") logic23:44
davecheneylucky(~/src/github.com/juju/juju/state/apiserver) % grep -e 'can.*(\"' -r *23:46
davecheneycommon/environwatcher.go:       if !canWatch("") {23:46
davecheneycommon/environwatcher.go:       if !canReadSecrets("") {23:46
davecheneycommon/environmachineswatcher.go:       if !canWatch("") {23:46
davecheneyprovisioner/provisioner.go:     if !canWatch("") {23:46
davecheneythe best i can make from this logic is23:46
davecheneyif !anyone is allowed to watch ...23:46
menn0davecheney: review done23:52
davecheneyta23:55
wallyworldthumper: you are assigned to bug 1320543, are you working on it?23:57
mupBug #1320543: debug-log uses internal names for filtering <debug-log> <usability> <juju-core:Triaged by thumper> <https://launchpad.net/bugs/1320543>23:57
thumperwallyworld: no23:57
wallyworldok23:57
* wallyworld unassigns23:57

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