[01:33] <davecheney> thumper: waigini: can you give me a review on https://github.com/juju/juju/pull/1516
[01:33] <davecheney> ta
[01:37] <axw_> anastasiamac: I don't think I told you before, I'm on leave today
[01:37] <anastasiamac> axw_: yes i saw :D have fun!
[01:37] <axw_> thanks, cya tomorrow
[01:38] <anastasiamac> axw_: sure thing!
[06:38] <dimitern> morning folks :)
[08:39] <fwereade> axw_, ping
[09:47] <anastasiamac> fwereade: axw is off today :D
[09:48] <fwereade> anastasiamac, thanks
[09:48] <fwereade> and axw_, don't worry about it, resolved :)
[10:23] <dimitern> voidspace, o/
[11:13] <aznashwan> ericsnow: you there?
[11:59] <eagles0513875> hey dimitern i can confirm thta the version of windows juju is bugged as mac with 1.21 works fine for deployment manually
[12:00] <eagles0513875> dimitern: im managed just fine to bootstrap manually on mac
[12:00] <voidspace> dimitern: ah, you're back
[12:00] <voidspace> dimitern: I got your messages earlier, thanks
[12:00] <dimitern> eagles0513875, hmm that sounds like a bug, please report it
[12:00] <dimitern> voidspace, ah, great
[12:00] <voidspace> dimitern: so there *is* some code in proxyupdateworker that is supposed to change the environment variables
[12:00] <eagles0513875> dimitern: any chance at getting a 1.21 windows build?
[12:01] <voidspace> dimitern: I'm changing it to be called unconditionally (it currently tries to only run on first call) and see if that helps
[12:01] <voidspace> dimitern: and I'm updating the bug as I go...
[12:01] <dimitern> mgz, ping
[12:01] <mgz> dimitern: hey!
[12:01] <dimitern> voidspace, sgtm, thank you!
[12:02] <dimitern> mgz, any idea about when we'll have a windows release for 1.21 to fix the issues eagles0513875 is having?
[12:03] <eagles0513875> mgz: basically on windows using manual provider it was complaining about an ssh key and user and in the environments.yaml there was no ssh keys or user variables to provide credentials for
[12:04] <mgz> wat's the bug #?
[12:04] <eagles0513875> mgz: havent filed one yet
[12:04] <eagles0513875> will do it once im home from work
[12:04] <eagles0513875> cuz i then tried on mac and 1.21 doesnt seem to have this issue
[12:04] <mgz> is that because it's a mac or because it's 1.21 though? :)
[12:04] <eagles0513875> dunno tbh
[12:04] <mgz> ssh is much simpler on unix-like environs
[12:05] <eagles0513875> mgz: agreed, but there are also windows solutions available but im wondering if its an issue with 1.20 on windows or if there is something in 1.21 which fixes said issue.
[12:06] <mgz> I can link you a 1.21.1 windows binary
[12:06] <eagles0513875> want to do a bit more testing before i file a bug to ensure that its actually the version of juju or not
[12:06] <mgz> eagles0513875: https://launchpad.net/juju-core/+milestone/1.21.1
[12:08] <eagles0513875> mgz: there is no mention of windows
[12:08] <eagles0513875> also how do i view juju status on a machine which is already bootstrapped from another laptop do i need to rebootstrap it or there is another way
[12:08] <eagles0513875> nm i know whats happening
[12:08] <mgz> that page, under downloads, has a juju-setup-1.21.1.exe
[12:09] <mgz> use that
[12:09] <eagles0513875> oh ok
[12:09] <eagles0513875> mgz: how can i run juju status on a machine which is already bootstrapped
[12:10] <mgz> eagles0513875: you need the .jenv file from when you did the bootstrap
[12:11] <mgz> otherwise your client on the other machine doesn't know the keys to talk to the juju state server
[12:11] <eagles0513875> damn ok.
[12:11] <mgz> so, you need to copy the ~/.juju/environments/{ENVNAME}.jenv from the laptop
[12:12] <eagles0513875> that would be useful to have it check if the system has already been bootstrapped
[12:12] <mgz> if you want to access that environ from another machine
[12:12] <eagles0513875> wil have to do that later.
[12:12] <eagles0513875> mgz:  if the system is already bootstrapped cant it recreate it when for example one tries to run juju status it sees if the system has been bootstrapped and creates teh jenv file on the other system which one tries to run juju on?
[12:15] <eagles0513875> mgz: how can i start contributing code wise?
[12:15] <mgz> eagles0513875: that would not be secure - you need the credentials, otherwise anyone with the ip address of your machine could take over your juju environment
[12:15] <mgz> the manual provider is a bit special - with that you can probably just ssh in, clean up the juju bits, then rebootstrap
[12:15] <eagles0513875> mgz: agreed i provided the ip of the remote machine but manually there are no options for anything else besides user no ssh key etc
[12:15] <eagles0513875> humm ok
[12:16] <mgz> on contributing, start by reading some of the docs in tree - github.com/juju/juju - get it building locally, and then maybe look for an easy bug or nit you want to fix
[12:18] <eagles0513875> ok probably should do the golang tutorial too no mgz?
[12:18] <mgz> yeah, if you've not done any go yet, that's a good way to get started on that
[12:19] <eagles0513875> mgz: is golang linux only or can it be run on any platform?
[12:20] <mgz> it's reasonably cross platform
[12:20] <eagles0513875> kool :)
[12:24] <eagles0513875> fwereade: good time to learn golang can use the linux instance I have on ec2
[12:31] <perrito666> morning
[12:34] <wwitzel3> perrito666: morning
[12:34]  * perrito666 has a food hangover
[13:41] <bac> hi tvansteenburgh1
[13:45] <bac> jcastro: we need to get a bundle promulgated.  who in eco can do that and is most available?
[13:45] <tvansteenburgh> bac: hi
[13:47] <bac> tvansteenburgh: can you do promulgation of bundles?
[13:48] <tvansteenburgh> bac: technically yes, although i never have. where's the bundle?
[13:49] <bac> tvansteenburgh: https://code.launchpad.net/~openstack-charmers/charms/bundles/openstack/bundle
[13:54] <jcastro> bac, we're at a sprint, but if you can find mbruzek, dpb, or tvansteenburgh they could help you out.
[13:54] <jcastro> bac, jose can help as well
[13:54] <bac> jcastro: thanks
[14:13] <aisrael> Is it possible to execute juju-run from within a hook context?
[14:16] <wwitzel3> aisrael: yes, you can specifiy --relation (r) and --remote-unit .. you can also use --force-remote-unit if you have a scenario where a remote unit might have gone away
[14:17] <wwitzel3> aisrael: the help output from your juju-run should give you the details as well
[14:19] <aisrael> wwitzel3: Thanks, I'll give that a try!
[14:19] <sinzui> dimitern, I an struggling to understand bug 1416928. Is this issue just about apiaddress ? is this a regression that needs to be fixed in 1.21.2?
[14:19] <mup> Bug #1416928: juju agent using lxcbr0 address as apiaddress instead of juju-br0 breaks agents <api> <lxc> <network> <juju-core:New> <https://launchpad.net/bugs/1416928>
[14:20] <dimitern> sinzui, I'll have a look
[14:28] <wwitzel3> aisrael: cool, let me know how it works out, I implemented it and it hasn't had much use yet
[14:33] <marcoceppi> wwitzel3: -r and --remote-unit are not in trunk for cmd
[14:33] <marcoceppi> wwitzel3: at least not in help output
[14:33] <wwitzel3> marcoceppi: for juju-run? or juju run?
[14:33] <marcoceppi> juju run
[14:34] <wwitzel3> marcoceppi: right, not there yet
[14:34] <wwitzel3> marcoceppi: fwereade wasn't sure we wanted to expose those specifics via juju run, so for now, we expose them to charms, but only via juju-run
[14:36] <aisrael> wwitzel3: The error I keep coming around to is error: juju-run cannot be called from within a hook, have context "collectd/3-upgrade-charm-1414101190250335867"
[14:38] <wwitzel3> aisrael: interesting, ok, so JUJU_CONTEXT_ID might be set?
[14:40] <wwitzel3> aisrael: the way the command works right now is you would run it outside of a context, passing in relation / remote-unit and then it would step in to that context
[14:40] <aisrael> wwitzel3: Yes, it is. I don't know if I've ever seen it not set
[15:00] <aznashwan> ericsnow: ping
[15:11] <ericsnow> aznashwan: OTP
[15:33] <sinzui> dimitern, natefinch : I think I will release https://launchpad.net/juju-core/+milestone/1.22-beta2 today. The licensing issues don't block our beta, just the final releases.
[15:34] <dimitern> sinzui, great!
[15:35] <dimitern> sinzui, re bug
[15:35] <dimitern> sinzui, sorry; re bug 1416928
[15:35] <mup> Bug #1416928: juju agent using lxcbr0 address as apiaddress instead of juju-br0 breaks agents <api> <lxc> <network> <juju-core:New> <https://launchpad.net/bugs/1416928>
[15:36] <ericsnow> aznashwan: what's up?
[15:37] <dimitern> sinzui, aiui it's about a very specific scenario where a manually provisioned node with 2 nics can initially connect to the apiserver, but after reboot the IP addresses are reassigned(?) or something, so it can't reconnect to the apiserver
[15:37] <dimitern> pretty weird setup, but needs more investigating
[15:38] <sinzui> dimitern, fab. that sounds familiar, but I couldn't find a bug that described the issue as the reporter
[15:38]  * sinzui looks for other bug again
[15:41] <sinzui> dimitern, I see bug 1414710 as related or the master issue
[15:41] <mup> Bug #1414710: Manually provisioned machines with multiple networks cannot connect to API server after reboot <manual-provider> <network> <juju-core:Triaged> <https://launchpad.net/bugs/1414710>
[15:54] <aznashwan> ericsnow: hey, sorry, did I miss you? D:
[16:01] <ericsnow> aznashwan: I'm here
[16:04] <aznashwan> ericsnow: hey
[16:04] <aznashwan> ericsnow: so, i've just re-vamped the PR
[16:05] <aznashwan> ericsnow: still waiting for an OK to get to the tests
[16:05] <aznashwan> ericsnow: and also, I still hadn't sadly figured out a way to get the enabled/disabled status of a service through the dbus api
[16:06] <aznashwan> ericsnow: if you really want to avoid exec calls (which is a good choice considering how wonky systemctl ststus seems to be), I suggest we simply look for the symlink in default.target
[16:07] <ericsnow> aznashwan: thanks for the update
[16:07] <aznashwan> ericsnow: i'll be awaiting your blessing and get to the tests later today then :D
[16:30] <sinzui> natefinch, di you have time to review http://reviews.vapour.ws/r/842/
[16:59] <natefinch> sinzui: ship it
[17:00] <voidspace> yay, 5pm and *finally* I have juju bootstrapping
[17:00] <voidspace> hopefully with diagnostic code in place...
[17:10] <voidspace> oh, and the way we're creating apt-proxy settings (from http-proxy) is incorrect.
[17:10] <voidspace> or at least, it *can be* incorrect
[17:11] <voidspace> dimitern: hey, hi
[17:11] <voidspace> dimitern: so you got enough for a demo working? awesome.
[17:11] <dimitern> voidspace, hey, yeah!
[17:12] <voidspace> dimitern: I just sent you an email a minute ago
[17:12] <voidspace> dimitern: I've made progress
[17:12] <dimitern> voidspace, most of the things already done worked, just a few tweaks needed
[17:12] <dimitern> voidspace, yep, thanks - just got it
[17:12] <voidspace> dimitern: slightly hampered along the way by the fact that we can set the apt-proxy settings incorrectly
[17:12] <voidspace> dimitern: that's great news
[17:13] <dimitern> voidspace, it certainly is! :) I was just talking to ian how his storage update seems to me a lot cooler than my networking status update, but I'll work on this this evening, to make it as great :)
[17:14] <voidspace> dimitern: no rest for the wicked
[17:16] <voidspace> dimitern: anyway, good stuff. I'm really pleased. I hope the demo goes well.
[17:17] <dimitern> voidspace, me too :)
[17:17] <dimitern> voidspace, btw just confirmed - with ian about unconditionally setting the proxy env vars - let's do it
[17:17] <dimitern> voidspace, I'll reply to your mail as well
[17:18] <voidspace> dimitern: cool
[17:18] <dimitern> voidspace, can you just clarify a bit the part about the charm revision updater?
[17:18] <voidspace> dimitern: I'm watching debug-log. After the deploy I see:
[17:18] <voidspace> machine-0: 2015-02-02 17:02:52 ERROR juju.worker.charmrevisionworker revisionupdater.go:75 cannot process charms: finding charm revision info: Cannot access the charm store. Are you connected to the internet? Error details: Get https://store.juju.ubuntu.com/charm-info: dial tcp 91.189.95.66:443: connection timed out
[17:19] <voidspace> dimitern: so the charm deploy worked, "juju status" shows the charm "started"
[17:19] <dimitern> voidspace, right, that's exactly the same problem
[17:19] <voidspace> right
[17:19] <voidspace> but in a different place
[17:19] <dimitern> voidspace, so the revision updater works "retroactively" i.e. downloads and caches revisions for already deployed charms
[17:19] <voidspace> dimitern: I'm looking into it
[17:20] <dimitern> voidspace, you rock! :)
[17:20] <voidspace> heh, thanks
[17:21] <voidspace> dimitern: so if I change the place we set the environment variables no tests fail (at least not for proxyupdater...)
[17:22] <dimitern> voidspace, great, it will be even better if you manage to add a test that confirms the proxy settings are set in the env after they change
[17:22] <voidspace> dimitern: I'll look at it
[17:22] <voidspace> dimitern: I'll see if I can find this other bug *first* though
[17:23] <dimitern> voidspace, cheers, sounds good
[17:29] <dimitern> voidspace, what was the other bug you've discovered around setting apt-proxy settings btw?
[17:30] <voidspace> dimitern: so http-proxy or https-proxy can be in the form 192.168.178.103:3128
[17:30] <voidspace> for example
[17:30] <voidspace> dimitern: however, a valid apt-proxy setting *must* be in the form
[17:30] <voidspace> http://192.168.178.103:3128/
[17:30] <voidspace> dimitern: and we use http-proxy as a fallback for apt-proxy, so if you specify http-proxy in a way that doesn't work with apt then it just gets set "as is"
[17:31] <voidspace> dimitern: and redeploying to a machine that you've already deployed to will see the existing config file for apt-proxy and not write a new one
[17:31] <voidspace> dimitern: even if you've changed the settings
[17:31] <voidspace> dimitern: so apt-proxy didn't work - once I'd worked out why changing the http-proxy to the correct format didn't help as the new values weren't written out
[17:31] <voidspace> blowing away the juju apt-proxy conf file caused it to be rewritten (correctly) on bootstrap though
[17:31] <voidspace> but that cost me some time
[17:37] <voidspace> and as far as I can tell both the unit agent and the machine agent are starting a proxyupdaterworker and (now) setting the environment variables
[17:37] <voidspace> so either the charmrevisionworker runs before this happens (possible) or there's some other interaction
[17:37] <voidspace> I'll put the proxyupdater first in the list to start
[17:44] <voidspace> dimitern: that appears to work (starting the proxyupdater before other workers)
[17:44] <dimitern> voidspace, sorry, was afk for a bit - catching up on what you've said so far
[17:45] <voidspace> np
[17:45] <voidspace> dimitern: I think I have a fix, not very easily testable though
[17:46] <dimitern> voidspace, sounds like you're already onto the correct path
[17:46] <voidspace> dimitern: basically proxy settings need to be in place before we start workers that need access to the internet...
[17:46] <dimitern> voidspace, please, file a bug about the apt-proxy not using the expected format though
[17:46] <voidspace> dimitern: moving the proxyupdater to be the first worker will probably "mostly" fix the problem
[17:46] <voidspace> dimitern: yep
[17:47] <dimitern> voidspace, that's sounds sensible, yeah
[18:38] <natefinch> axw_: let me know when you get online, I have some questions about ssh keys for juju
[19:19] <voidspace> right, g'night all
[19:20] <voidspace> EOD
[19:50] <natefinch> thumper: hey, when you get a chance, I'd like to talk about that joyent ssh key bug
[19:50] <thumper> hi natefinch
[19:51] <thumper> natefinch: sprinting this week, but I'm here early
[19:51] <thumper> whazzup?
[19:52] <natefinch> thumper: not sure what the right fix is... do we default to something like $JUJU_HOME/ssh/joyent_id   and generate that if it doesn't exist?   Or default to generating a key that gets directly embedded in the config file?
[19:57] <thumper> hmm...
[19:58] <thumper> I think the first
[19:58] <thumper> if I have multiple joyent environments, I think it is fine to have just one key
[19:59] <natefinch> Yeah that was going to be my next question.
[20:00] <natefinch> thumper: any idea what happens if we were using the user's id_rsa key and then this code is deployed and we switch to a generated key?  Would it break their environment?
[21:29] <sinzui> perrito666, natefinch, thumper juju-ci3 is in upgrade hell to 1.21.1 state server upgraded in a few minutes, after an hour it fell over. I restarted the agents and can see it, but all the other machines are down. They are trying to contact 10.0.3.1...which is not where the state server is
[21:30] <sinzui> perrito666, natefinch, thumper, I think I can fix the apiaddress by editing each agent.conf. Is there something more graceful than editing 36 agents?
[21:31] <sinzui> Can I trigger juju to reset the apiaddress
[21:32] <perrito666> sinzui: afaik no
[21:33] <natefinch> perrito666, sinzui: juju run maybe?
[21:33] <perrito666> natefinch: will that work with the agents down?
[21:34] <sinzui> natefinch, indeed I was thinking of just a trunk to sed the apiaddress
[21:35] <thumper> as long as the addresses of the remote machines haven't changed
[21:35] <natefinch> perrito666: I think if you use --all it just basically does an ssh
[21:35] <thumper> juju run asks the state server for the remote address
[21:36] <thumper> and then just ssh'es to it
[21:36] <thumper> unless you have the "ssh through api server" flag set
[21:36] <thumper> which I think is the default on azure
[21:36] <thumper> which is where I think your machines are...
[21:36] <thumper> however, that should still work
[21:37] <thumper> sinzui: would love to grab the logs from the failed upgrades
[21:38]  * perrito666 hears a few shots in the distance and wonders if he should perhaps postpone hist afternoon walk
[21:38] <natefinch> perrito666: seems wise
[21:39] <sinzui> thumper, I have plenty of those. I am just trying to get the juju-reports agent back by manual intervention. I can then collect logs and explore automated fixes
[21:39] <natefinch> hopefully we can figure out what went wrong... that's a pretty nasty bug
[21:42] <jw4> perrito666: literal shots?  what's going on over there?
[21:42] <perrito666> jw4: police exchanging opinions with certain fellows
[21:42] <natefinch> lol
[21:43] <jw4> perrito666: heh
[21:45] <sinzui> thumper, natefinch : I confirmed I can edit the agent files to restore contact. I will start gathering logs
[21:45] <thumper> awesome
[21:46] <natefinch> cool
[21:51] <perrito666> k going for a walk, if you dont see me here tomorrow google for local newspapers :p
[21:51] <jw4> perrito666:  :-(
[22:51] <sinzui> thumper, I reported https://bugs.launchpad.net/juju-core/+bug/1417308
[22:51] <mup> Bug #1417308: Juju-ci3 cannot upgrade to 1.21.1 <api> <ci> <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1417308>
[23:22] <perrito666> I am alive
[23:31] <jw4> perrito666: yay!
[23:31] <jw4> perrito666: any extra holes?