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

davecheneythumper: waigini: can you give me a review on https://github.com/juju/juju/pull/151601:33
davecheneyta01:33
axw_anastasiamac: I don't think I told you before, I'm on leave today01:37
anastasiamacaxw_: yes i saw :D have fun!01:37
axw_thanks, cya tomorrow01:37
anastasiamacaxw_: sure thing!01:38
=== rvba` is now known as rvba
dimiternmorning folks :)06:38
=== mup_ is now known as mup
fwereadeaxw_, ping08:39
=== rogpeppe1 is now known as rogpeppe
=== mthaddon` is now known as mthaddon
anastasiamacfwereade: axw is off today :D09:47
fwereadeanastasiamac, thanks09:48
fwereadeand axw_, don't worry about it, resolved :)09:48
dimiternvoidspace, o/10:23
=== ahasenac` is now known as ahasenack
aznashwanericsnow: you there?11:13
eagles0513875hey dimitern i can confirm thta the version of windows juju is bugged as mac with 1.21 works fine for deployment manually11:59
eagles0513875dimitern: im managed just fine to bootstrap manually on mac12:00
voidspacedimitern: ah, you're back12:00
voidspacedimitern: I got your messages earlier, thanks12:00
dimiterneagles0513875, hmm that sounds like a bug, please report it12:00
dimiternvoidspace, ah, great12:00
voidspacedimitern: so there *is* some code in proxyupdateworker that is supposed to change the environment variables12:00
eagles0513875dimitern: any chance at getting a 1.21 windows build?12:00
voidspacedimitern: I'm changing it to be called unconditionally (it currently tries to only run on first call) and see if that helps12:01
voidspacedimitern: and I'm updating the bug as I go...12:01
dimiternmgz, ping12:01
mgzdimitern: hey!12:01
dimiternvoidspace, sgtm, thank you!12:01
dimiternmgz, any idea about when we'll have a windows release for 1.21 to fix the issues eagles0513875 is having?12:02
eagles0513875mgz: 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 for12:03
mgzwat's the bug #?12:04
eagles0513875mgz: havent filed one yet12:04
eagles0513875will do it once im home from work12:04
eagles0513875cuz i then tried on mac and 1.21 doesnt seem to have this issue12:04
mgzis that because it's a mac or because it's 1.21 though? :)12:04
eagles0513875dunno tbh12:04
mgzssh is much simpler on unix-like environs12:04
eagles0513875mgz: 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:05
mgzI can link you a 1.21.1 windows binary12:06
eagles0513875want to do a bit more testing before i file a bug to ensure that its actually the version of juju or not12:06
mgzeagles0513875: https://launchpad.net/juju-core/+milestone/1.21.112:06
eagles0513875mgz: there is no mention of windows12:08
eagles0513875also 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 way12:08
eagles0513875nm i know whats happening12:08
mgzthat page, under downloads, has a juju-setup-1.21.1.exe12:08
mgzuse that12:09
eagles0513875oh ok12:09
eagles0513875mgz: how can i run juju status on a machine which is already bootstrapped12:09
mgzeagles0513875: you need the .jenv file from when you did the bootstrap12:10
mgzotherwise your client on the other machine doesn't know the keys to talk to the juju state server12:11
eagles0513875damn ok.12:11
mgzso, you need to copy the ~/.juju/environments/{ENVNAME}.jenv from the laptop12:11
eagles0513875that would be useful to have it check if the system has already been bootstrapped12:12
mgzif you want to access that environ from another machine12:12
eagles0513875wil have to do that later.12:12
eagles0513875mgz:  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:12
eagles0513875mgz: how can i start contributing code wise?12:15
mgzeagles0513875: that would not be secure - you need the credentials, otherwise anyone with the ip address of your machine could take over your juju environment12:15
mgzthe manual provider is a bit special - with that you can probably just ssh in, clean up the juju bits, then rebootstrap12:15
eagles0513875mgz: agreed i provided the ip of the remote machine but manually there are no options for anything else besides user no ssh key etc12:15
eagles0513875humm ok12:15
mgzon 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 fix12:16
eagles0513875ok probably should do the golang tutorial too no mgz?12:18
mgzyeah, if you've not done any go yet, that's a good way to get started on that12:18
eagles0513875mgz: is golang linux only or can it be run on any platform?12:19
mgzit's reasonably cross platform12:20
eagles0513875kool :)12:20
eagles0513875fwereade: good time to learn golang can use the linux instance I have on ec212:24
perrito666morning12:31
wwitzel3perrito666: morning12:34
* perrito666 has a food hangover12:34
bachi tvansteenburgh113:41
bacjcastro: we need to get a bundle promulgated.  who in eco can do that and is most available?13:45
=== tvansteenburgh1 is now known as tvansteenburgh
tvansteenburghbac: hi13:45
bactvansteenburgh: can you do promulgation of bundles?13:47
tvansteenburghbac: technically yes, although i never have. where's the bundle?13:48
bactvansteenburgh: https://code.launchpad.net/~openstack-charmers/charms/bundles/openstack/bundle13:49
jcastrobac, we're at a sprint, but if you can find mbruzek, dpb, or tvansteenburgh they could help you out.13:54
jcastrobac, jose can help as well13:54
bacjcastro: thanks13:54
aisraelIs it possible to execute juju-run from within a hook context?14:13
wwitzel3aisrael: 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 away14:16
wwitzel3aisrael: the help output from your juju-run should give you the details as well14:17
aisraelwwitzel3: Thanks, I'll give that a try!14:19
sinzuidimitern, 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
mupBug #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:19
dimiternsinzui, I'll have a look14:20
wwitzel3aisrael: cool, let me know how it works out, I implemented it and it hasn't had much use yet14:28
marcoceppiwwitzel3: -r and --remote-unit are not in trunk for cmd14:33
marcoceppiwwitzel3: at least not in help output14:33
wwitzel3marcoceppi: for juju-run? or juju run?14:33
marcoceppijuju run14:33
wwitzel3marcoceppi: right, not there yet14:34
wwitzel3marcoceppi: 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-run14:34
aisraelwwitzel3: 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:36
wwitzel3aisrael: interesting, ok, so JUJU_CONTEXT_ID might be set?14:38
wwitzel3aisrael: 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 context14:40
aisraelwwitzel3: Yes, it is. I don't know if I've ever seen it not set14:40
=== mwenning is now known as mwenning-wfh
aznashwanericsnow: ping15:00
=== kwmonroe_ is now known as kwmonroe
ericsnowaznashwan: OTP15:11
sinzuidimitern, 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:33
dimiternsinzui, great!15:34
dimiternsinzui, re bug15:35
dimiternsinzui, sorry; re bug 141692815:35
mupBug #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:35
ericsnowaznashwan: what's up?15:36
dimiternsinzui, 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 apiserver15:37
dimiternpretty weird setup, but needs more investigating15:37
sinzuidimitern, fab. that sounds familiar, but I couldn't find a bug that described the issue as the reporter15:38
* sinzui looks for other bug again15:38
sinzuidimitern, I see bug 1414710 as related or the master issue15:41
mupBug #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:41
aznashwanericsnow: hey, sorry, did I miss you? D:15:54
=== tasdomas` is now known as tasdomas
ericsnowaznashwan: I'm here16:01
aznashwanericsnow: hey16:04
aznashwanericsnow: so, i've just re-vamped the PR16:04
aznashwanericsnow: still waiting for an OK to get to the tests16:05
aznashwanericsnow: and also, I still hadn't sadly figured out a way to get the enabled/disabled status of a service through the dbus api16:05
aznashwanericsnow: 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.target16:06
ericsnowaznashwan: thanks for the update16:07
aznashwanericsnow: i'll be awaiting your blessing and get to the tests later today then :D16:07
=== seelaman` is now known as seelaman
sinzuinatefinch, di you have time to review http://reviews.vapour.ws/r/842/16:30
=== kadams54 is now known as kadams54-away
natefinchsinzui: ship it16:59
voidspaceyay, 5pm and *finally* I have juju bootstrapping17:00
voidspacehopefully with diagnostic code in place...17:00
voidspaceoh, and the way we're creating apt-proxy settings (from http-proxy) is incorrect.17:10
voidspaceor at least, it *can be* incorrect17:10
voidspacedimitern: hey, hi17:11
voidspacedimitern: so you got enough for a demo working? awesome.17:11
dimiternvoidspace, hey, yeah!17:11
voidspacedimitern: I just sent you an email a minute ago17:12
voidspacedimitern: I've made progress17:12
dimiternvoidspace, most of the things already done worked, just a few tweaks needed17:12
dimiternvoidspace, yep, thanks - just got it17:12
voidspacedimitern: slightly hampered along the way by the fact that we can set the apt-proxy settings incorrectly17:12
voidspacedimitern: that's great news17:12
dimiternvoidspace, 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:13
voidspacedimitern: no rest for the wicked17:14
voidspacedimitern: anyway, good stuff. I'm really pleased. I hope the demo goes well.17:16
dimiternvoidspace, me too :)17:17
dimiternvoidspace, btw just confirmed - with ian about unconditionally setting the proxy env vars - let's do it17:17
dimiternvoidspace, I'll reply to your mail as well17:17
voidspacedimitern: cool17:18
dimiternvoidspace, can you just clarify a bit the part about the charm revision updater?17:18
voidspacedimitern: I'm watching debug-log. After the deploy I see:17:18
voidspacemachine-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 out17:18
voidspacedimitern: so the charm deploy worked, "juju status" shows the charm "started"17:19
dimiternvoidspace, right, that's exactly the same problem17:19
voidspaceright17:19
voidspacebut in a different place17:19
dimiternvoidspace, so the revision updater works "retroactively" i.e. downloads and caches revisions for already deployed charms17:19
voidspacedimitern: I'm looking into it17:19
dimiternvoidspace, you rock! :)17:20
voidspaceheh, thanks17:20
voidspacedimitern: so if I change the place we set the environment variables no tests fail (at least not for proxyupdater...)17:21
dimiternvoidspace, 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 change17:22
voidspacedimitern: I'll look at it17:22
voidspacedimitern: I'll see if I can find this other bug *first* though17:22
dimiternvoidspace, cheers, sounds good17:23
dimiternvoidspace, what was the other bug you've discovered around setting apt-proxy settings btw?17:29
voidspacedimitern: so http-proxy or https-proxy can be in the form 192.168.178.103:312817:30
voidspacefor example17:30
voidspacedimitern: however, a valid apt-proxy setting *must* be in the form17:30
voidspacehttp://192.168.178.103:3128/17:30
voidspacedimitern: 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:30
voidspacedimitern: 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 one17:31
voidspacedimitern: even if you've changed the settings17:31
voidspacedimitern: 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 out17:31
voidspaceblowing away the juju apt-proxy conf file caused it to be rewritten (correctly) on bootstrap though17:31
voidspacebut that cost me some time17:31
voidspaceand as far as I can tell both the unit agent and the machine agent are starting a proxyupdaterworker and (now) setting the environment variables17:37
voidspaceso either the charmrevisionworker runs before this happens (possible) or there's some other interaction17:37
voidspaceI'll put the proxyupdater first in the list to start17:37
voidspacedimitern: that appears to work (starting the proxyupdater before other workers)17:44
dimiternvoidspace, sorry, was afk for a bit - catching up on what you've said so far17:44
voidspacenp17:45
voidspacedimitern: I think I have a fix, not very easily testable though17:45
dimiternvoidspace, sounds like you're already onto the correct path17:46
voidspacedimitern: basically proxy settings need to be in place before we start workers that need access to the internet...17:46
dimiternvoidspace, please, file a bug about the apt-proxy not using the expected format though17:46
voidspacedimitern: moving the proxyupdater to be the first worker will probably "mostly" fix the problem17:46
voidspacedimitern: yep17:46
dimiternvoidspace, that's sounds sensible, yeah17:47
natefinchaxw_: let me know when you get online, I have some questions about ssh keys for juju18:38
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
voidspaceright, g'night all19:19
voidspaceEOD19:20
=== kadams54 is now known as kadams54-away
natefinchthumper: hey, when you get a chance, I'd like to talk about that joyent ssh key bug19:50
thumperhi natefinch19:50
thumpernatefinch: sprinting this week, but I'm here early19:51
thumperwhazzup?19:51
natefinchthumper: 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:52
thumperhmm...19:57
thumperI think the first19:58
thumperif I have multiple joyent environments, I think it is fine to have just one key19:58
natefinchYeah that was going to be my next question.19:59
natefinchthumper: 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?20:00
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
sinzuiperrito666, 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 is21:29
sinzuiperrito666, natefinch, thumper, I think I can fix the apiaddress by editing each agent.conf. Is there something more graceful than editing 36 agents?21:30
sinzuiCan I trigger juju to reset the apiaddress21:31
perrito666sinzui: afaik no21:32
natefinchperrito666, sinzui: juju run maybe?21:33
perrito666natefinch: will that work with the agents down?21:33
sinzuinatefinch, indeed I was thinking of just a trunk to sed the apiaddress21:34
thumperas long as the addresses of the remote machines haven't changed21:35
natefinchperrito666: I think if you use --all it just basically does an ssh21:35
thumperjuju run asks the state server for the remote address21:35
thumperand then just ssh'es to it21:36
thumperunless you have the "ssh through api server" flag set21:36
thumperwhich I think is the default on azure21:36
thumperwhich is where I think your machines are...21:36
thumperhowever, that should still work21:36
thumpersinzui: would love to grab the logs from the failed upgrades21:37
* perrito666 hears a few shots in the distance and wonders if he should perhaps postpone hist afternoon walk21:38
natefinchperrito666: seems wise21:38
sinzuithumper, 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 fixes21:39
natefinchhopefully we can figure out what went wrong... that's a pretty nasty bug21:39
jw4perrito666: literal shots?  what's going on over there?21:42
perrito666jw4: police exchanging opinions with certain fellows21:42
natefinchlol21:42
jw4perrito666: heh21:43
sinzuithumper, natefinch : I confirmed I can edit the agent files to restore contact. I will start gathering logs21:45
thumperawesome21:45
natefinchcool21:46
perrito666k going for a walk, if you dont see me here tomorrow google for local newspapers :p21:51
jw4perrito666:  :-(21:51
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Open critical bugs: 1417178
sinzuithumper, I reported https://bugs.launchpad.net/juju-core/+bug/141730822:51
mupBug #1417308: Juju-ci3 cannot upgrade to 1.21.1 <api> <ci> <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1417308>22:51
perrito666I am alive23:22
jw4perrito666: yay!23:31
jw4perrito666: any extra holes?23:31

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