/srv/irclogs.ubuntu.com/2014/08/15/#juju.txt

=== CyberJacob is now known as CyberJacob|Away
thumperlazyPower: so much more eloquent than me01:43
=== cmagina_ is now known as cmagina
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
jamespagecongrats dpb1!08:52
mattywstokachu, morning mate, got another question for you I'm afraid13:02
rharpercan you specify the location of the environments.yaml file ?13:47
rharpersomething else besides ~/.juju/environments.yaml ?13:48
lazyPowerrharper: you can by setting JUJU_HOME13:50
lazyPowerbut the directory structure will need to reflect that of whats in ~/.juju13:51
lazyPowerstub: pingaling13:55
rharperlazyPower: excellent, thanks!13:58
dpb1thanks jamespage!  good to be on the team. :)13:59
lazyPower:) We're happy to have ya dpb114:04
rick_h__tvansteenburgh: any chance we could get a +1/merge on https://code.launchpad.net/~evarlast/charm-tools/warn-description-newlines/+merge/230899 ?14:04
rick_h__tvansteenburgh: jrwren ran into some fun chasing that down this week ^14:05
tvansteenburghrick_h__: sure, i'll take a look14:05
rick_h__ty much kind sir14:05
lazyPowertvansteenburgh: pulled, merged, ran tests14:06
lazyPowerLGTM14:06
rick_h__lazyPower: oh thanks, beat him to it!14:06
lazyPowerI'm letting tim run point - but i gave it a +1 review :)14:06
tvansteenburghsomebody convince me we shouldn't allow newlines in an option description14:07
lazyPoweri can't do that, because newlines keep it readable in the yaml. Occasionally in the GUI when it gets smashed together its hard to read. so i'm +1 for newlines - but the linter appears to be checking for the presence of the pipe character for newlines.14:08
rick_h__tvansteenburgh: yea, it's a yaml parsing thing I think14:09
rick_h__jrwren: ^14:09
tvansteenburghno, it's just checking for \n afaict14:09
tvansteenburghaccording to the bug, "we don't want newlines b/c `juju get` formats them badly"14:10
jrwrentvansteenburgh: https://bugs.launchpad.net/juju-core/+bug/129211614:10
mupBug #1292116: juju get output is ugly (broken line wrapping and escape characters) <canonical-is> <config> <papercut> <juju-core:Triaged> <https://launchpad.net/bugs/1292116>14:10
lazyPowerah you're right, line 0 only checks for \n14:10
lazyPowerits not even looking for carraige return...14:10
lazyPowerO_O I STILL +1 THIS14:11
tvansteenburghi think it's more appropriate to fix `juju get`14:11
jrwrenPart of the issue AFAICT is that yaml Marshal/Unmarshal is not round trippable for formatting.14:12
tvansteenburghmarcoceppi, you have any opinion on this?14:12
jrwrenIf you use | or > on input, in config.yaml, and then Unmarshal to yaml as juju get does, you do not get | or >, you get quotes and ugly newlines.14:12
marcoceppiotp, brb14:13
tvansteenburghjrwren: my thinking was that `juju get` could clean up it's formatting by stripping newlines14:13
tvansteenburghs/it's/its/14:14
jrwrentvansteenburgh: i don't know the goals around juju get output.14:14
jrwrentvansteenburgh: I suggest that yaml Unmarshal and them manipulating that output would be very error prone, especially to maintain valid yaml, if that is a goal.14:15
jrwrentvansteenburgh: Good data out starts with good data in. This helps keep good data on input.14:15
tvansteenburghjwren: that's not the goal, we don't need to go back to yaml, just display the contents in an easy-to-read fashion14:16
jrwrentvansteenburgh: Its not easy-to-read now. This change lets proof find places that it is not easy-to-read.14:17
tvansteenburghjwren: it *is* good data in though, it's perfectly valid yaml. i think imposing arbitrary restrictions on which yaml contructs can be used would lead to a suprising user experience14:17
tvansteenburghjwren: my point is that we could make it easy to read by fixing the way the data is displayed, not by imposing restrictions on the data itself14:17
jrwrentvansteenburgh: Maybe surprising at first, and then not surprising.14:18
tvansteenburghjrwren: :)14:18
jrwrentvansteenburgh: If that is the path you choose, that is fine. I find the current state unacceptable and I may submit merge requests for everything in charmstore to fix their text which is displayed poorly today.14:19
=== hatch__ is now known as hatch
tvansteenburghjrwren: why not just submit a patch to fix juju get?14:20
marcoceppitvansteenburgh: whats the tldr?14:20
tvansteenburghmarcoceppi: https://code.launchpad.net/~evarlast/charm-tools/warn-description-newlines/+merge/23089914:21
jrwrentvansteenburgh: becasue I find it the wrong solution :)14:21
tvansteenburghjrwren: ok, then we disagree. i'll let marcoceppi be the deciding vote14:22
marcoceppitvansteenburgh: drop your opinion in the merge14:22
marcoceppijrwren: what does juju get look like with newlines?14:22
marcoceppidoes it show \n or what?14:22
tvansteenburghmarcoceppi: https://bugs.launchpad.net/juju-core/+bug/129211614:22
mupBug #1292116: juju get output is ugly (broken line wrapping and escape characters) <canonical-is> <config> <papercut> <juju-core:Triaged> <https://launchpad.net/bugs/1292116>14:23
marcoceppiyeah, this is a core issue14:23
marcoceppimaking YAML human readable is kind of it's point14:23
marcoceppisome of these options are huge, like the openstack-origin, which include code examples, etc14:23
jrwrenmarcoceppi: all of those can still work, just don't use | or >14:24
jrwrenmarcoceppi: just wrap normally14:24
marcoceppijrwren: but that's the point of | > and it's multiline string14:24
marcoceppiotherwise you have to start escaping ' and "14:24
marcoceppijuju just isn't respecting the YAML spec14:24
marcoceppifwiw, if I can find where this is in core I might be able to patch it14:25
=== scuttle|afk is now known as scuttlemonkey
marcoceppiit's either change 200 charms which are following YAML spec14:25
marcoceppior fix core14:25
jrwrenmarcoceppi: ok.  fwiw, neither pyyaml or goyaml currently round trip those correctly.14:25
* marcoceppi reads the spec14:25
marcoceppihum, I mean, thanks for trying to tackle this jrwren, but this presents a huge task for ecosystem if it's indeed merged14:28
jrwrenmarcoceppi: ok. gl with that bugfix. I think it will be challenging.14:29
marcoceppijrwren: yeah, I'll take a task to investigate this later tonight14:30
* marcoceppi fears golang no more14:30
* jrwren never fears golang, he just isn't very good with it... yet.14:30
marcoceppioh, well we're both in the same boat then ;)14:32
jrwrenmarcoceppi: in what TZ are you? What time are you thinking? If I'm available, can I pair with you?14:34
marcoceppijrwren: I'm EDT, probably going to take a stab around 20:00, but might not get to it until Monday14:36
marcoceppiwant to take a stab at it monday for sure?14:36
jrwrenmarcoceppi: sure. I am EDT also. Sounds like a plan.14:36
marcoceppijrwren: cool, I'll ping you Monday and we can pair up on this and knock it out14:37
sinzuibac, rick_h__ I fixed juju-reports, I think charmworld has the same problem since we created both sites, see bug 135740314:58
mupBug #1357403: Charmworld is a single user website <charmworld:Triaged> <https://launchpad.net/bugs/1357403>14:58
rick_h__sinzui: looking15:00
mbruzekHello jose.  CakePHP landed this morning thanks to Frederico's icon.15:01
mbruzekThanks for your feedback jose15:01
mbruzekhttp://manage.jujucharms.com/charms/precise/cakephp15:01
sebas5384great news! mbruzek !15:02
mbruzekyes it is!  thanks sebas538415:02
sebas5384:D15:02
bloodearnestheya all15:29
bloodearnestsaw some discussion of a juju sync-charm command15:29
bloodearnestI've got a plugin I use to sync charm changes down to the host here: https://github.com/bloodearnest/plugins/blob/master/juju-sync-charm15:29
bloodearnestit could easily push those changes to all other units if needed, as discussed15:30
mattywstokachu, ping?15:48
lamontI have a containter creation issue...16:04
lamontI need to figure out what is telling networkConfigTemplate that my lxc bridge network is 'br0' instead of 'lxcbr0'... anyone who can help me with that?16:05
jrwrenlamont: what does /etc/lxc/default.conf say?16:11
jrwrenlamont: also, what does /etc/default/lxc-net say?16:12
lamonton the host where I'm running juju, or on the host were the lxcs are getting created?16:13
lamontjrwren: both of those refer to lxcbr0.  but juju runs lxc-create -f /var/lib/juju/containers/juju-machine-4-lxc-5/lxc.conf ..., and that file says: lxc.network.link = br0, for the failure to create any lxcs16:15
lamontso I'm trying to figure out where that br0 is coming from, and (more significantly) how to override/fix that, and whether or not it's abug16:15
lamontbrctl show16:16
lamontbridge name     bridge id               STP enabled     interfaces16:16
lamontlxcbr0          8000.000000000000       no16:16
lamontand since I suck at reading go, ...16:18
lamontand huh.  we appear to have fixed that on the prior existance by using br0... though tbf, that was deployed a long time ago.16:20
lamontthe other "interesting" thing is that the working machine (that uses br0) has ethN interfaces, and the one that doesn't work has emN interfaces16:23
=== cmagina_ is now known as cmagina
lamontthis is a maas/juju deployed machine on which I'm creating numerous lxcs16:38
ezobnHi All! Do exist any how-to for move the bootstrap node for a juju environment to the new machine ?16:41
lamontinterestingly, this appears to be maas not handling the case where eth0 is not the default network iface17:07
stephenoHey all. I've got a quick question about beploying charms in an openstack environment. I'm using ceph as the cinder backing store, and i'd like to boot machines using cinder volumes(instead of instance storage on the hypervisors)17:09
stephenoI don't see any way to do this at the moment, though i could see a way to do it via the openstack api(it's multiple api calls which are presented as one distinct action in the openstack gui)17:10
stephenoAm i missing some setting, or might this be a feature request?17:10
natefinchman, it bugs me that launchpad has human-readable URLs, but you can't actually edit the URL to navigate to logical places... like I'm at http://bazaar.launchpad.net/~charmers/charms/precise/wordpress/trunk/files  and I think "oh, I wonder what other charms are under precise?" so I edit the url to "http://bazaar.launchpad.net/~charmers/charms/precise/" ... 40417:23
=== roadmr is now known as roadmr_afk
ayr-tonMy friends, I created a local environment under ubuntu 14.04 and bootstraped it. I did a juju deploy juju-gui --to lxc:0  and then a expose. The agent-state is pending since then (4 hours). The ufw is disabled. There's some other workaround?17:48
marcoceppiayr-ton: why would you do juju deploy --to lxc:017:49
marcoceppijust do juju deploy juju-gui17:49
marcoceppiwhich will spawn an LXC container on your host machine17:49
marcoceppithat won't work because 0 on the local provider is your actual machine17:50
marcoceppiso juju will try, then fail, to set it up17:50
ayr-tonhmmm...17:51
ayr-tonlet me try =x17:51
ayr-tonmarcoceppi, there's a new machine number, but the state is pending18:06
ayr-tonFor like 15 minutes.18:07
jcw4ayr-ton: what is the output of 'lxc-ls --fancy' ?18:08
ayr-tonjcw4, empty, just the first line: NAME  STATE  IPV4  IPV6  AUTOSTART  and the second with: ----------------------------------18:09
jcw4ayr-ton: I was just checking that the template file wasn't locked... doesn't look like that was the issue.. although I *would* expect there to be at least one lxc container if you're using local juju18:10
ayr-tonjcw4, Yes. It does make sense. Let me see If I can found some problem in my lxc. One sec.18:12
ayr-tonjcw4, It feels to be some problem with permissions. I'm trying to figure out how to fix it.18:42
ayr-tonI'm trying the last one: https://juju.ubuntu.com/docs/troubleshooting-local.html18:43
ayr-tonMy image is from Aug 13.18:44
ayr-tonjcw4, Not worked. ;~18:55
jcw4ayr-ton: :(18:55
josembruzek: awesome, good to know! thanks for giving me the heads up :)18:55
jcw4ayr-ton: I'm afraid I'm out of ideas18:55
ayr-tonI just removed the old image from cache, destroyed the environment, bootstraped it again, juju deploy juju-gui..18:55
mbruzekjose thanks for sending out the email18:56
ayr-tonhttp://paste.ubuntu.com/8056048/18:56
jcw4ayr-ton: hmm; same thing? hanging for a long time, state pending?18:56
josembruzek: it was nice to hear what others thought about it18:56
ayr-tonYep. And lxc-ls is empty18:56
ayr-tonactually: sudo lxc-ls give me ayrton-local-machine-0-lxc-0  juju-trusty-template18:57
jcw4ayr-ton: hmm; that's promising, although now it's sounding like the template lock file issue18:57
ayr-tonThe debug-log shows me a error related to mongo, this time: http://paste.ubuntu.com/8056065/18:58
ayr-tonjuju.mongo open.go:82 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused18:59
jcw4ayr-ton: http://irclogs.ubuntu.com/2014/07/30/%23juju-dev.html19:00
jcw4look for convo starting around 02:0719:00
=== roadmr_afk is now known as roadmr
ayr-tonjcw4, let me see..19:06
ayr-tonjcw4, Holly mother of God. It is working: http://25.media.tumblr.com/tumblr_m6td1wPntx1rrgtiio1_500.gif19:37
ayr-tonjcw4, The template lock was the issue.19:38
ayr-tonThank you very much (:19:38
marcoceppiayr-ton: \o/19:41
natefinchmarcoceppi: I'm trying to deploy a very slightly modified postgresql charm, and I kee getting 2014-08-15 19:52:11 INFO install subprocess.CalledProcessError: Command '['open-port', '5432/TCP']' returned non-zero exit status 1 during the install hook.  Any idea why that would be happening?19:58
ayr-tonnatefinch, Theres something using the port 5432?20:12
natefinchayr-ton: shouldn't be, this is just a default deploy of the charm on a brand new EC2 instance20:12
natefinchlooks like it's not just my teaked charm, the standard precise postgres charm hits the same error20:13
natefinchsays there's a conflict with the port20:13
natefinchmarcoceppi: relevant to your interests: https://github.com/juju/juju/pull/52820:17
marcoceppinatefinch: can you elaborate on "the first argument"20:20
marcoceppinatefinch: like, "default-hook install" or will it just be "install"20:20
natefinchos.args[1] == hook_name20:20
marcoceppios args[0] will still be default-hook20:20
natefinchcorrect20:20
marcoceppiso*20:20
natefinchmarcoceppi: I can't change os.args[0]20:20
marcoceppihum, that would require some patching in charm-helpers20:20
marcoceppinatefinch: wellllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll20:20
natefinchmarcoceppi: for the charm I tweaked, that's actually what i did20:21
marcoceppinatefinch: you patched charm-helpers?20:21
marcoceppiI can't see where it's patched20:21
natefinchmarcoceppi: https://github.com/natefinch/pgcharm/blob/master/hooks/default-hook#L233520:21
natefinchmarcoceppi: no,  I patched os.args20:21
marcoceppioh, psh20:21
marcoceppiyou patched it in the python code20:21
marcoceppigotchya20:21
marcoceppiWe'll probably create an update to charm-helpers where when using hooks.Hook you can define if you want to do legacy support or not20:22
marcoceppiactually20:22
marcoceppiwe can make it smart20:22
marcoceppiif os.argv[0] == default-hook, use os.argv[1]20:22
natefinchmarcoceppi: yep, if arg 0 is default-hook the hook name is arg 120:22
marcoceppiyup20:22
natefinchnicve20:22
natefinchnice20:22
marcoceppiI'll submit a patch to charm helpers soon for that20:22
marcoceppinatefinch: you da man!20:22
natefinchmarcoceppi: I figured that one would be easy.... surprised we didn't do that forever ago, when we realized most people just want to write one script, not 2020:23
marcoceppiheh20:24

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