/srv/irclogs.ubuntu.com/2015/03/23/#juju-dev.txt

menn0wallyworld_: can I have a chat to you about one of the current CI blockers?01:12
wallyworld_sure01:13
menn0wallyworld_: hangout?01:13
wallyworld_menn0: https://plus.google.com/hangouts/_/canonical.com/tanzanite-stand01:14
menn0wallyworld_: i'm there now01:14
wallyworld_menn0: ping me when you're back01:45
wallyworld_menn0: i found where we have to update the cert stuff - i suspect that before we were using "*" as the cert host and that matched any string; now we also have IP addresses of the state server, we need to explicitly enumerate the fake hostnames we use01:48
wallyworld_we enumerate localhost and juju-apiserver, but not juju-mongodb01:49
wallyworld_this is in certupdater.go and the change to add juju-apiserver there was made back in Dec 14, so it looks like it's been a sleeper cell waiting all this time to explode01:50
wallyworld_the fix would be simply to add juju-mongodb in there so our fake mongo server name matches01:51
wallyworld_i don't think it was a good idea to use fake server names like we did when this cert stuff was first implemented01:52
menn0wallyworld_: yeah01:52
menn0wallyworld_: adding juju-mongodb is probably the best fix right now01:52
menn0wallyworld_: either that, or using separate certs for the API server and mongodb01:53
menn0wallyworld_: but that's a bigger change01:53
wallyworld_menn0: so i think this is a one line fix then, plus test change. you were looking to make the fix?01:55
menn0wallyworld_: yeah, i'll do it01:56
wallyworld_ok, i'll review01:56
menn0wallyworld_: I have a feeling there might also be a problem in 1.22 itself01:56
menn0wallyworld_: which I'm trying to prove/disprove now01:56
wallyworld_could be yeah01:56
menn0wallyworld_: i.e. if you restart juju or mongo you could end up with mongo using the wrong cert01:56
wallyworld_1.22.1 is open for fixes, so there's scope to do a fix for 1.2201:57
wallyworld_i suspect you're right it will be an issue01:57
menn0wallyworld_: I just haven't been able to make it happen yet with 1.2201:58
wallyworld_surprising01:58
axwwallyworld_: http://reviews.vapour.ws/r/1225/02:25
wallyworld_sure, will look in 502:25
axwwallyworld_: there was a natural split between the changes anyway - worker/storageprovisioner will be done spearately02:25
axwthanks02:25
wallyworld_ok02:25
menn0wallyworld_: ok I can make this mongo cert problem happen with 1.22 alone but only if I change or remove the upstart script for juju's mongo02:46
menn0wallyworld_: and then restart jujud02:46
menn0wallyworld_: this convinces jujud to write out a new server.pem02:46
wallyworld_joy, ok02:46
menn0wallyworld_: which has since been updated by the certupdater worker with specific addresses02:47
menn0wallyworld_: although it's hard to trigger I think it's worth fixing for 1.2202:47
wallyworld_we we need to patch 1.22, 1.23 and master02:47
menn0yep02:47
wallyworld_win02:47
menn0wallyworld_: the fix should be the same for all if we're just adding juju-mongodb the list of addresses02:48
wallyworld_yep02:48
wallyworld_at least the fix is trivial02:48
menn0wallyworld_: i'll try it out now and see if that definitely fixes it02:48
wallyworld_sounds good02:49
menn0wallyworld_: yep that works02:56
menn0updating bug 1434680 with findings and will then get patches ready02:56
mupBug #1434680: 1.22.0 cannot upgrade to 1.23-beta1 or 1.24-alpha1 <ci> <regression> <upgrade-juju> <juju-core:Triaged by menno.smits> <juju-core 1.22:In Progress by menno.smits> <juju-core 1.23:In Progress by menno.smits> <https://launchpad.net/bugs/1434680>02:56
wallyworld_whoot02:57
wallyworld_horrible bug02:58
menn0wallyworld_: yeah - really non-obvious03:08
menn0wallyworld_: from a security and least-surprise perspective it might be better to not use the same cert for mongodb and the apiserver03:09
menn0wallyworld: here's the fix for 1.22: http://reviews.vapour.ws/r/1226/03:26
wallyworldaxw: reviewed, i have asked for the fs cmd abstractions to be reworked to line up with what we currently do - we abstract at the logical api level, not the fs commands03:27
wallyworldmenn0: looking03:27
wallyworldmenn0: lgtm03:28
menn0wallyworld: thanks03:28
axwwallyworld: thanks03:28
wallyworldaxw: let me knoe if you disagree03:28
axwwallyworld: some of those commands are very linux-specific, so can't really be abstracted I think. will see what makes sense and reply03:29
axwwallyworld: re hidden file, I disagree since it's in the agent storage dir, not in the target one03:29
axwI did have it hidden initially, then figured it wasn't useful since it's exposed directly to charms anyway03:30
wallyworldfair enough03:30
wallyworldaxw: sure, np. i think though that the concept of "mount" or "tell me the target of this mount" could be abstracted eg on Windows it would be junctions or something03:30
menn0wallyworld: it's never easy... I think we're going to need some kind of special hack in 1.23 b/c of this bug03:36
menn0wallyworld: when upgrading from 1.22.0 the cert in stateservinginfo doesn't have "juju-mongodb"03:36
menn0wallyworld: when upgrading to 1.23 the updated server.pem gets written out using that cert, before certupdater can start and fix the problem03:37
menn0wallyworld: it's even to early for upgrade steps to fix them03:38
wallyworldmenn0: hmmm, we could stop 1.22 graduating from proposed03:38
menn0wallyworld: that might actually be the best course of action03:38
wallyworldbut there would still be some 1.22 deployments out there03:38
wallyworldi wonder if there's a manual work around we could document03:39
menn0wallyworld: the workaround would be to upgrade to 1.22.1 /before/ upgrading to 1.23 or later03:39
menn0wallyworld: or I can try and get some kind of hack in that fixes up the cert at jujud start time03:41
wallyworldi'd have to think it through - they started on 1.21, upgraded to 1.22.003:41
wallyworldwould an upgrade to 1.22.1 fix it03:41
menn0wallyworld: it would as long as 1.22.1 doesn't touch the juju-db upstart script03:42
menn0wallyworld: b/c if that changes then the new (broken) server.pem gets written out03:42
menn0wallyworld: alternatively we could remove eric's change from 1.23 that touches the upstart script03:42
menn0wallyworld: but that leaves thing working by coincidence. it's pretty fragile.03:43
wallyworldyeah, that sounds like a recipe for future issues03:43
* menn0 agrees03:43
wallyworldmaybe jujud could force a cert regen when it starts up03:44
wallyworldbut only if supported03:44
wallyworldie upgrades from older systems don't regenreate the certs03:44
menn0wallyworld: well, you don't want to regen the whole cert, because it needs to be the same across state servers03:44
menn0wallyworld: I think we can do something targetted that just fixes up the server hostnames field03:45
menn0if req'd03:45
wallyworldright, sorry, that's what i meant03:45
menn0wallyworld: let me have a look and see what that would look like03:45
wallyworldok03:45
axwwallyworld: PTAL03:58
wallyworldsure03:58
wallyworldaxw: ty, lgtm. i think it's nice to have the filesystem calls out of the main code04:02
axwwallyworld: it's a bit clearer if nothing else04:03
wallyworldyeah04:03
axwwallyworld: I'll have another branch up later that does the storageprovisioner bits, and then later today hopefully will have a branch up that drops the ec2 StartInstance volume code04:04
axwwallyworld: for the latter, I need to extend storageprovisioner API to allow it to watch environ config04:04
wallyworldsounds good04:04
menn0wallyworld: here's a standalone POC that updates the DNSNames in the cert04:39
menn0http://paste.ubuntu.com/10657968/04:39
wallyworldlooking04:39
menn0wallyworld: i'm thinking we do something like this in jujud soon after it loads it's config04:40
menn0wallyworld: perhaps updating the config immediate after the first load so that it has the correct DNSNames set04:40
menn0for future jujud starts04:41
menn0wallyworld: most of this could live in the certs package04:41
menn0wallyworld: in fact I see there's already some helpers in the certs package which could be used with this cert update code04:42
wallyworldmenn0: looks ok i think, and we'd abort of the cacert private key were missing, since in earlier juju we don't have it04:42
menn0wallyworld: ok04:43
menn0wallyworld: that would mean that people who had an old juju and then upgraded to 1.22.0 could still hit this problem04:44
wallyworldmenn0: if there's no ca cert private key, the cert updater doesn't do anything, as you need that private key to regenerate the certs, and we used to just throw the private key waway once the ca cert was generated04:44
menn0wallyworld: cool cool04:44
wallyworldso no private key = no problem04:45
menn0wallyworld: i'm running out of day to get this done04:45
wallyworldi can look at it04:45
menn0wallyworld: cool04:45
menn0i'll update the ticket again04:45
menn0wallyworld: not sure if you saw that the fix for 1.22.1 has merged04:46
wallyworldmenn0: is there a PR for master so we can unblock?04:46
wallyworldawesome, did notice yet04:46
wallyworldn't04:46
wallyworldi can forward port to master04:47
menn0wallyworld: no b/c we need to this cert updating hack for master and 1.2304:47
menn0wallyworld: without it upgrade from 1.22.0 are still broken04:47
wallyworldyeah, we also need to unblock master04:47
wallyworldi'll port to 1.23 amd master04:47
menn0wallyworld: with the cert updating hack?04:48
wallyworldmenn0: yeah, i'll write for 1.23 and then port04:48
menn0wallyworld: sounds good04:48
wallyworldand also the other fix that just landed04:48
menn0cool04:49
wallyworldthanks for looking into all this04:49
menn0np04:49
menn0wallyworld: it was kinda fun... and educational. digging into hard bugs always tends to teach you a few new things.04:49
wallyworldindeed04:50
wallyworldyou have a strange idea of fun though :-)04:50
wallyworldi prefer a nice gass of red04:50
menn0wallyworld: well I like a good drink too :)04:56
wallyworldhelps dealing with this stuff04:57
menn0wallyworld: just thinking... with this cert fixup hack it might be easier to just empty out the DNSNames and IPAddresses fields rather than try to include the right values04:57
menn0wallyworld: the initial cert created at bootstrap is like this04:58
menn0and that seems to allow anything04:58
menn0the certupdater will put the right values back in when it runs04:58
menn0just a thought anyway04:58
wallyworldmenn0: was thinking similar thoughts, but i'm not sure the cert updater would trigger, as there won't necessarily be new address change events04:59
wallyworldneed to check04:59
menn0wallyworld: from what i've seen in the logs it always makes an update soon after it starts05:01
menn0wallyworld: but that might just be coincidence05:01
wallyworldyeah, i need to check05:02
menn0wallyworld: created a LK card here: https://canonical.leankit.com/Boards/View/103148069/11398112705:02
wallyworldrightio05:02
wallyworldty05:02
menn0ah shit05:03
menn0wallyworld: just saw another problem05:03
menn0wallyworld: the certs created by certupdater only last for a week05:03
wallyworld\o/05:03
menn0wallyworld: so if they're also being used by mongodb05:04
wallyworldi thought they lasted longer than that, like years05:04
menn0wallyworld: but we only update the mongodb cert very occasionally05:04
wallyworldmaybe they did and something changed05:04
menn0wallyworld: after bootstrap with 1.22:05:05
menn0$ sudo openssl x509 -in ~/.juju/local/server.pem -text -noout05:05
menn0[sudo] password for menno:05:05
menn0Certificate:05:05
menn0    Data:05:05
menn0        Version: 3 (0x2)05:05
menn0        Serial Number: 0 (0x0)05:05
menn0    Signature Algorithm: sha1WithRSAEncryption05:05
menn0        Issuer: O=juju, CN=juju-generated CA for environment "local"05:05
menn0        Validity05:05
menn0            Not Before: Mar 16 03:32:17 2015 GMT05:05
menn0            Not After : Mar 23 03:32:17 2025 GMT05:05
menn0...05:05
wallyworldthat's 10 years05:06
wallyworldand a week in the past05:06
wallyworldthat's how i remembered it05:06
menn0wallyworld: sorry05:06
wallyworld:-) np05:06
menn0wallyworld: I've managed to read that 2025 as 2015 multiple times today then!05:07
menn0all good05:07
wallyworldi do that too05:07
menn0we have just one problem them :)05:07
wallyworldyeah, kust the one fairly big one05:07
menn0and with that I'm EOD today05:07
wallyworldty again05:07
axwwallyworld: the EBS provider won't work as-is :(   CreateVolumes needs to know the AZ of the instance that will be attached to. So I guess VolumeParams.Attachment needs to stay, though I think it should only be used for advice on how to create the volume, rather than for attaching06:19
wallyworldaxw: create volumes does need to know, yes :-(06:20
wallyworldaxw: so i added that as a named attribute06:20
axwwallyworld: it doesn't make sense to configure it, volumes are only ever created to be attached to an instance; an instance is in a specific AZ06:21
wallyworldtrue, i added the param const so something else could poke a value in the Attrubutes when needed, not at config time06:22
wallyworldto alleviate the need for Attachment params stuct06:22
wallyworldbut whatever works best....06:22
wallyworldschool pickup, bbiab06:23
mupBug #1435152 was opened: Can't deploy local charm in non-server environment <juju-core:Triaged by waigani> <https://launchpad.net/bugs/1435152>06:42
dimiternjam, morning07:45
jamdimitern: morning07:45
dimiternjam, should we do our 1:1?07:45
jamdimitern: sure07:45
jambrt07:45
axwwallyworld: more changes are required to goamz. volumes created with the dynamic provider are always DeleteOnTermination=false, regardless of whether the persistent flag is set07:59
axwwallyworld: we need to call ModifyInstanceAttribute to add a block-device mapping field it seems07:59
wallyworldoh08:01
dimiternaxw, is ModifyInstanceAttribute even implemented yet?08:13
axwdimitern: nope08:14
dimiternaxw, ah, I was planning to do it to allow setting SourceDestCheck08:14
dimiternaxw, so if you'll need it for storage, I'd appreciate if you add that as well - it's just a flag08:14
axwdimitern: sure, just trying to figure out my next steps. I'll make sure SourceDestCheck is in there when I do it08:15
dimiternaxw, cheers08:15
axwwallyworld: this puts the nail in the coffin of the idea of removing VolumeParams.Attachment. you can't create a non-persistent volume without also creating an attachment at the same time (at least, not without more significant changes)08:16
wallyworldoh dear :-(08:22
mupBug #1435215 was opened: juju metadata validate-tools  error <juju-core:New> <https://launchpad.net/bugs/1435215>09:01
voidspacedimitern: ping09:55
voidspacedimitern: I'm looking at using an attempt strategy for a test and was browsing provider/maas/environ.go09:56
voidspacedimitern: can you confirm my suspicion that the use of shortAttempt in maasEnviron.getCapabilities() is bogus09:56
voidspacedimitern: as it immediately returns any error09:56
wallyworlddimitern: jam: here's a fix for bug 1434680 http://reviews.vapour.ws/r/1229/09:56
mupBug #1434680: Certificate generated by certupdater worker cannot be used by MongoDB <ci> <regression> <upgrade-juju> <juju-core:Triaged by menno.smits> <juju-core 1.22:Fix Committed by menno.smits> <juju-core 1.23:In Progress by wallyworld> <https://launchpad.net/bugs/1434680>09:56
voidspacedimitern: in fact it's worse!09:56
voidspacedimitern: if the code succeeds (no error) then it will retry09:57
voidspacedimitern: if it errors then it will return immediately!09:57
dimiternvoidspace, hey09:57
voidspacedimitern: so the use of attempt means that on success it will try several times needlessly09:57
dimiternvoidspace, let's discuss it on the standup09:57
voidspacedimitern: but stop on the first error - afaics09:57
voidspacedimitern: ok :-)09:57
dimiternwallyworld, looking09:57
mupBug #1435244 was opened: juju cycle dead lock  <juju-core:New> <https://launchpad.net/bugs/1435244>10:13
voidspacedimitern: hangout died!10:30
voidspacebrb10:30
jamwallyworld: lgtm10:39
wallyworldjam: ty, will land to 1.23 and port to master10:40
menn0wallyworld: ping11:14
wallyworldmenn0: hi11:14
menn0wallyworld: still working eh?11:14
menn0wallyworld: I just saw your fix for mongo cert issue11:15
wallyworldmenn0: just about to merge to master, already fixed 1.2311:15
menn0wallyworld: i'm a little concerned11:15
menn0wallyworld: when there's multiple state servers won't they all end up with different certs and keys?11:16
wallyworldabout?11:16
menn0wallyworld: I was suprised that the fix generates completely new certs on startup instead of extending the existing one11:16
wallyworldso long as they all are generated off the master ca cert i think it will be ok11:17
wallyworldthat's what happens now11:17
menn0ok cool11:17
wallyworldthe cert updater now generates a new one11:17
wallyworldi think it's ok11:18
menn0yep, it's becoming clearer now11:18
menn0sorry11:18
wallyworldmenn0: i do feel though the full 1.23 fix will need backporting to 1.22.111:18
menn0so each state server uses it's own cert signed by a central CA11:18
wallyworldyes11:18
wallyworldseems to work11:18
menn0for some reason I thought that all the state servers used the same cert11:18
wallyworldthey used to11:19
wallyworldgenerated once only at bootstrap11:19
menn0but using separate certs is definitely more sensible11:19
wallyworldyeah11:19
menn0ignore me then11:19
menn0agreed that porting the full fix to 1.22.1 is probably good to do11:20
menn0removes some risk11:20
wallyworldmenn0: good questions to ask11:27
dimiterndooferlad, I'll be 5m late for our 1:1 btw11:31
dooferladdimitern: no problem11:32
mupBug #1435283 was opened: juju occasionally switches a units public-address if an additional interface is added post-deployment <juju-core:New> <https://launchpad.net/bugs/1435283>11:37
dimiterndooferlad, I'm in the hangout11:39
mattywis someone around to give me a quick review? http://reviews.vapour.ws/r/1232/12:13
dimiternmattyw, you have a review on 100512:45
dimiternmattyw, why's deadbeef-0bad-f00d-0000-4b1d0d06f00d not a valid uuid btw?12:45
tasdomasdimitern, I assume because it's not a valid Version 4 UUID12:48
tasdomasdimitern - in a version 4 uuid the 13th hex digit is always 412:49
dimiterntasdomas, oh, I see12:49
dimiterntasdomas, thanks12:49
mupBug #1432331 was opened: better config interface <juju-core:New> <https://launchpad.net/bugs/1432331>13:07
mattywdimitern, tasdomas is right, the 14th digit needs to be hex, also the 18th needs to be 8,9,a,b or something like that, and it was 013:18
sinzuiericsnow, I am in #server asking about bug 1434737. hallyn is our lxc expert.14:18
mupBug #1434737: lxc-start failure on vivid <lxc:New> <https://launchpad.net/bugs/1434737>14:18
wwitzel3ericsnow, natefinch: the internet here is very poor, I keep dropping from hangout14:25
ericsnowwwitzel3: no worries, we're almost done14:25
natefinchwwitzel3: no worries14:25
natefinchjinx!14:25
ericsnowsinzui: awesome, thanks14:43
sinzuialexisb, I still hope for release note for "Service Leader Elections".14:57
ericsnowsinzui: FYI, I put as much info as I could find on that ticket, but couldn't remember exactly what vivid we're running and if we are upgrading from daily every day14:58
alexisbsinzui, ack14:58
sinzuiericsnow, #server reports that rbasak will be pushing a fix for us14:59
ericsnowsinzui: cool, thanks!14:59
sinzuiericsnow, oh, auto updates on vivid-slave-b were stalled because I didn't let it restart services. I have fixed that15:00
sinzuitoo15:00
ericsnowsinzui: ah, cool15:01
ericsnowsinzui: that runs daily or in response to some remote update?15:01
mupBug #1432331 changed: better config interface <config> <juju-core:New> <https://launchpad.net/bugs/1432331>15:02
mupBug #1434544 changed: backups broke non-linux builds <ci> <osx> <regression> <windows> <juju-core:Fix Released by hduran-8> <https://launchpad.net/bugs/1434544>15:02
mupBug #1435215 changed: juju metadata validate-tools  error <juju-core:Invalid> <https://launchpad.net/bugs/1435215>15:02
sinzuiericsnow, yes, Plus test several tests we run on the machine also do upgrades15:02
sinzuiericsnow, it allows us to catch issues in new series packages...which just makes all our jobs harder15:02
sinzuidimitern, natefinch: can you find someone to read the log for bug 1431286 and decide if we need more information? I cannot triage it15:12
mupBug #1431286: juju bootstrap fails when http_proxy is set in environments.yaml <ubuntu-openstack> <juju-core:New> <https://launchpad.net/bugs/1431286>15:12
ericsnowsinzui: the root cause in lp:1432683 seems to apply to the bug I opened (lp:1434737)15:15
ericsnowsinzui: so I'm hopeful :)15:15
sinzui\o/15:15
ericsnowsinzui: I should have thought to look at those logs earlier15:15
natefinchsinzui: looking at the http_proxy bug.... not sure what's going on15:19
mupBug #1435244 changed: juju cycle dead lock  <juju-core:Invalid> <https://launchpad.net/bugs/1435244>15:20
sinzuiericsnow, Do you know how to force apparmor reload on that machine?15:23
ericsnowsinzui: no15:23
ericsnowsinzui: I'm not familliar with apparmor15:23
natefinchsinzui: reboot?15:24
* natefinch has been a windows dev for a long time ;)15:24
sinzuinatefinch, I think we have done that several times now15:24
natefinchsinzui: you must mean something different than I was thinking for reloading apparmor15:24
sinzuinatefinch, I think new profiles were added to the machine, but were not registered, so maybe I don't mean reload15:25
natefinchsinzui: ahh, ok.  I am also not familiar with apparmor, unfortunately15:26
frankbanhi all, is SpecializeCharmRepo still used in juju-core? in essence, do we still support "test-mode" and "charm-store-auth" in the configuration?15:46
frankbanAFAICT at least the latter does not have any effects15:46
voidspacedimitern: ping15:47
dimiternvoidspace, in a call15:48
voidspacedimitern: ok15:48
voidspacenatefinch: hey, you familiar much with the dummy provider?15:48
voidspacenatefinch: the dummy provider records the operations it does, presumably so you can make asserts that it was used in a particular way15:49
voidspacenatefinch: do you know of any examples of this in the code base I can look at?15:49
natefinchvoidspace: no, not really.  I try to avoid it as much as possible.  It is used fairly extensively, however15:50
voidspacenatefinch: ok, I'll grep around15:50
voidspacenatefinch: I do have an interface (that only requires one method to be implemented), maybe I should use that instead...15:50
tasdomaswwitzel3, I see you're OCR today - would you mind reviewing http://reviews.vapour.ws/r/1070/ and http://reviews.vapour.ws/r/1097/ ?15:51
natefinchfrankban: I haven't looked too deeply into it, but I do see code using that config option15:54
tasdomasif anyone else could also take a look at http://reviews.vapour.ws/r/1097/ and http://reviews.vapour.ws/r/1070/, I would very much appreciate that15:56
frankbannatefinch: I also see it used, and it adds an Authorization header. I don't see how this affects the server side though (the legacy charm store)16:01
dimiternvoidspace, back16:01
frankbannatefinch: the legacy charm store does not check auth headers AFAICT, so I wonder if the SetAuthAttrs can be removed16:04
voidspacedimitern: do you know off the top of your head any test files likely to use the dummy provider ops for asserts about operations16:04
voidspacedimitern: I'm currently trying with the interface, but I might still want to look in the operations log for other tests16:04
dimiternvoidspace, yeah, just a sec16:05
voidspacedimitern: if you don't know off the top of your head don't worry - I can search myself16:05
voidspaceah, ok16:05
voidspacemy ubuntu phone just arrived16:05
dimiternvoidspace, so you mean outside of the dummy provider tests, right?16:07
voidspacedimitern: as a whitebox test using the dummy provider16:07
voidspacedimitern: I haven't even looked at the dummy provider tests though... :-)16:07
natefinchfrankban: yeah, I don't know the internals of the new charm store stuff16:07
voidspacedimitern: that would be a logical place to start - but I kind of assume they're whitebox16:07
voidspaceI mean as a *blackbox* test16:08
dimiternvoidspace, well, it's like this: dummy provider tests can use the OpXYZ internally to check calls16:08
voidspacedimitern: the dummy provider tests are good16:08
voidspacedimitern: they use dummy.Listen and provide a channel16:09
dimiternvoidspace, outside the dummy package, you could mostly just use the "broken" setting to selectively return errors from environ methods16:09
voidspaceI should have looked there16:09
dimiternvoidspace, yeah, in fact several of the environs.Networking methods are tested using those dummy features16:09
voidspacedimitern: I have another question if you don't mind16:10
dimiternvoidspace, e.g. "break" AllocateAddress(), check what happens16:10
dimiternvoidspace, sure16:10
voidspacedimitern: see this code http://pastebin.ubuntu.com/10661843/16:10
voidspacedimitern: it starts with a "releaser" interface16:10
voidspacedimitern: followed by my attempt at a mock implementation16:10
voidspacethe mockReleaser16:10
dimiternvoidspace, yeah16:11
voidspacebut it doesn't compile, Go doesn't like ReleaseAddress being a pointer receiver16:11
voidspace"mockReleaser does not implement addresser.releaser (ReleaseAddress method has pointer receiver)16:11
voidspace"16:11
voidspaceI *need* it to have a pointer receiver16:11
voidspaceah16:11
voidspaceNewMockReleaser16:11
voidspaceNewMockReleaser should return a pointer16:11
voidspaceI wonder if that's it16:11
voidspacedimitern: yep, that was the problem :-)16:12
dimiternvoidspace, :)16:12
voidspacesorry for the noise, thanks for being my rubber ducky...16:12
dimiternvoidspace, no worries, glad I could help :)16:13
frankbannatefinch: well, the new charm store will use a different authentication machinery, but I was pointing out that I don't see the auth header to be used in old one either16:15
frankbannatefinch: so basically SetAuthAttrs seems to be ineffective to me16:15
natefinchfrankban: ouch, yeah, I just went one step further looking, and nothing implements SetAuthAttrs, so that code will never be used.16:19
* dimitern is eod16:19
natefinchfrankban: actually, hang on... nothing *on my disk* implements it.... may well be code in github that I don't have16:20
frankbannatefinch: SetAuthAttrs is implemented by the charm store in charm.v416:20
natefinchfrankban: figured16:21
frankbannatefinch: it sets an header to be used when retrieving a charm16:21
frankbannatefinch: but I don't see that header to be used in the old charm store16:22
frankbannatefinch: so basically nothing in https://github.com/juju/charmstore/blob/master/server.go checks an Auth header16:24
frankbannatefinch: I'd plan to remove that SetAuthAttr of the specializer when migrating juju-core to the new charm store, if that's ok16:24
sinzuirogpeppe, are you blocked from merging https://code.launchpad.net/~rogpeppe/godeps/002-multi-dependency-update/+merge/24768416:25
natefinchfrankban: you should bring it up on juju-dev.  Sounds fine to me, but I've never touched the charm store code.16:25
frankbannatefinch: sure I will, ty16:26
natefinchrogpeppe, cmars:  do you guys know if we still need SetAuthAttr for the charm store?  Doesn't look to be used currently.  See ^^ w/ frankban16:27
natefinchevilnickveitch, rick_h_:  why is this page missing in the current docs?  http://webcache.googleusercontent.com/search?q=cache:sKeqAxbxmdIJ:https://jujucharms.com/docs/config-general+&cd=5&hl=en&ct=clnk&gl=us16:29
rick_h_natefinch: checking, we hit an issue where docs using {{ were interpreted by the template engine. I'm guessing it's another case.16:29
* rogpeppe is ill16:30
rogpeppesinzui: it's currently in an intermediate state - i got a certain way with it and realised i needed to think harder about desired semantics and haven't got back to it yet, i'm afraid16:30
rogpeppesinzui: thanks for the reminder. i'll try to get around to doing it very soon16:31
natefinchrick_h_: sounds like we need a test that ensures len(input_files) == len(output_files)16:32
mupBug #1435413 was opened: rename "juju backups restore" to "juju backups recover" <backup-restore> <juju-core:New> <https://launchpad.net/bugs/1435413>16:32
rick_h_natefinch: yep, we've got a fix in trunk atm, double checking what's up with this file to see if we can tweak it for next build or needs a deployment to fix16:32
evilnickveitchnatefinch, rick_h_  I have just noticed that the current version of published docs has reverted to an old navigation bar too, so that page isn't listed16:34
rick_h_evilnickveitch: natefinch ok, that's the docs defaulting to stabled 1.20, the file isn't in that branch so it's not shown but it's in the latest https://jujucharms.com/docs/latest/config-general16:36
rick_h_evilnickveitch: natefinch so the next release will have full multi-release browsing support which would allow us to get to that page16:37
sinzuirogpeppe, thank you16:37
rick_h_evilnickveitch: and we don't have 1.21 and 1.22 in the versions file16:38
natefinchrick_h_: that page doesn't seem (terribly) version specific, maybe we could backport it16:38
evilnickveitchnatefinch, rick_h_  Ah, ok. yes, i was planning to backport it - it does have some 1.21 specific stuff in it though. Actually, quite a bit16:40
evilnickveitchwe don't have 1.21 in the versions file yet, because I was waiting until we had fixed the issues with the versions we had before adding more16:40
rick_h_evilnickveitch: k, we're targeting to have the UX for browing versions/etc in the next release in April, but let me know what we need to get in/done to help move things forward until then.16:41
evilnickveitchrick_h_, I'll make a list16:42
evilnickveitchthx16:42
rick_h_evilnickveitch: ty, I've told the guys today I want to have the docs work wrapped up this week and I've asked the UX folks to put docs UI on their near term radar in our UX sync this AM16:42
frankbannatefinch: do you know how to update juju-core deps without removing the platform specific ones? if I use just "godeps -t ..." I get some of them removed (e.g. kardianos/osext, winsvc...)16:47
frankbannatefinch: found your solution at https://github.com/juju/juju/pull/98016:54
frankbanperhaps that should be documented in the contributing file16:55
wwitzel3tasdomas: yep, I can do that17:01
cmarsfrankban, natefinch rick_h_ pretty sure we don't need the charm-store-auth environ config option anymore17:09
frankbancmars: great17:10
frankbancmars: I'll work on removing the option17:11
cmarsfrankban, awesome, thanks!17:11
frankbanocr: is anyone available for reviewing https://github.com/juju/juju/pull/1913 ? thank you!17:28
jw4wallyworld: are we anywhere close to lp 1434680 being marked as fix-released (and unblocking CI? )17:28
frankbanurulama: and here is where we release the hounds: https://github.com/juju/juju/pull/191317:32
=== kadams54 is now known as kadams54-away
wwitzel3tasdomas: you have reviews17:36
=== kadams54-away is now known as kadams54
jcastronatefinch, around?19:15
=== kadams54 is now known as kadams54-away
cmarshey, if anyone's up for it.. http://reviews.vapour.ws/r/1238/19:19
cmarsfixes a map-ordering bug in state/logs.go19:20
natefinchjcastro: sorta, in a meeting19:34
jcastronatefinch, no worries, wayne helped me19:34
davecheneycmars: not lgtm19:37
davecheneyif you're fixing a bug19:37
davecheneyfix only the bug19:37
davecheneydon't include a bnuch of cleanup which obscures the fix19:38
cmarsdavecheney, PTAL19:46
thumpermorning folks19:47
cmarshey thumper19:47
thumpercmars: you are up at a weird time19:47
cmarslol19:47
thumperno19:47
mattywthumper, morning19:47
thumperI need to get my TZ brain in19:47
* thumper reboots his head19:48
cmarsthumper, how did you know it was afternoon nap time?19:48
thumperheh19:48
mattywthumper, I was about to land this: http://reviews.vapour.ws/r/1232/ wanted to let you know - as you folks have been doing a lot of env stuff lately19:48
* thumper looks19:48
* thumper sighs19:49
thumpermattyw: the testing uuid is valid, jut not a valid type 419:49
thumperwhich is fine19:49
thumperwhy do you feel the need to make it a valid type 4 uuid?19:49
thumperwwitzel3: I know why you move around all the time when on calls now19:50
thumperwwitzel3: I'm trialing a standing desk19:50
thumperdid the upgrade issue get fixed?19:52
alexisbthumper, arent you on vacation?19:58
alexisbon that is your monday :)19:58
thumperalexisb: it is tuesday here now19:58
alexisbnevermind19:58
thumper:)19:58
thumperheh19:58
thumperalthough if you like, I can take it off19:58
thumperNZ is in the cricket world cup semi-final19:58
thumpergame starts 2pm19:58
katcothumper: wow gl19:59
thumperplaying south africa19:59
thumperand we are not favourites19:59
alexisbthumper, I was just excited about getting an hour back :)19:59
thumperso we'll need luck I think19:59
thumperheh19:59
thumperalexisb: sorry19:59
* katco knows almost nothing about cricket19:59
natefinchthumper: does loggo cache/batch writes?  It seems like I'm having problems getting log output right before jujud shuts down.20:00
thumpernatefinch: no, all log writes are synchronous20:00
natefinch(or I'm just doing something else wrong, which is also quite possible)20:00
natefinchthumper: ok good, I hoped so.20:00
thumpernatefinch: although, the writers themselves may be buffering20:00
natefinchthumper: ahh, yeah, file writes are buffered, most likely, either by the software or the OS.20:01
thumperright20:01
natefinch(or both)20:01
natefinchwish we had a mechanism to flush logs before shutdown... seems like an easy way to lose log information (like what appears to be happening to me).20:04
katconatefinch: it seems like a useful concept in general: jujud is going down. anyone need anything?20:06
natefinchkatco: yeah...  I think we only recently started even thinking about jujud getting stopped20:09
katconatefinch: you could expand that even further and it would fix one of our long-standing issues: jujud takes in commands (i.e. command pattern) for major lifecycle events. it would fix jujud having to import the world20:11
davecheneycmars: lgtm, thanks20:19
davecheneyit's now clear what the fix is20:19
cmarsdavecheney, ty20:21
davecheneycmars: send a follow up PR for those bits i told you to leave out20:24
davecheneyi'll review it asap20:24
=== kadams54-away is now known as kadams54
natefinchoh well, fmt.Printf gets around the logging issue, but I still filed a bug about it, since it very well could bite us in the butt https://bugs.launchpad.net/juju-core/+bug/143554320:50
mupBug #1435543: juju loses log messages written near jujud shutdown <juju-core:New> <https://launchpad.net/bugs/1435543>20:51
mupBug #1435543 was opened: juju loses log messages written near jujud shutdown <juju-core:New> <https://launchpad.net/bugs/1435543>20:54
jw4cmars: fyi I had a PR up for that bug on Friday: http://reviews.vapour.ws/r/1222/ , but I didn't do any of the changes you did in the follow up 124020:54
cmarsjw4, aw man, sorry, didn't catch that21:01
jw4cmars: no worries - you took it further anyway :)21:02
cmarstoo far, some might say :)21:02
jw4haha21:02
cmarsso master is broken because landing is blocked because master is broken21:07
jw4cmars: JFDI ? :)21:13
fwereade_/ AgentConf handles command-line flags shared by all agents.21:17
fwereade_...yes, that is one of the things it does21:17
fwereade_type AgentConf struct {21:17
fwereade_    DataDir string21:17
fwereade_    mu      sync.Mutex21:17
fwereade_    _config agent.ConfigSetterWriter21:17
fwereade_}21:17
fwereade_...but I would venture perhaps not its primary purpose21:17
=== kadams54 is now known as kadams54-away
niedbalskiericsnow, ping21:53
ericsnowniedbalski: hi21:53
niedbalskihi ericsnow , could you review http://reviews.vapour.ws/r/1242/ (whenever you have a chance) ?21:54
ericsnowniedbalski: sure21:54
niedbalskiericsnow, thanks21:54
ericsnowniedbalski: interestingly, I'm actually working on a patch to use a config file that may be shared by the different mongo executables21:55
ericsnowniedbalski: but that will only apply to 1.24+21:56
niedbalskiericsnow, yep, this is targeting 1.2221:56
ericsnowniedbalski: isn't the --journal option not supported on mongodump without the --dbpath option?22:27
niedbalskiericsnow, the --help says 'is not relevant without specifying'22:33
ericsnowniedbalski: ah, fair enough22:33
ericsnowwallyworld: how hard do you think it will be to support the cloud-images "downloads" metadata in our simplestreams implementation22:49
wallyworldericsnow: one sec, on a call22:50
ericsnowwallyworld: np22:50
=== kadams54-away is now known as kadams54
jw4sinzui: isn't bug 1434680 fixed in master now since https://github.com/juju/juju/pull/1907 merged?23:15
mupBug #1434680: Certificate generated by certupdater worker cannot be used by MongoDB <ci> <regression> <upgrade-juju> <juju-core:Fix Committed by wallyworld> <juju-core 1.22:Fix Released by menno.smits> <juju-core 1.23:Fix Released by wallyworld> <https://launchpad.net/bugs/1434680>23:15
wallyworldaxw_: you around for standup?23:19
=== kadams54 is now known as kadams54-away
ericsnowwallyworld: look like the joyent upgrade test is running for master right now23:29
ericsnowwallyworld: looks like it passed \o/23:31
wallyworldyay23:32
wallyworldericsnow: it won't be too hard to support cloud-images downloads in simplestreams - we probably do now in fact, but juju doesn't use information as i recall (i'd need to check)23:34
ericsnowwallyworld: it was hard to tell how much support for the index and products formats that we implemented beyond what we need for juju23:35
ericsnowwallyworld: I'm guessing we make assumptions in that regard23:36
wallyworldericsnow: yeah, we do, we implemented what we needed, there's likely some stuff we left out, but it's not hard to add23:36
ericsnowwallyworld: at what point would it make sense to factor out our Go simplestreams "bindings" into its own repo?23:38
wallyworldcould be done now really23:39
ericsnow(i.e. how much are we missing?)23:39
wallyworldthere's a separate simplestreams package that's juju independent23:39
wallyworldand then we build on that for tools and images in separate packages23:39
wallyworldnot sure how much we're missing though23:40
wallyworldand it was done with juju in mind so would likely need cleanup23:40
=== kadams54-away is now known as kadams54
ericsnowright23:40
ericsnowwallyworld: it's basically too big a project for what I need at the moment :(23:41
ericsnowwallyworld: for the vmware provider we are using the "downloads" metadata23:41
ericsnowwallyworld: but currently our simplestreams code doesn't work with that23:41
wallyworldoh i see23:41
ericsnowwallyworld: so I've been looking at the simplestreams "spec" and at our code and trying to make sense of it all23:42
wallyworldthere's also python bindings that could be looked at23:43
ericsnowwallyworld: that's where I found the "spec" :)23:43
ericsnowwallyworld: http://bazaar.launchpad.net/~smoser/simplestreams/trunk/files, right?23:45
wallyworldthink so, i don't know eanywhere else23:45
ericsnowk23:45
ericsnowBTW, I'm not convinced there is a bug in restore23:45
ericsnowbut I need more info to be sure23:46
wallyworldok23:46

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