/srv/irclogs.ubuntu.com/2017/03/13/#juju.txt

kjackalGood morning Juju world!08:14
hoenirgood morning to you kjackal08:16
kklimondais there a way to define, and later reference, variables in a bundle file?09:26
kklimondait's painful to embed gpg key for each and every service09:27
kjackalkklimonda: I haven't seen variables in a bundle09:37
cnfmorning09:52
kjackalhi cnf10:17
cnfanother week, another try at getting stuff to work :P10:20
cnfis there any documentation on how to put the juju api behind a reverse proxy?10:56
=== perrito667 is now known as perrito666
alexlistHi... just trying Juju-as-a-Service. At the deploy step, 10mins ago I got an option to choose the target public cloud. Now I have this spinning circle and don't get any options to choose. Are we being slashdotted? ;)11:15
alexlistI see nothing on Twitter regarding JaaS ...11:20
rick_halexlist: not that I'm aware of. Are there any errors in the JavaScript console? Did you get.to the point to enter credentials?11:34
=== degville_ is now known as degville
zeestratkklimonda, kjackal: We've been using variables for a short while now after coming over this example bundle: https://launchpadlibrarian.net/298175262/bundle.yaml12:30
alexlistrick_h: I get to the point "Choose cloud to deploy to" but no buttons to choose gce,aws,azure anymore. That worked earlier today. http://pastebin.ubuntu.com/24170595/13:10
rick_halexlist: and this is on jujucharms.com/something ?13:11
rick_halexlist: can you please post a bug at https://github.com/CanonicalLtd/jujucharms.com13:12
alexlistrick_h: will do13:12
rick_halexlist: screenshots, urls, etc that would be really helpful13:12
kklimondazeestrat: thanks, that does seem to work :)13:35
zeestratkklimonda: np :) You reminded me that I had should add a bug for docs on that. See https://github.com/CanonicalLtd/jujucharms.com/issues/43313:40
zeestratkklimonda: Came over that example bundle by luck in the #openstack-charms channel I think.13:41
kjackalnice zeestrat I did not know you could do that! Cool!13:54
alexlistrick_h: https://github.com/CanonicalLtd/jujucharms.com/issues/43414:00
alexlistrick_h: I got this far using Firefox. Will restart my Chrome to see if it's something in the cache that stopped me from selecting the cloud provider.14:01
zeestratkklimonda, kjackal: Somewhat related: Passing dynamic stuff (perhaps --config) at deploy time for bundles is on the roadmap according to Rick.14:02
=== scuttle|afk is now known as scuttlemonkey
jamespagerick_h: hey - aware of any v4 charmstore API type issues?14:27
jamespagewe just started hitting14:27
jamespagehttps://www.irccloud.com/pastebin/gO5ykMTA/14:27
rick_hjamespage: not yet, looking14:27
beisnerhi all.  Is https://api.jujucharms.com/ --> 'Not Found' a known issue?14:27
beisneroh /me sees james just asked here.  thx14:28
rick_hbeisner: yea, looking. https://api.jujucharms.com/charmstore/v4/~openstack-charmers-next/percona-cluster/meta/any loaded for me14:29
rick_his that loading for you beisner jamespage ?14:29
jamespagerick_h: yup14:29
rick_hhmm, putting series back in worked: https://api.jujucharms.com/charmstore/v4/~openstack-charmers-next/xenial/percona-cluster/meta/any14:29
rick_hI wonder if something flipped...14:29
beisnerrick_h, yes, but this is not:14:29
beisnerhttps://api.jujucharms.com/v4/~openstack-charmers-next/xenial/percona-cluster/meta/any14:29
jamespages/charmstore//g14:29
beisnerwhich is the url we get when using bundletester + amulet + theblues + charmstore et al14:30
rick_hbeisner: oic, with the /charmstore14:30
rick_hbeisner: jamespage ok, so the /charmstore is supposed to be there. It says what service API to hit. I'm not sure if that changed recently but it kind of worked w/o by accident due to "first thing in the list wins" rules.14:31
rick_hbeisner: jamespage I'll see if something's changed and if we can get the "magic" behavior back, but we need to file bugs/get tools updated to use the right urls.14:31
jamespagerick_h: ack14:38
jamespagerick_h: please on restoring magic14:39
jamespagerick_h: gate blocked atm14:39
rick_hjamespage: working on a cowboy to production to add a rewrite rule atm14:39
rick_hjamespage: will try to get it back asap with webops help14:39
beisnerjamespage, as a work-around, i can have osci set env var for libcharmstore to consume @ https://github.com/juju-solutions/libcharmstore/blob/master/charmstore/lib.py#L3714:44
beisnerthat should unblock on the short term, but we should defo raise an issue @ libcharmstore (i think) to track the real fix14:45
rick_hbeisner: ty for finding the bad url source. I'll get a PR to them.14:48
rick_hRT is filed for the apache redirect, will hopefully get that through soon14:48
beisnerrick_h, jamespage - raised https://github.com/juju-solutions/libcharmstore/issues/5 -- will have a PR up momentarily to jig that default global URL.14:52
rick_hbeisner: so there's a default url in theblues that the libcharmstore should just reuse14:54
rick_hbeisner: was going to do a pr for it once I get the RT picked up14:54
beisnerrick_h, cool, i'll hold off, let you drive that.  thx14:54
cnfanyone know how to run the juju api behind a reverse proxy?15:09
rick_hbeisner: jamespage please check it again, cowboy in place15:32
beisnerrick_h, yeehaw!  and yep, the url works now.  thx15:35
mbruzekbdx: is it too early to ping?16:03
hoenirjuju can add storage to machine with add-storage?16:52
hoeniror this options is only with units that support..16:53
hoenirthis option?16:53
stormmoreo/ juju world17:03
bdxmbruzek: sup17:51
mbruzekbdx: I heard you have your own haproxy charm? Is that right?17:52
bdxmbruzek: I wish I was that cool17:54
mbruzekbdx: I am working on reworking the Canonical Distribution of Kubernetes to use haproxy load balancer instead of nginx. And my experience with haproxy is minimal. Wondering if you had any tips/tricks or advice/pointers.17:54
bdxmbruzek: https://github.com/jamesbeedy/juju-layer-lxd-proxy17:55
bdx^ non haproxy based17:55
bdxjust uses iptables, but that may be what you are referencing17:55
mbruzekbdx:  I was misinformed. This charm looks super interesting in its own right.17:56
bdxmbruzek: when I was setting up deis, I had to manually configure haproxy to proxy to the deis router/component ports on each of the nodes17:56
mbruzekoh maybe that was the intel I got. OK17:57
bdxmbruzek: let me see if I can find that for you for reference real quick17:57
jrwrenmbruzek: haproxy charm is very nice. I got a bit familiar with it. I cna help too if needed.17:57
cholcombecan juju deploy centos7 at this point?  i thought it could in the past but i can't seem to find the centos image18:00
mbruzekjrwren thanks I might hit you up.18:04
mbruzekbdx: I would be interested in the configuration if you could share it.18:04
bdxmbruzek: here is an example with multiple frontends and backends ... this (multiple frontend/backend) can be accomplished with the haproxy charm too -> http://paste.ubuntu.com/24171930/18:05
tvansteenburghmbruzek: here's the haproxy config from the revq bundle, in case that helps http://pastebin.ubuntu.com/24171951/18:07
bdxmbruzek: I'm currently working on some haproxy relations for one of my apps to accomplish creating the multiple frontend -> multiple backend routing via juju relations, I'll keep you posted when I have something worth sharing18:25
mbruzekbdx that would be great. Thanks18:26
skayskayis there a way to remove a resource?19:19
jrwrenno. there is no way.19:19
skayskayouch. so, if I have a charm that uses the snap layer, and I've attached a snap so that I can test the snap before publishing it, then I am stuck using a local file after that and can't go back to using the snap from the store19:20
skayskayI want to be able to switch19:21
skayskayI'm trying to remove-application and it's not working20:38
skayskayI can resort to removing the machine by force, but I should figure out why the application won't go away20:39
=== verterok` is now known as verterok
=== skay_ is now known as skay
zeestratskayskay: Could you try pasting "juju status name-of-your-application --format yaml"?21:14
skayzeestrat: it's not in the same state. I gave up and removed the machine21:15
zeestratskay: Gotcha. I've run into such situations where it was stuck upgrading.21:15
skayzeestrat: aha, my upgrade step was failing21:16
skayzeestrat: I released a new charm to pick up a fix in the snap layer21:16
skayzeestrat: what did you end up doing?21:17
zeestratI got hit by #1671428 so I ended up killing the controller. I logged #1671476 for being stuck while upgrading.21:19
mupBug #1671428: deploying with default binding prevents upgrade-charm <juju:Fix Committed by jameinel> <juju 2.1:Fix Committed by jameinel> <https://launchpad.net/bugs/1671428>21:19
mupBug #1671476: destroy-model does not work when charm is stuck in upgrading state <juju:New> <https://launchpad.net/bugs/1671476>21:19
skayzeestrat: did you try remove-machine with --force? that seemed to work for me21:20
* skay adds self to bug21:21
zeestratskay: Not yet. I can give it a go.21:21
kklimondaha, I was just about to report that bug21:23
=== siva is now known as Guest20118
Guest20118I am rendering a list of ipaddress in my charm template21:43
Guest20118I want the rendered output to be like this servers = ["192.168.1.252", "192.168.1.253", "192.168.1.254"]21:44
Guest20118I have my template entry like this 'servers = [{{ '\"'~servers|join('\", \"')~ '\"' }}]21:44
Guest20118My input.yaml file to 'juju config <application> --file= input.yaml' looks like this21:45
Guest20118servers: "192.168.1.252 192.168.1.253 192.168.1.254"21:46
Guest20118The rendered output looks like this21:46
Guest20118servers = ["1", "9", "2", ".", "1", "6", "8", ".", "1", ".", "2", "5", "2", " ", "1", "9", "2", ".", "1", "6", "8", ".", "1", ".", "2", "5", "3", " ", "1", "9", "2", ".", "1", "6", "8", ".", "1", ".", "2", "5", "4"]21:46
Guest20118in the config.yaml it is of type string21:46
Guest20118In the charm code i, yaml load it like this servers_list = yaml.load(config.get("servers"))21:48
Guest20118What is wrong here?21:48
Guest20118Why is very character interpreted a string here?21:48
Guest20118Any help is much appreciated21:49
tvansteenburghGuest20118: servers = {{ servers }}22:11
tvansteenburghit's already a list22:11
tvansteenburghAnyone know how to find out in which regions a particular aws instance type is available?22:18
tvansteenburghI'm trying to deploy a p2.xlarge in us-east-1 (juju 2.1.0) controller and I'm getting 'invalid constraint value: instance-type=p2.xlarge'22:20
tvansteenburghWell I just deployed a p2.xlarge into us-east-1 with the AWS console, so I'm not sure why Juju won't do it. :/22:26
anastasiamactvansteenburgh: instance types support was updated in juju 2.1.122:27
tvansteenburghanastasiamac: Oooh. I was trying to remember if they were baked in or downloaded from somewhere - I guess it's the former.22:28
tvansteenburghanastasiamac: Thanks!22:28
anastasiamactvansteenburgh: it requires manual intervention. but we try to keep on top of it for every new release22:28
tvansteenburghanastasiamac: So there's no way for me to use a p2 instance type w/o upgrading juju?22:29
anastasiamactvansteenburgh: potentially22:29
tvansteenburghanastasiamac: I upgraded to 2.1.1 and get the same error. Any ideas?22:39
tvansteenburghdoh22:39
tvansteenburghanastasiamac: I upgraded to 2.1.1 and get the same error. Any ideas?22:44
anastasiamactvansteenburgh: wallyworld might have a better idea if p2.xlarge was added .. m sorry i have issues with my machine atm, can't look at codebase22:45
anastasiamactvansteenburgh: i can confirm a bit later on22:46
tvansteenburghanastasiamac: k thanks22:46

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