/srv/irclogs.ubuntu.com/2014/07/16/#juju-dev.txt

thumpertwice in two days I'm happy I disabled pushing to upstream00:04
thumperas it has saved my arse00:04
wallyworld?00:04
wallyworldsinzui: you finished with tim?00:05
thumperwallyworld: yeah, I'm sufficiently whipped00:06
wallyworldlol00:06
thumpersinzui: https://github.com/juju/juju/pull/31400:06
thumpermenn0: hangout now or after lunch?00:07
menn0thumper: now is fine with me00:07
thumpermenn0: https://plus.google.com/hangouts/_/canonical.com/upgrades00:08
wallyworlddavecheney: what's the staus of the potentio mgo bug? have you managed to reproduce in a way that a bug can be filed?00:17
wallyworldsinzui: you got time for a quick chat?00:39
jrwrenmenn0: haven't caught you online in a week-ish.  About that regex... I found it an interesting difference between go regex and perl/python. \d matches unicode digits in python.  Thanks for the discussion00:49
menn0jrwren: yeah, sorry. I've had a several days off over the last week and a bit00:50
menn0jrwren: thanks for following up on the regex differences. good to know!00:50
jrwrenno worries. I just meant to pick up that conversation with you again.00:50
sinzuiwallyworld, I am available now00:57
wallyworldsinzui: great, wanna rejoin the hangout from before?00:57
wallyworldhttps://plus.google.com/hangouts/_/canonical.com/juju-release00:57
davecheneywallyworld: no update01:01
davecheneysorry01:01
davecheneyother bugs to fix01:01
davecheneyi can see there is an issue wher emongo eats the eerror01:01
davecheneybut haven't investgated further01:02
wallyworlddavecheney: otp, will ping you soon01:02
davecheneywallyworld: noted01:03
wallyworlddavecheney: it's becoming critical we get this issue looked at upstream. is there any way you could get enough info together to file a bug?01:43
davecheney        if strings.HasPrefix(tag, "environment-") {01:43
davecheney                return ops, nil01:43
davecheney        }01:43
davecheneyark!01:43
davecheneywallyworld: i'll send you what I have01:44
davecheneywhich isn't mich01:44
davecheneywallyworld: http://paste.ubuntu.com/7801230/01:44
wallyworlddavecheney: i was hoping you'd be abe to progress it to the point of filing the bug. do i need to ask thumper for some of your time?01:44
davecheney^ that's it01:44
davecheneywallyworld: yes01:44
davecheneyi am working on the Ci blocking windows bug01:44
wallyworldthumper: consider yourself asked01:44
wallyworldit can come after the CI blocking bug is fixed01:45
davecheneywallyworld: fyi, i'm wasting^h^h^^h^h^h^h spending all today setting up a windows dev environment01:47
davecheneygoing back to the mgo bug01:48
wallyworldoh, you have my sympathies :-(01:48
wallyworlddavecheney: i'd rather a kick in the bollocks than having to deal with that01:48
davecheneywhat I see is when we have test failures, they are usually acompanied by the additional debugging in the patch above firing01:48
wallyworldok. so seems like it would be possible to package up a bug report which illustrates or at least explains the problem01:49
wallyworldin enough detail that it hopefully is uncontentios to fix01:50
davecheneyall i can show is the symptoms at the moment01:50
davecheneythumper: state/annotator.go insertOps01:53
davecheney^ me shakes head01:53
davecheneywallyworld: thumper, do I even want to ask if there is windows support for bzr ?02:27
thumperdavecheney: yes02:28
thumperthis is02:28
davecheneynoice02:28
davecheneyhmm,02:35
davecheneythat wasn't too painful02:35
davecheneyno idea how i'm going to get a version of mongodb with ssl support02:35
thumperaah fuck02:57
thumperwallyworld: you around for a chat?02:58
wallyworldsure02:58
thumperwallyworld: https://plus.google.com/hangouts/_/gsz5xroyjpu4ty7ryxodhbqirya?authuser=1&hl=en02:58
davecheneywallyworld: thumper https://github.com/juju/utils/pull/1003:01
wallyworlddavecheney: +1, i assume you know the windows stuff :-)03:02
davecheneywallyworld: https://github.com/juju/juju/pull/31503:06
wallyworlddavecheney: LGTM03:07
davecheneysinzui: fix is landing for the win32 build failure03:10
davecheneyis there a way I can tickle the CI aperatus to trigger a build ?03:10
davecheneyomg03:12
davecheneyif juju doesn't build from the trunk of juju/utils I will throw a shoe03:13
davecheneyhmm03:14
* thumper dashing out for a bit03:29
thumperbbs03:29
wallyworldjam: hiya, no idea why this can't automatically merge, i'll do it by hand i guess, but could you please look at https://github.com/juju/errors/pull/303:40
jamwallyworld: because unless mgz set up the jobs only juju/juju is automated by the bot?03:40
jamwallyworld: you can't click the button because it finds a conflict between master and your branch03:41
wallyworldjam: but i hust pushed up my branch just then03:41
wallyworldso i'm not sure what the conflict is03:41
wallyworldi branch off tip of master, add the licence changes, pushed, and create the pr off that branch03:42
wallyworldi can merge by hand i guess03:42
jamwallyworld: so I'm having trouble finding the git syntax to copy just your fix-licenses branch into my local repository, when I figure that out, I'll let you know if I can find the merge issue03:45
wallyworldok03:45
wallyworldjam: i'm not so worried about the merge issue for now, i can just merge by hand if needed03:45
wallyworldjam: this one can be merged, created the same way https://github.com/juju/errgo/pull/703:48
jamwallyworld: $ git merge --no-commit --no-ff 890f25ff011baceede953804330b590cbac89c8303:52
jamCONFLICT (modify/delete): internals.go deleted in HEAD and modified in 890f25ff011baceede953804330b590cbac89c83. Version 890f25ff011baceede953804330b590cbac89c83 of internals.go left in tree.03:52
jamAuto-merging annotation.go03:52
jamAutomatic merge failed; fix conflicts and then commit the result.03:52
wallyworldjam: ok, thanks. i'll just delete that file. not sure why it got left there when I pulled from upstream03:54
jamwallyworld: your 'fix-licenses' version is not from the tip of juju/errors/master03:54
jamwallyworld: looking at the graph it is based off of "also update the readme"03:54
jamwhich doesn't include "use deep equals" and "merge pull request from howbazaar ..."03:55
wallyworldoh, bollocks. could have sworn i branched off master03:55
wallyworldok, thanks, will fix03:55
jamwallyworld: you probably branched off your *local* master03:55
jamyou have to do03:55
jamgit co master03:55
jamgit pull origin master03:55
jamgit co -b fix-licenses03:55
wallyworldsigh. i hate git03:55
wallyworldjam: fixed now, thank you03:58
jamwallyworld: happy to help, I got to learn a few more git commands, though probably that just means next time I need it I'll be googling again :)03:59
wallyworldlol, yeah i have to do that too03:59
wallyworldit never occurred to me i had branched off an old master04:00
wallyworldjam: here's a really trivial one. after this one, i need to branch the oher sub repos because 1.20 and master revs are different https://github.com/juju/schema/pull/204:03
jamwallyworld: as in you want a review? LGTM04:08
wallyworldjam: thanks, i really didn't need a review for that i guess04:08
wallyworldjam: guess who drew the short straw in having to fox the licence balls up?04:08
wallyworld:-(04:08
jamwallyworld: clearly Martin04:09
jamI actually haven't seen mgz/bz2/… around in the last couple of days, is he on vacation? or just swap days after the sprint?04:09
wallyworldjust swap days04:10
wallyworldshould be back today04:10
jamwallyworld: yeah, I think for the licensing fixes, as long as we know we want LGPL then it is just trivial and you can just merge them.04:10
wallyworldjam: btw, the sub repos are still merged by hand, hence i'm not too worried about desc, title should be self evident04:10
tasdomasis there a way to create a juju environment with a mongo instance that is accessible by the mongo client?04:18
tasdomasI've run into a strange problem where a txn works in tests, but seems to be applied only partially in an ec2 environment04:23
jamtasdomas: the plan is to explicitly restrict that (I think today you can technically get to it, but you have to have the right user/password)04:24
jamtasdomas: if you really need it, I would use SSH and port forwarding04:25
tasdomasjam, what do you mean by ssh and port forwarding? Forward the port for mongo?04:28
jamssh $MACHINE_0 -L 37017:localhost:37017 and then you connect to your local machine at 3701704:28
jammongo localhost:37017/juju04:28
jamyou'll need the username and password from machine-0 IIRC04:29
wallyworlddavecheney: in utils repo, there's a zfile_windows.go that says it has been automatically generated. was that checked in my mistake do you think?04:29
jam'machine-0' I believe is the username, but the password is randomly generated and in /var/lib/juju/agents/machine-0/agent.conf04:29
tasdomasjam, thanks04:30
jamtasdomas: I've had hard times getting mongo to play well with authenticated connections04:32
jamyou *might* need to connect to the admin db first to login, and then switch04:32
tasdomasjam, the issue I am trying to debug is this: http://paste.ubuntu.com/7801746/04:42
tasdomasa []txn.Op runs without any apparent errors, but the end result does not match what should actually have happened04:43
jamtasdomas: offhand I don't know what Assert: d- means04:44
tasdomasjam, it's txn.DocMissing04:45
jamtasdomas: so the Insert there has a pointer rather than a detailed struct?04:46
jamIIRC you can't do stuff to objects created earlier in the same transaction (I could be completely wrong)04:46
jambut if the first step was creating the doc, it doesn't exist for you to add the item to its set.04:46
jamtasdomas: but *my* mongo + transactions knowledge is pretty weak. You're better off chatting with fwereade if you and he can overlap in time.04:47
tasdomasjam, hm, thanks for the suggestion04:48
jamwallyworld: have you done any TXN stuff?04:48
tasdomasjam, the weird part is that those ops work in tests and that the whole transaction does not abort04:48
wallyworldjam: in what context?04:48
jamI thought it was you who commented on being able to do stuff later in a transaction to stuff earlier04:48
wallyworldjam: the asserts are evaluated once at the start of the txn04:49
wallyworldso ops that happen laster on can't have asserts that depend on previous ops in that same txn04:50
wallyworldkinda sucks :-(04:50
wallyworldbut that's how mgo driver has been written04:50
tasdomaswallyworld, thanks04:50
wallyworldnp04:50
jamtasdomas: the asserts I see there are stuff like "value ne dead"04:53
jamwhich nil != dead, right?04:53
tasdomasjam, I think so04:53
jamtasdomas: anyway, my guess is that the "if the doc doesn't exist insert it" is succeeding, but it isn't letting the "add this value to the set" work04:54
jamso maybe if you change the inserted doc to include the new port?04:54
jamI really don't know04:54
jambut there aren't any asserts there that would fail04:54
jamthus the transaction will succeed04:54
tasdomasjam, yeah - that's what I'm rewriting this to now04:54
jamtasdomas: I would have thought that you could create and then update an object, but maybe the ordering of a transaction isn't really guaranteed, and thus it could try to apply the update before the create.04:55
jamand thus, can't do anything04:55
tasdomasjam, makes sense04:55
* thumper groans while studying code...04:56
jamthumper: don't you groan for pretty much anything? :)04:57
thumperjam: in this particular instance I'm groaning because what I though would be simple, isn't04:58
* thumper ungroans04:59
=== uru is now known as urulama
davecheneywallyworld: no, that is correct05:19
wallyworldok05:19
davecheneyit is generated then comitted05:19
wallyworldthanks05:19
* thumper seems to be running around in circles05:28
thumperok, stopped running around in circles05:46
thumpermoar tests tomorrow05:46
thumpermenn0: I'm getting close :)05:46
thumperhmm if dimitern is arriving, time to leave05:47
* thumper waves05:47
dimitern:D05:47
jammorning dimitern05:49
dimiternmorning jam05:51
dimitern(which reminds me to have some breakfast :)05:51
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
dimiternTheMue, jam, vladk, others? review on https://github.com/juju/juju/pull/318 much appreciated - finalizing prefer-ipv6 flag implementation07:51
=== psivaa-off is now known as psivaa
* dimitern needs to step out for 1/2 h07:52
jamdimitern: quid-pro-quo? https://github.com/juju/juju/pull/31707:52
TheMuemorning07:53
TheMuedimitern, jam: will take a look into both07:53
TheMuejam: ping07:57
jamTheMue: yes?07:57
jammorning, btw07:57
TheMuejam: on GH where can I see who is allowed to merge code via $$merge$$? or is everybode allowed?08:00
TheMuejam: otherwise I’ll merge an external provided code (like I’ve done on LP last week) ;)08:00
jamTheMue: AFAIK the people who are listed as part of the "juju" team (with their membership being public) are allowed to vote $$merge$$.08:01
jamTheMue:  https://github.com/orgs/juju/members is the member list08:01
TheMuejam: ah, ok, thx, will take a look08:02
jamTheMue: so you mean if you review code, you want to check if the user can vote merge for themselves?08:02
jamthat would probably be the list08:02
TheMuejam: yes, exactly. the code is reviewed. the contributor is not on the list, so I’ll merge it08:03
TheMue…oooOOO( After adding a card, learned from last time. *smile* )08:04
EgoistHello08:20
Egoistwhy juju execute the same hook few times one the same unit?08:21
Egoiston*08:26
fwereadeEgoist, hi, depends what hook you mean08:27
fwereadeEgoist, and when08:27
fwereadeEgoist, https://juju.ubuntu.com/docs/authors-charm-hooks.html08:28
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
TheMuejam: you’ve got a review08:40
jamfwereade: hey, good to see you around.08:41
jamfwereade: I was hoping you might be able to find time to help me with cloudsigma reviews now that you're back08:42
jamTheMue: are you seeing user photos for github users being broken and replaced by text strings? Or is it just me?08:44
TheMuejam: hehe, already wanted to ask the same. it’s broken here too. already wondered.08:47
jamTheMue: yeah, I thought maybethey updated something so I went to upload a new image and it tells me "we can't use that image"… I stopped there.08:48
jamdimitern: I reviewed your patch https://github.com/juju/juju/pull/31808:48
TheMuejam: funnily the organization images are shown, but not the user images08:49
=== vladk is now known as vladk|offline
jambodie_: ping08:52
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
dimiternjam, thanks!09:02
Egoistfwereade, i mean -relation-changed, when add more unit to service09:03
Egoistfwereade, it'a a little strange because, hook who is done, starting again on the same unit09:03
fwereadeEgoist, relation-changed is always specific to a remote unit09:04
fwereadeEgoist, if there are 5 units of service S and 2 units of service T09:05
fwereadeEgoist, each unit of T will see a -joined and a -changed for each of the 5 units of S09:05
fwereadeEgoist, the $JUJU_REMOTE_UNIT var tells you which one you're responding to09:06
Egoistfwereade, yeah, but when relation-changed is finished on every related unit, it should be over, and while new unit is not added, relation changed should do nothing09:09
Egoistright?09:09
fwereadeEgoist, it'll also fire whenever a remote unit writes new settings09:10
fwereadeEgoist, if you're writing a relation-changed hook you need to look at what that remote unit has set, and you probably need to respond to it09:10
Egoistok, get it :)09:13
TheMueouch, looks like GH is down now09:13
Egoistfwereade, but it's not possible, executing relation-get every ten seconds, and it not stop :/09:15
=== vladk is now known as vladk|offline
fwereadeEgoist, so you're seeing relation-changed firing again and again forever?09:16
fwereadeEgoist, can you describe the situation a bit more?09:17
fwereadeEgoist, eg just the conversation between two particular units you're having trouble with?09:19
Egoistfwereade, no it happen when i attach another unit to service09:20
Egoistthis new unit firing relation-changed again and again, and it won't stop09:21
=== vladk|offline is now known as vladk
Egoistit's hard to describe, in relation-changed i just getting data from relation and config, using this data make change on istalled software on unit, and basically that's it09:28
Egoistfwereade, and relation-changed return true at the end09:29
jamfwereade:  or mattyw: as OCR, care for a reasonably trivial review: https://github.com/juju/utils/pull/1309:29
mattywjam, why has that file be renamed?09:30
jammattyw: because _linux is only compiled on linux09:30
mattyw^^ (not sure what other question I could ask)09:30
jamwhich isn't darwin09:30
jam(OS X)09:30
mattywjam, ok09:30
jamor BSD or whatever else for that matter09:30
fwereadeEgoist, well it will certainly fire it once for every remote unit, and it may do so more if the settings are changing -- are you seeing it again and again for the same remote unit? or cycling through all the remote units? and are the settings for the relevant units definitely not changing?09:31
jambut with "posix" it should compile everywhere that has Posix semantics, which should be just fine for a 'symlink' thing.09:31
mattywjam, ah sorry - github wasn't drawing your description for me09:31
mattywI see it now09:31
jammattyw: how nice of it09:32
jamthanks mattyw09:33
Egoistfwereade, i make a little change in code, and it stopped, so maybe it was a bug in code09:41
fwereadeEgoist, could be -- thanks for letting me know09:42
jamespagedimitern, around? is it possible to have a MAAS environment use an interfaces/bridge other than br0?09:43
jamespagefor LXC/KVM instances?09:43
dimiternjamespage, afaik there's a setting you need to tweak for that09:44
fwereadejamespage, the network-bridge config setting might be what you're looking for09:44
dimiternjamespage, fwereade, right09:44
jamespagefwereade, dimitern: that sounds like the one09:49
mattywdavecheney, feel free to land it - or at least try to09:51
Egoistis there any way to get how many units is in service, but not from command line, i need that in code?09:53
fwereadeEgoist, not really -- you should expect that the number could change at any time, but that you'll be informed by appropriate hooks running09:57
fwereadeEgoist, what are you trying to do?09:58
Egoistfwereade, because in code i use relation-list, and it not alway listed all units, sometimes one is missing10:17
fwereadeEgoist, it'll tell you about the units you're expected to know about based on what hooks have run10:17
fwereadeEgoist, if you haven't seen the -joined hook for unit X yet, you won't see in in relation-list10:17
fwereadewallyworld, sorry I'm out of touch: do we have an ETA for in-environment storage? I got the impression it was nearly done, but not quite10:19
wallyworldfwereade: the api is done and functional and in the blobstorage repo; the refactoring work to change the juju code to store tools and charms etc is yet to be done10:20
wallyworldfwereade: there's ongoing debate about the charm storage side of things that needs to be sorted out also10:21
fwereadewallyworld, so I guess we can't yet fix it for manual/local/cloudsigma providers10:22
wallyworldfwereade: we can - that's on the immediate todo list. we've already started the Environ api changes and there's a wip branch to internalise the Strorage() facility10:22
wallyworldfwereade: significant refactoring was done at the sprint; the StateInfo() api is almost gone; replaced by a StateServerInstances() api10:23
fwereadewallyworld, ooh! can I direct you at https://github.com/juju/juju/pull/174/files please? just to inform them what needs to be done (or rather doesn't need to be done any more?)?10:24
wallyworldlooking10:24
fwereadewallyworld, if Storage() can be internalised, I guess it's safe to return a null storage now?10:24
wallyworldfwereade: Storage() on ENviron will be gone. but it's still needed for now for tools and charms10:25
wallyworldwe're not quite there yet10:25
wallyworldfwereade: the stuff in that pr above will be needed until we do more work to remove the need for storage. not quite there yet but making good progress10:28
fwereadewallyworld, ok, cool10:33
fwereadewallyworld, would you give them a heads up all the same please10:33
wallyworldfwereade: sure,who is "them". do i just talk to nate?10:34
jamwallyworld: "them" is Altoros who are writing the CloudSigma provider which has to use the "manual" method for storage because CloudSigma itself doesn't provide a storage solution10:38
wallyworldjam: ok, thanks. sadly we are "out of sync" by a few of weeks. i reckon we'll be in a good place to be able to ditch mandatory provider storage by that time10:39
* jam clearly thinks "air quotes" are the way of the future10:39
wallyworldbut we need to sync with the charm store guys on charm storager so it's not entirely under out control10:40
wallyworldseems like a waste to commit code for only a short time but i don't hink we can hold off on the cloud sigma stuff for that long10:40
wallyworldnatefinch: can i leave it in your hands to deal with the gojsonschema licence issue? whether it's moved to a different repo, or just the LICENSE file added, or whatever10:50
jam1fwereade: maybe you remember best why gojsonschema wasn't merged into the github.com/juju namespace? Was it just evolving fast enough that they didn't want to do forced code review since they aren't directly in that group?10:51
dimiternjam1, standup?10:51
jam1dimitern: thanks, brt10:52
fwereadejam1, I'm sorry, I don't immediately recall -- mgz was more directly involved in the details at that stage iirc, and if not bodie_ will be able to say when he comes one10:52
natefinchwallyworld: sure10:53
wallyworld\o/10:53
wallyworldnatefinch: i asked because i thought you already had a relatioship with the dev(s) concerned10:54
natefinchwallyworld: I'm more than happy to do it.  I'm friendly with them, but otherwise no professional relationship, FYI.10:55
natefincham I the only one who gets duplicate copies of rogpeppe's mailing list posts?10:56
wallyworldi do sometimes i think10:56
rogpeppenatefinch: i send another copy when i find i've sent from the wrong Sender10:56
natefinchrogpeppe: Oh, I see10:57
rogpeppenatefinch: because (i believe) juju-dev and canonical-juju will reject posts unless they're from roger.peppe@canonical.com10:57
natefinchrogpeppe: right, that makes sense.  I never noticed they were from different senders.10:57
rogpeppenatefinch: unfortunately I haven't found a way to force gmail to always choose a particular sender address based on the destination address10:57
rogpeppenatefinch: and gmail doesn't show the sender by default, so i often forget to change it10:58
natefinchrogpeppe: I just have separate inboxes, so it's not a problem10:58
natefinchbut I can understand wanting a single inbox for everything, too10:58
natefinchman, setting CDPATH=$GOPATH/src is frigging amazing10:59
natefinchfrom anywhere I can do cd github.com/juju/juju and it goes to the right place11:01
dimiternjam1, TheMue, vladk, my g+ froze and now I can't go back :/11:07
jam1morning mgz11:08
mgzhey jam11:08
natefinchint54 is evidently not a defined type11:10
TheMuejam: your problem seems to be in apiserver/client_test.go11:30
jamTheMue: actually it is state/apiserver/client/api_test.go11:31
jambut there may be others11:31
TheMuejam: gna, but ok, it’s no small change11:32
voidspacemorning all11:36
dimiternso does it matter what you put between the $$ merge markers $$ ?11:44
natefinchdimitern: it's a regex that is $$\w$$   so, no spaces11:45
dimiternnatefinch, right! good to know, thanks :)11:45
perrito666morning11:45
dimiternmorning perrito666, voidspace11:45
natefinchdimitern: we changed it at the sprint last week, for $$lotsOfFunTimes$$11:46
voidspaceI thought it was \s+11:46
dimitern$$exactly$$11:46
voidspacedimitern: perrito666: o/ morning11:46
natefinchvoidspace: isn't \s whitespace?11:46
mgzI wonder if I should actually merge the change to make it a re match, it's potentially useful for less silly things11:47
voidspaceah, maybe \S+ then11:47
=== psivaa is now known as psivaa-lunch
katcomgz: i have to feed my pets, but then do you want to chat about the unit tests?12:40
mgzsure thing12:42
natefinchwwitzel3: I have to move our 1 on 1 for later today12:54
sinzuidimitern, is bug 1261780 still an issue now that we use golanf 1.2?12:55
_mup_Bug #1261780: go 1.1.2 TLS-enabled client does not accept our CACert <security> <tech-debt> <juju-core:Triaged> <https://launchpad.net/bugs/1261780>12:55
dimiternsinzui, i'll take a look13:02
wwitzel3natefinch: np13:06
dimiternsinzui, it seems that should be fixed in go 1.213:17
dimiternsinzui, had to check a few forums to make sure13:17
sinzuithank you dimitern13:17
sinzuinatefinch, can you help arrange a fix for bug 134272513:40
_mup_Bug #1342725: C:/Juju/lib/juju/nonce.txt does not exist, bootstrap failed in win <ci> <regression> <windows> <juju-core:Triaged> <https://launchpad.net/bugs/1342725>13:40
sinzuidimitern, fwereade , jam : can I be upgrades in this channel to update the topic which is months old14:02
sinzuis/upgrades/upgraded AKA moderator?14:02
dimiternsinzui, it's done via chanserv14:03
dimiternsinzui, and I think we all should be able to do it14:04
sinzuinot yet: #juju-dev :You're not a channel operato14:04
=== Ursinha is now known as Ursinha-afk
dimiternsinzui, try /msg ChanServ TOPIC #juju-dev <text>14:05
stokachuwe're seeing an issue where people are attempting to use juju bootstrap with kvm and it fails b/c they do have /usr/sbin in their path14:06
stokachuthis line: command := exec.Command("kvm-ok")14:06
stokachucould that possibly be changed to the full path of kvm-ok?14:06
dimiternstokachu, please file a bug about it14:07
sinzuistokachu, please report that to a bug and I will target it to 1.20.214:07
stokachui will was just curious on your thoughts14:07
dimiternstokachu, I think these commands like kvm-ok are supposed to be in the $PATH, and there are some checks about it in tests14:08
natefinchsinzui: I can help with that14:09
stokachudimitern, the only test i see related is it checking if the host os is ubuntu14:10
=== ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Bugs: 1 Critical, 147 High - https://bugs.launchpad.net/juju-core/
stokachusinzui, https://bugs.launchpad.net/juju-core/+bug/134274714:14
_mup_Bug #1342747: juju bootstrap fails if kvm-ok not in path <cloud-installer> <juju-core:New> <https://launchpad.net/bugs/1342747>14:14
sinzuithank you stokachu14:15
stokachunp :D14:16
lazyPowerI have a user in #juju asking what ports he needs to keep open in UFW to use juju. are there any other ports than the WSAPI port that he would need to open?14:19
natefinchlazyPower: that should be it, though he might want 22 open for SSH access14:20
lazyPowerthe wssapi port is 27017 by default right?14:20
natefinchlazyPower: that's the default mongo port14:21
natefinchlazyPower: hang on, I'll find it, I forget14:21
lazyPowerhaha yeah, i thought we used the mongodb port14:21
* lazyPower has mongo on the brain14:21
natefinchlazyPower: used to be we went straight to mongo, we've stopped doing that and it's all through the API now14:22
dimiternlazyPower, it's 17017 for the api and 37017 for mongo, but the latter shouldn't be needed14:22
lazyPoweri like that we did that. It'll be easier to replace mongo if we ever do that.14:22
dimiternlazyPower, so 17017 + 22 should be opened14:23
lazyPowerdimitern: thanks *hattip*14:24
dimiternlazyPower, depending on the provider, if httpstorage is used you need to open its port as well (there are environ settings for some of those)14:24
dimiternlazyPower, np14:24
=== Ursinha-afk is now known as Ursinha
=== psivaa-lunch is now known as psivaa
natefincharg..... the fix for the windows client is going to be annoying.  it's one of those things where we used to just assume everything was ubuntu, but now we have *some* windows code, and that's screwing us up.  And so we have to change the signature of functions to pass in a series14:53
perrito666natefinch: yup, my patch, Which I answered in the thread about that same issue does a very tiny fix and touches like 20 files14:56
alexisbTheMue, you keep joining and dropping :)15:01
TheMuealexisb: yeah, it shows me an error and says I shall retry later :(15:01
TheMuealexisb: and so I retry :)15:01
alexisbTheMue, do you have topics for today?15:02
TheMuealexisb: nothing special. feeling good and currently investigating in LXC and IPv615:02
alexisbTheMue, alright, I can give you 30 minutes back, I know I could use them this week :)15:03
TheMuealexisb: fine, then we’ll see next time again. ;)15:04
perrito666natefinch: stand up?15:06
voidspaceok, so not such a successful test run - 22509 lines of output...15:07
voidspacewallyworld: ping15:10
voidspacenatefinch: ping15:21
alexisbjam1, ping15:55
alexisbjam ping15:58
jam1alexisb: pong16:31
jam1I've been trying to connect to the hangout, but I keep getting "could not start video because of an error"16:31
natefinchjam1: is there an easy way to see who has signed the canonical CLA?16:32
alexisbjam1, yeah the hangouts seem to be acting all funny today16:33
alexisbjohn and I are on16:33
alexisbbut no one else16:33
jam1natefinch: there is a launchpad group, just a sec16:34
jam1natefinch: https://launchpad.net/~contributor-agreement-canonical16:34
alexisblol jam1 everyone keeps joining and dropping16:36
alexisbjust John and i on16:36
voidspacemy internet still sucks16:36
voidspaceI'll sort it out properly on my return from Romania16:36
voidspaceI do at least have a phone I can tether as a backup now16:37
voidspaceI have 2.6Mbit downstream and that's the best I've had for over a month!16:37
voidspacealexisb: enjoy your holiday. I didn't think managers were *allowed* to go away for ten days ;-)16:37
alexisb:)16:39
alexisbkatco, fyi, got asked for status on this bug: https://bugs.launchpad.net/juju-core/+bug/131947516:40
_mup_Bug #1319475: Juju should support new signing format <ec2-provider> <goamz:New> <juju-core:Triaged by cox-katherine-e> <https://launchpad.net/bugs/1319475>16:40
=== vladk is now known as vladk|offline
alexisbif you have any updates might be good to add a comment16:40
katcoalexisb: right, sorry i will do so. short of it is: we're waiting on a new version of goamz from gustavo16:41
mfoordnatefinch: ping16:41
natefinchmfoord: yo16:41
niemeyerkatco, alexisb: Oh?16:41
alexisbkatco, cool, we just want to communicate that in the bug so I have a place to pull status16:41
katcoalexisb: will do16:42
niemeyerkatco, alexisb: I'm not on the hook to provide a new version of goamz..16:42
niemeyerkatco, alexisb: .. that I know of16:42
katconiemeyer: yes, sorry, it's been bandied about a bit. ian sent another email and told me to shelve it for now16:42
niemeyerkatco: Ok, so saying you're waiting on me for it is not quite correct16:43
katconiemeyer: i apologize. i was told to shelve this for now pending a change to goamz, and how that will occur is up in the air as i understand it.16:43
katconiemeyer: hopefully that makes more sense16:44
alexisbwho owns goamz?16:44
niemeyerkatco, alexisb: I really have no idea about the internal communication that took place around the issue. On my side I was asked to "merge a fork" and then I asked what the fork comprises and what do we want from it, which was not answered.. so I really have no intention or means of moving forward. The ball is on someone else's side at this point.16:45
katcoalexisb: it's a canonical library, but there are several community forks with the support we need for v4 already added16:45
alexisbniemeyer, can you please send me the thread you are referring to so I can follow-up16:46
alexisbkatco, thanks for the info16:46
katconiemeyer: i'll take an action item to have ian follow up. sorry for any confusion16:46
niemeyeralexisb: Done16:51
alexisbniemeyer, katco thank you!16:51
niemeyeralexisb, katco: I see there's a mail from Ian asking me a bunch of questions on the topic from yesterday too.. I'll answer that with CC16:54
alexisbniemeyer, thank you16:54
katconiemeyer: tyvm gustavo. i think the only additional context that's missing from that thread is that he asked me to shelve the analysis of the forks16:55
katconiemeyer: so perhaps a bit of confusion there. sorry about that.16:55
niemeyerkatco, alexisb: No problem17:13
mfoordhmmm... so it's at least possible that some of these problems are due to JujuConnSuite State/BackingState issues17:22
natefinchfwereade: the windows bug we have currently is due to using "current OS" when we should have used "target OS".  Really, it's because we used "we assume there's only one OS and that's Ubuntu" instead of "Let's actually determine what OS we're targetting"17:25
jam1natefinch: that would also solve running the test suite on Mac OSX, which would probably be easier to start with17:29
jam1I tried a couple of times, but for right now I just hack osversion_darwin to return "trusty" and most of the test suite passes.17:29
voidspacejam1: ping17:29
jam1voidspace: ?17:29
natefinchjam1: heh, interesting17:29
voidspacejam1: can you explain to me why the code is correct as written and my diff makes it wrong17:29
voidspacejam1: http://pastebin.ubuntu.com/7804510/17:29
natefinchjam1: OSX would be easier to start with if someone's willing to buy me a Macbook :)17:30
voidspacejam1: why do we set the password on the connection info to a hash of password and then change the password to the non-hashed version17:30
voidspacenote that my fix causes tests to pass when I copy sessions17:30
jam1voidspace: checking17:30
voidspacethanks17:30
natefinchI remember something about that hacky code where some of it is a hash and some is not.17:31
jam1voidspace: so the hash of the password is because we originalyl passed in the passwords via cloud-init17:31
jam1and that leaks the admin secret to everyoen17:31
jam1so we leak only the hash of the password17:31
jam1and on the first connect we switch back to the "real" password.17:31
voidspacejam1: this is in testing though17:31
jam1however, since axw's patch a long time ago17:31
jam1we don't do that17:31
jam1voidspace: but *bootstrap* does that17:31
jam1or did17:31
jam1we now set up mongo via "SSH" into the machine instead of cloud-init.17:32
voidspaceso we connect successfully with the hash (which is what we used originally)17:32
voidspaceand then we change the password to the real one17:32
voidspacethat was the idea17:32
voidspaceso we leaked the hash and then changed to the real password17:32
voidspacebut as this is in testing, my fix doesn't matter - it just changes us to use a consistent password17:33
voidspacewhich happens to be a hash17:33
voidspacenote that in the test connecting with the hash still worked17:33
voidspaceso something in this setup is still using the hash17:33
jam1voidspace: so you probably need to look into testing/mgo.go I would think17:33
voidspaceok17:34
voidspacejam1: cool17:34
voidspacethanks for the help17:34
voidspacewel.l, that change fixed all the apiserver tests17:34
voidspaceso it was definitely a big part of my problem17:34
voidspacetime to go jogging and do a full test run17:35
voidspaceit *might* be finished by the time I get back ;-)17:35
jam1voidspace: "resetAdminPasswordAndFetchDBNames" looks suspicious17:35
voidspaceI'll take a look17:35
voidspacethanks17:35
jam1voidspace: it looks like it is doing "admin.RemoveUser("admin") as part of resetting the db, I don't quite understand how removing the admin user allows us to use the database properly afterward17:38
jam1voidspace: It might be the "mongo lets us login as anyone if noone is configured" ?17:38
natefinchI believe that's true17:39
jam1natefinch: // We try for a while because we might succeed in17:39
jam1// connecting to mongo before the state has been17:39
jam1// initialized and the initial password set.17:39
jam1suspicious17:39
jam1voidspace: so the issue would appear that we are successfully logging in (and mgo is caching) the original hashed password, but then we immediately set the password to the non hashed version, but we don't update the mgo.Session17:40
jam1that sounds like an update we potentially need to do for real connections as wel17:41
perrito666jam1: runs mongod with --noauth and creates a new admin iirc17:41
jam1perrito666: we do that for real mongo (I think), but for the test suite?17:41
voidspacejam1: yep, that's the same problem we had in state.Open too which I had to fix17:41
voidspacejam1: making the fix in that test code causes *almost* all tests to pass with some of the watcher infrastructure doing session copying17:42
jam1voidspace: JujuConnSuite.tearDownConn17:42
perrito666jam1: I am reading the same tests for other stuff and it implies so, but I am not sure either17:42
voidspacenot quite all the tests though17:42
voidspacejam1: I'll come back to this in a bit - but this is great17:42
jam1if err := s.State.SetAdminMongoPassword(""); err != nil && serverAlive {17:42
jam1voidspace: fwiw I can't actually find a place where we set the password properly to juju/testing/DefaultMongoPassword17:47
jam1I see places where we appear to get rid of that password17:47
jam1voidspace: it is probably the dummy environment17:48
jam1as we have "juju/provider/dummy/environs.go: admin-secret: testing.defaultMongoPassword17:48
jam1voidspace: and there (I believe) it is.17:49
jam1juju/provider/dummy/environs.go17:49
jam1line 65417:49
jam1Vif err := st.SetAdminMongoPassword(utils.UserPasswordHash(password, utils.CompatSalt)); err != nil {17:49
jam1voidspace: I'm betting if you change that, you can change the testing/conn.go17:50
jam1voidspace: you'll want to confirm with axw, but I'm 95% sure that "juju bootstrap" no longer uses the hash of the password in real world scenarios17:50
voidspacejam1: thanks18:06
voidspaceappreciated18:06
=== vladk|offline is now known as vladk
katcoi'm having trouble getting gocheck to filter down to a single test; i'm executing "go test -gocheck.f ".*" github.com/juju/juju/cmd/juju/..." but it doesn't execute any tests. what am i doing wrong?18:48
ericsnowkatco: doesn't gocheck require that you be in the directory where the tests are?18:49
katcoericsnow: maybe that's why it's not working, but i thought it was just a wrapper around go test and so you could be anywhere18:50
ericsnowkatco: I haven't looked into it much but I ran into the same thing a while back18:51
katcoericsnow: the bootstrap tests are kind of slow, so i wanted to tighten up my testing cycles. let me try cding into the dir18:51
katcoericsnow: well, it seems that's working. ty sir :)18:52
ericsnowkatco: np18:53
hazmatare there things within a state server machine agent that connect back to itself on the api?19:09
bodie_https://github.com/juju/juju/pull/311 should be good to go btw19:14
hazmatanyone can help me diagnose a user issue.. post upgrade to 1.20.1 there env is basically broken19:19
hazmathttp://pastebin.ubuntu.com/7804968/19:19
hazmatafaics..  the underlying issue looks like some sort of timing issue .. juju starts mongodb up.. and the api worker tries to connect to it, succeeds, but does so after it triggers a timeout, which results in the api worker restarting19:19
hazmatalthough perhaps that normal, and subsequent connects are expected to succeed.. the subsequent api server is dying because it can't connect is a bit more relevant19:21
natefinchhazmat: I think that's normal19:26
natefinchbodie_: have you heard that we need a license on your go json schema code?19:26
bodie_yes19:26
natefinchbodie_: cool19:26
bodie_:)19:26
bodie_thanks for checking19:27
hazmatnatefinch, actually it does appear to that timing issue re connect from the subsequent restarts.. ie the last 100 lines of the machine-0.log is constant api server restarts and mongodb reconnects .. http://pastebin.ubuntu.com/7805073/19:27
=== alexisb is now known as alexisb_lunch
natefinchhazmat: is that a local provider environment?19:37
hazmatnatefinch, it is19:40
hazmatnatefinch, its hackedbellini's env19:43
natefinchhazmat, hackedbellini: can you dump the full logs?  Not really sure what could cause that.19:46
hackedbellininatefinch: here is the log from just after the agent is restarted: http://pastebin.ubuntu.com/7804968/19:47
hackedbelliniit continues spamming this after that: http://pastebin.ubuntu.com/7805073/19:47
hackedbellinifyi, our env (using lxc) was deployed on 1.16 (with sudo juju bootstrap at that time), we upgraded then to 1.18 and to 1.19 because of a bug (https://bugs.launchpad.net/juju-core/+bug/1325034)19:50
_mup_Bug #1325034: juju upgrade-juju on 1.18.3 upgraded my agents to 1.19.2 <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1325034>19:50
hackedbellinitoday we tried to move back to stable (1.20.1) and that happened just after doing a juju upgrade-juju (both juju/juju-core packages are updated to 1.20.1 from the stable ppa)19:50
natefinchso this was an environment deployed with sudo juju?19:50
natefinchone thing I see notably absent is the log lines about initiating the mongo replicaset19:51
hackedbellininatefinch: yes it was deployed with sudo. But it runs with the user "juju" now19:52
hackedbelliniI'll post the service files for you to see19:52
hackedbellinihere: http://pastebin.ubuntu.com/7805056/19:52
hackedbellinithose are the service files that start juju-db and juju-agent19:53
natefinchhackedbellini: so that looks correct20:06
natefinchactually,  I withdraw the comment about initiating.... forgot this was an existing environment, not bootstrap.... so used to these problems coming right at bootstrap time.20:11
hackedbellininatefinch: hahaha I see =P20:11
hackedbellininatefinch: is there any info you need, or anything you want me to try to do here? Just ask. Atm, my juju is totally broken, because of that issue, I can't even do a juju status :(20:12
natefinchyeah, juju status uses the API :/20:12
natefinchhang on20:16
hackedbellininp20:16
natefinchhackedbellini: could you dump your whole machine-0 log for me?  Or at least the stuff from just before you upgraded?20:28
hackedbellininatefinch: sure, just a minute =P20:29
hackedbellininatefinch: its sending the paste... I'll pm it to you20:33
natefinchcool20:33
hackedbellininatefinch: just sent you the log20:34
natefinchhackedbellini: looking20:35
natefinchI like the way ubuntu pastbin makes me log in to download the text I can see in my damn browser :/20:38
hackedbellininatefinch: hahaha. I'll send you a download link directly from our server here so you can get it using wget if you perfer20:39
=== vladk is now known as vladk|offline
natefinchhackedbellini: I have it, it's ok20:39
hackedbellininatefinch: I don't remember the exactly time I did the "juju upgrade-juju", but from the log the errorr started at 17:50 (it 14:50 here, the log is in utc =P)20:40
hackedbelliniit was*20:40
hackedbelliniprobably I did the juju upgrade-juju a little before that20:41
natefinchhackedbellini: we should put in some giant ****** LOOK OUT! HERE COMES AN UPGRADE!! ****** log message20:42
hackedbellininatefinch: hahahaha yeah, it for sure would be very useful! :)20:43
natefinchinstead all we get is "upgrade requested from 1.19.3-precise-amd64 to 1.20.1"20:44
hackedbellininatefinch: so indeed I started the upgrade at, surprisingly, 17:50:00 utc.20:45
natefinchhackedbellini: I saw that.  Nice timing20:45
hackedbellinihahahah20:45
natefinchthumper: hackedbellini upgraded his local environment from 1.19.3 to 1.20.1  (he'd previously upgraded from 1.18.3 to 1.19 through a bug).  And now his API won't start up.20:46
natefinchhackedbellini, thumper: so, previously, connecting to the API, we dialed "wss://192.168.99.5:17070/"  and now we're dialing "wss://localhost:17070/20:52
natefinchI remember we did change this code so that we always dial localhost on state machines, since they should always talk to their own APIs (otherwise they might connect to the API on another HA server)20:54
natefinchhackedbellini: is there anything unusual about the iptables on that machine?20:54
hackedbellininatefinch: could this be the issue? One thing we noticied is that there's noone listening on 17070 (netstat -nl | grep 17070 returns nothing)20:55
hackedbellininatefinch: what do you mean by unusual?20:55
natefinchhackedbellini: just wondering if maybe using the IP before was getting around some firewall issue... but if nothing's listening, obviously that a problem20:56
natefinchhackedbellini: I presume if you do 'ps -Al | grep jujud' you have a jujud running?20:58
natefinchthumper, hackedbellini:  I have to run in a couple minutes, unfortunately.  Previous engagement.20:58
hackedbellininatefinch: hrm, I don't know because I'm not the one who manages the network here (I just maintain juju at a user level without sudo privileges =P)20:59
hackedbelliniwhen talking to hazmat he said something about that problem... he said that maybe it was a timing issue... that the same process (the agent) should listen and then connect to 17070, but it was not happening20:59
hackedbellininatefinch: not at the moment. A workmate here turned juju agent down because of the spamming on the log. But yes, when the agent is running, I see juju on ps. Actually, I can see the jujud from the lxc machines when running that atm, but they are all spamming that wss issue21:00
natefinchhackedbellini: I gotta run.  hopefully thumper or wallyworld can help you when they fully wake up.21:01
hackedbellininatefinch: hahaha np. Thank you for you help so far! I'll not be here soon too (it's 18h in Brazil and soon I'll go home) so maybe I'll leave before they, like you said, fully wake up =P, but I'll be here tomorrow again at 15h utc21:03
natefinchhackedbellini: ok, we'll do whatever we can to help out.  I'm an hour behind you, so it's 17:00 here.21:04
hackedbellininatefinch: thank you so much for that :)21:05
natefinchhackedbellini: np21:05
* thumper is reading backlog21:05
thumperhackedbellini: how do you maintain juju without sudo? it needs sudo for lxc21:06
hackedbellinithumper: well, when I need to run something with sudo, I ask someone with sudo powers to do that for me21:07
hackedbellinibut usually I just "juju ssh <machine/service>" when I need to go inside an lxc21:07
thumperhackedbellini: ok, with the local provider the machine agent for machine 0 runs on the host with root privleges21:07
cmarsthumper, there's also unprivileged containers, https://www.stgraber.org/2014/01/17/lxc-1-0-unprivileged-containers/21:08
thumperalso, for some reason I'm yet to fathom, the logs were changed to be 0600 owned by the syslog user21:08
thumpercmars: I know21:08
thumpercmars: but they weren't done in time for us to use it properly21:09
thumpercmars: I have plans, but no time21:09
thumperhackedbellini: so you are unlikely to be able to look at the logs without sudo21:09
hackedbellinithumper: the logs I can see with no problem21:10
thumperhackedbellini: so far :-)21:10
thumperhackedbellini: it was changed recently21:10
hackedbelliniI can't sometimes edit a configuration file (like the agent.conf of the machine-0 =P)21:10
thumperhackedbellini: first thing I'd check is that the juju mongo db service is running21:11
thumperhackedbellini: then that the machine agent is running21:11
thumperhackedbellini: then check the logs of the machine agent21:11
hackedbellinithumper: also, about that sudo issue... we initially did the initial bootstrap using sudo (as it was a requirement at the time)21:11
hackedbellininow the configuration here (https://juju.ubuntu.com/docs/config-LXC.html) says that it doesn't need it anymore, that's the reason we changed the user running the agent to juju and some permissions (although some files are still owned by root)21:11
thumperhackedbellini: sudo is still needed for bootstrap, but not explicitly21:12
thumperwe now ask during bootstrap21:12
thumperhackedbellini: yeah, if you edited the upstart script, it will fail21:13
thumperhackedbellini: juju expects the agents to run as root21:13
thumperwe've talked about this before, but all hooks expect root21:13
hackedbellinithumper: mongodb is running. The machine agent is running (not atm because a workmate stopped it because it was spamming the 17070 port error), but it runs21:13
hackedbelliniI have a log from a very early hour today, it contains the log from the upgrade and all the spamming after. Do you want me to pm it to you?21:13
thumperhackedbellini: you could pastebin it21:13
hackedbellinithumper: hrmmm, so this config is wrong? http://pastebin.ubuntu.com/7805056/21:14
thumperhackedbellini: also, what did you change?21:14
hackedbellinithumper: sure, I'll pm you21:14
thumperhackedbellini: yes, that is wrong21:14
thumperhackedbellini: I recall seeing something like this before when the agent was trying to update mongo to be a replica set21:23
thumperhackedbellini: there was an early race condition21:23
thumperhackedbellini: where one part of the code thought it was done, but it wasn't21:23
thumperwwitzel3: did you do some of the replica set stuff?21:24
thumperI'm not familiar with it21:24
hackedbellinithumper: hrmmm, I see. Anything I can do to try to workaround that?21:24
thumperprobably, I just don't know what it is21:24
hackedbellinithumper: the only person here with sudo powers is going home now... is there anything you want me to test that requires sudo? Once he is gone, I can continue the tests just tomorrow, unfortunately :(21:38
thumperhackedbellini: I've been discussing the issue21:39
thumpermenn0 and I think we may know what happened21:39
thumperduring the 1.19 cycle, HA was added21:39
thumperbut only initializes HA when upgrading from 1.18 -> 1.2021:39
thumperas upgrades from dev -> prod have never been formally supported21:40
thumperwe *think* we may be able to trick the code into thinking it was upgrading from 1.1821:40
thumperso it initializes mongo properly21:40
* thumper quickly reads code21:40
hackedbellinithumper: hrmmm, very nice!!!21:41
hackedbelliniI asked my workmate to wait a little21:41
thumperhackedbellini: ok, this is a little hacky21:42
thumperhackedbellini: are you ready?21:42
hackedbellinithumper: ahhh, he just left... he said he was in a very hurry :(21:42
hackedbellinibut tell me what it is21:42
thumperok21:43
hackedbelliniI'll see if I can do, and if I can't, I'll write it down and ask him to do it tomorrow21:43
hackedbellinihahaha and no problem if it21:43
hackedbelliniit's a little hacky =P21:43
thumperyou need to edit the machine agent conf file21:45
thumperhackedbellini: based on your config, it should be here: /home/juju/.juju/local/agents/machine-0/agent.conf21:45
hackedbelliniyes, it's there indeed21:46
thumperhackedbellini: you need to change the line that has: upgradedToVersion:21:46
thumperhackedbellini: to say "1.18.4"21:46
thumperor something before "1.19" anyway21:46
thumperthat way when the machine agent starts21:46
thumperit goes "oh, you are pre-ha, let me fix that for you"21:46
thumperI *think* that'll fix it21:47
hackedbellinithumper: hrmm, I see. And after that, restart the agent service?21:47
thumperright21:47
menn0which needs sudo unfortunately...21:47
hackedbellinimenn0: yes, unfortunatly :(21:50
hackedbellinibut np, tomorrow I'll ask my workmate to do that and then tell you guys if it solved the problem =P21:50
hackedbellinibtw, do I need to do that on all agent.conf of my lxc machines?21:51
hackedbelliniI can't look at them right now, but probably they have upgradedToVersion: 1.19.3 too21:51
wwitzel3thumper: I worked on it a little yes, right when I first started, paired with nate21:54
* thumper is still trawling through emails21:56
hackedbelliniwell, I'm going now too, it's 19h here in Brazil =P. Thank you guys for all the attention. Let's hope tomorrow I come back here with good news21:56
menn0hackedbellini: I *think* you'll just need to update the agent conf for machine-0 (the API server)21:57
menn0hackedbellini: that's where the HA initialisation runs21:57
hackedbellinimenn0: nice. So, let's see what happens tomorrow21:58
hackedbellinigoing now. Cheers!21:58
* davecheney woke up swinging this morning22:21
thumpersinzui: you around?22:26
thumperdavecheney: I have a task for you...22:26
davecheneythumper: speak22:26
thumperdavecheney: it seems that there are many people, me included, that are unclear on the go compiler rules for conditional compilation22:27
thumperit seems that there are suffix rules, and special comment rules22:27
thumpercan I get you to summarise these to the mailing list?22:27
davecheneythumper: http://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool22:27
davecheneydone22:27
davecheneynext22:27
thumperand possibly to put themin the docs directory?22:27
thumpernice22:27
thumperperhaps linking to that blog post from the hacking doc22:28
davecheneythumper: will post to the list22:28
thumperwhere we have a section on different targets22:28
davecheneythumper: ok22:28
thumperthat may help people understand22:28
davecheneythumper: PR coming damn soon22:29
davecheneythumper: I cannot find said document22:39
thumperdavecheney: perhaps add to the style guide?22:40
perrito666davecheney: I would have gone by euro23:06
wallyworldsinzui: hey23:20
perrito666hey gm wallyworld23:20
wallyworldperrito666: evening23:21
wallyworldsinzui: i have a question about bug 1341589 if you are around23:22
_mup_Bug #1341589: Distribution tarball has licensing problems that prevent redistribution <juju-core:In Progress by wallyworld> <juju-core 1.20:In Progress by wallyworld> <https://launchpad.net/bugs/1341589>23:22
=== alexisb_lunch is now known as alexisb
voidspacewallyworld: so I found the cause of *almost* all the remaining test failures in my watcher session copying branch23:37
wallyworldvoidspace: hey, sorry i missed your ping last night, had fallen asleep at the keyboard23:37
voidspacewallyworld: unsurprisingly, JujuConnSuite is opening the state in a custom way and then changing the password23:37
wallyworld\o/23:37
voidspacewallyworld: haha23:37
voidspaceI thought you probably weren't around but I thought I'd try just in case23:38
wallyworldlol, you alomost got me23:38
thumpero/ voidspace23:38
wallyworldi woke up later to send an email23:38
voidspaceI believe you and axw have been working on changing JujuConnSuite?23:38
voidspaceI wonder if this code is about to go away anyway23:38
voidspacethumper: hi23:38
wallyworldnot directly, but yes we do need to do futher work and it may result in that code changing significantly23:39
voidspacewallyworld: the conn suite follows the pattern of using the hashed password, connecting and then changing the password23:39
voidspacewhich of course screws session copying because the password is out of date23:39
* thumper is taking kids to see a movie and will be working in town at a cafe23:39
voidspacehowever, I believe that production code no longer follows this pattern (using the hash) anyway23:39
* thumper doesn't want to see tinkerbell23:39
voidspacethumper: have fun23:39
voidspacehaha, I bet thumper really does...23:39
* thumper ignores voidspace23:40
voidspacewallyworld: so my belief is that I can just delete that little dance23:40
wallyworldvoidspace: i'm not 100% across the implementation detail (yet), but it seems if we can tweak the suite set up we can try and target the root cause23:40
thumpervoidspace: my kids are very jeleous about our marvel vans23:40
voidspacethumper: did you get some too?23:40
thumpers/our/your/23:40
voidspaceah, ha23:40
thumpermissed a y23:40
voidspaceyeah - I still like them23:40
voidspacethe red Iron Man ones especially23:40
wallyworldvoidspace: i don't think it does, there's a lot of legacy in jujuconnsuite23:41
thumperthey have gotten into the marvel movies this holidays23:41
wallyworldvoidspace: if you push ypur latest changes, we can take a look23:41
voidspacewallyworld: well, the simplest fix was a one line fix to just keep the password as the hash23:41
voidspacewallyworld: but that's not the *right* fix23:41
voidspacewallyworld: I have that pushed, hang on23:41
wallyworldvoidspace: that fix was in the test suite, right?23:42
voidspacethumper: ah, good stuff. I enjoy the marvel movies.23:42
voidspacewallyworld: right23:42
voidspacewallyworld: let me get you a link to that change23:42
wallyworldvoidspace: at this stage, the right fix is what allows us to ship 1.20.2 :-)23:42
wallyworldwe can clean up in trunk if needed23:42
voidspacehah... well23:42
voidspacejam did some digging for me and the right fix might be just as simple23:43
voidspaceI'm about to look at that now23:43
voidspaceit's nearly 1am but I still have jetlag :-/23:43
wallyworldvoidspace: ok, but get some sleep first :-)23:43
voidspaceI didn't get it for vegas23:43
wallyworldvoidspace: really appreciate the work on this one23:43
voidspacebut I normally do, so I'll stay up another hour I reckon23:43
wallyworldok, but don't feel obligated to :-)23:44
voidspacewallyworld: well, let's see how much I get actually done by Friday :-/23:44
voidspaceI'd like to get a chunk bitten out23:44
voidspaceas soon as I get tests passing I can work on the actual changes23:44
wallyworldyup, we'll pick up with where you get to23:44
wallyworldif i get time today, i'll look to see what ou've done, so keep your wip branch up to date :-)23:45
voidspacewallyworld: see the changes to juju/testing/conn.go in this branch https://github.com/voidspace/juju/compare/copy-sessions23:45
wallyworldlooking23:45
voidspacewallyworld: did you see the email I sent to juju-dev?23:45
voidspacethat branch only has the watcher changes23:45
voidspaceit doesn't have the transaction runner changes23:45
wallyworldah not yet, still getting through backlog23:45
voidspaceI summarised what I've done so far and gave three pastebins with the diffs23:46
wallyworldhopefully txn runner changes a lot easier than collection ones23:46
voidspacethe diffs are small as the problem is getting tests to pass23:46
wallyworldgreat will read23:46
voidspacewallyworld: they're much more isolated, yes23:46
wallyworldhopefully getting tests to pass is just a small fix with password23:46
voidspacejust three methods to change and all they do is copy the session and create a new transaction runner23:46
wallyworldyup, spnds right23:47
wallyworldsounds23:47
voidspacewallyworld: well, with this in place I have several test failures - down from a shitload23:47
wallyworldthat's a start23:47
voidspaceand that was already down from crap-tonne23:47
voidspaceso steady progress23:47
voidspaceyep, really a limited few failures now23:47
wallyworldseveral < shitload < fucktonne23:47
voidspace:-D23:47
wallyworldvoidspace: sounds like you're well on the way to having an almost complete fix we can take and finish and run with for next  week23:48
voidspaceI think that change in conn.go is actually a no-op as the password has already been set to the hash23:48
voidspacethe hash is actually set in the dummy provider23:48
bigjoolssinzui: I saw you triaged https://bugs.launchpad.net/maas/+bug/1341281, but I suspect the guy has messed up his network config23:48
voidspaceuju/provider/dummy/environs.go line 65423:48
_mup_Bug #1341281: MaaS does not report to juju that the bootstrap node is ready? <juju-core:Triaged> <juju-core 1.20:Triaged> <MAAS:Incomplete> <https://launchpad.net/bugs/1341281>23:48
voidspaceand that code is (we believe) out of date with the actual implementation now23:49
voidspacewallyworld: I'll leave my hack in place and shoot a separate email to axw about that23:49
wallyworldvoidspace: could be, i'd have to get across the implementation detail23:49
sinzuibigjools, I agree. I think getting more people might help close the issue. We don't want to see any more maas misadventures23:49
voidspaceright23:49
wallyworldvoidspace: yeah, that conn change is a no-op. also, master has diverged quite a bit from 1.20 - that conn code lives in testing in master but up a level in juju in 1.20. so we will have to backport your changes when master is finished23:54
voidspaceright23:54
voidspacegah, and then other tests *depend* on the password being "dummy-secret", hard coded23:57
voidspacee.g. provisioner_test23:57
wallyworldsigh23:57
sinzuidavecheney, et al, sorry, CI is running behind schedule because I tried to switch it over to the new scheduling rules. It wasn't a complete success. I don't think CI will see the queue revisions for another 2 hours23:58
voidspacewallyworld: so I'm going to kill the code that sets it to the hash instead23:58
davecheneysinzui: ok23:58
voidspacewell, as well23:58
wallyworldvoidspace: i think that's ok ottomh. let's get the tests passing and we can revisit and tweak the implementation with all known changes in place23:59
voidspacewallyworld: yep, I'll do another progress update tomorrow23:59
wallyworld\o/ thank you23:59

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