/srv/irclogs.ubuntu.com/2016/10/08/#juju.txt

holocronis there a way to list a local charm in a bundle file?04:30
holocronanswering my own q, just need to specify the path05:10
=== bbaqar is now known as bbaqar_
=== bbaqar_ is now known as bbaqar__
=== bbaqar__ is now known as bilalbaqar
=== bilalbaqar is now known as bilalbaqar_
=== bilalbaqar_ is now known as bilalbaqar__
junaidali#juju12:32
PCdudehi all13:49
PCdudeI have installed JUJU on my PC alongside with some charms13:49
PCdudeno problems there13:49
PCdudeI use the LXD option and everything is running localy13:49
PCdudewhen I type "juju expose application" that seems to work, but the address is an LXD container address and thus not accessible without modification. Now, I can go in LXD and make some firewall changes and stuff, but what is the recommended way to deal with this, maybe I am overlooking some command from JUJU to do this13:51
PCdudeholocron: maybe an idea?13:59
magicalt1outjuju expose does nothing on lxd PCdude14:02
magicalt1outall i do it iptables routing14:03
magicalt1outsudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 81 -j DNAT --to 10.106.143.112:8014:03
PCdudemagicalt1out: uhm ok, I was looking at this link: http://askubuntu.com/questions/749063/reach-lxd-container-from-local-network14:06
PCdudewhich basically gives the same option as u said. Are there any downsides by bringing the LXD containers directly to the LAN. IP addresses on the LAN would not be an problem here14:06
PCdude?14:06
PCdudeIt feels like removing an extra layer of complexity where it is not needed imho14:07
jrwrenPCdude: the recommended way is to use lxd only for dev/test of charms and bundles. It isn't meant to be used for production in this way.14:08
* magicalt1out uses it in production in that way ;)14:08
=== magicalt1out is now known as magicaltrout
magicaltroutbut I agree its called lxd local for a reason14:09
jrwrennot much downside to bridging LXD to lan, other than you now depend on LAN DHCP. if you are on laptop and move, your containers won't be accessible.14:12
PCdude yeah good point haha, well it is in a test environment14:12
PCdudejrwren: I see ur point there14:13
jrwrenif you do that, beware the solution in that askubuntu answer won't quite work.14:13
jrwrenjuju uses its own lxd profile. it doesn't inherit from default.14:13
jrwrenyo'll need to lxc profile edit  juju-default14:14
PCdudejrwren: which was exactly my next question :)14:14
PCdudeis that an easy task?14:14
jrwrenit isvery easy14:14
jrwrenyou just need to know that you need to do it.14:15
PCdudeah ok check, will keep that in mind14:15
PCdudeso another thing is the way ipv4 and ipv6. I am not sure if this is a LXD or JUU thing14:16
PCdudeI was not aware that JUJU 2.0 installed the web GUI automatically, so I installed it the old way with a charm14:17
PCdudenow, I have 2 questions. Why is the charm I installed been given an ipv6 address and how can I change this to a ipv4 address?14:17
PCdudeand where can I see the address where the "automatic" gui is located?14:18
jrwrencharms don't get ip addresses, machines/containers do. it is normal for it to have an ipv6 address. are you saying it does not have an ipv4 address also?14:18
jrwren`juju gui` will tell you the gui address14:19
PCdudejuju gui gives me an ipv6 address, should that address be availabe from the network or is that also an container. (not talking about the charm I installed myself, but the automatic one)14:21
PCdudethe one I installed myself is only having an ipv6 address, but not sure. How can I check? I looked with juju status and juju status juju-gui and both only give me an ipv6 address for the juju-gui14:22
jrwrenit depends on the address. if it starts with fe80 its a local address14:23
jrwrenit sounds like the DHCP for LXD isn't working, or something.14:24
jrwrenDid you setup that bridge to LAN already?14:24
PCdudestarts with fddc so should be accessible, but it is not..14:24
PCdudehttps://jujucharms.com/docs/stable/getting-started14:25
PCdudethat is what I followed to install JUJU14:25
PCdudethere is an bridge in "ifconfig", I am 95% sure there is14:25
jrwrenif you run `lxc list` what ip addresses does it show?14:25
PCdudeboth v4 and v614:26
PCdudethose names are the same as in juju status14:26
PCdudelet me check real quick14:26
jrwrenso... if you correlate the v6 address to the v4 address you should be able to use that to view the gui.14:28
PCdudejrwren: yeah, was trying exactly that with the command of magicaltrout earlier, but does not seem to work14:29
PCdudeok, it took me some time, but I got the problem14:36
PCdudeI was mapping with iptables to eth0, but of course that is not the case anymore in 16.0414:36
PCdudemapped it to ens33 (or any port for that matter) and it worked14:37
PCdudethanks anyway!!14:37
PCdudeso I see this login screen for the first time :)14:47
PCdudewhat is the different between login and login with usso14:47
PCdudeand what credentials should I use?14:48
PCdudethe normal credentials for login to the machine does not work14:48
jrwrenPCdude: juju gui --show-credentials will tell you the password14:50
PCdudeawesome and what is USSO?14:53
jrwrenUbuntu Single Sign On.14:54
jrwrenI don't think that works yet. We probably should not show that button if it won't work.14:55
PCdudestrange, I thought that was simply called SSO, but it seems like some sort of LDAP service to seperate JUJU and the user accounts?14:56
jrwrenSSO can be run by ANYTHING. Your google account is SSO to many google related services.15:05
todinhi, it there somewhere an example how to use install-keys in a juju bundle, somehow my yaml is not valid15:33
=== redir is now known as redir_afk
junaidalitodin: I'm not sure about bundle, but if you want you set install-keys config, you can do that by $ juju config <charm-name> install-keys='$(cat <install_Key>'17:41
todinjunaidali: thanks for your help, I found my solution here https://bugs.launchpad.net/charm-helpers/+bug/151569917:42
mupBug #1515699: configure_sources fails badly with misformatted configuration. <Charm Helpers:Triaged> <https://launchpad.net/bugs/1515699>17:42
junaidalithanks todin and mup: I didn't know about that17:45
=== zerick_ is now known as zerick

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