/srv/irclogs.ubuntu.com/2019/09/18/#juju.txt

atdprhshello everyone, do anyone know how to enable `externalTrafficPolicy: Local` on ingress by juju deployment, i tried to enable on the service but i get >> `Service "default-http-backend-kubernetes-worker" is invalid: spec.externalTrafficPolicy: Invalid value: "Local": ExternalTrafficPolicy can only be set on NodePort and LoadBalancer service00:53
atdprhsnot sure which service am I missing here?00:53
atdprhsAnyone enabled that setting before?00:59
atdprhsHave anyone at least worked around enabling ingress to see the real client ip?01:03
atdprhsor forward the real client ip?01:03
rick_hachilleasa:  can you shoot me that error message so I can tweak it in the cli doc please?07:02
achilleasarick_h: current version: https://pastebin.canonical.com/p/rp9bS24hgX/07:10
rick_hachilleasa:  ty07:11
=== nmnde is now known as nammn_de
danboidI think I may have broke juju or found a bug09:48
danboidIt doesn't seem to let you destroy a controller if you've already removed its container. Is this a known bug?09:49
danboidHow can I clean up controllers that have already had their containers removed? I can renstall juju if thats the only solution but I'd lie to know the proper way, if there is one09:50
danboidI have tried `juju destroy-controller -y --destroy-all-models --destroy-storage juju1` but it never completes, nor does it print any errors09:53
danboidIt should be pretty much instant as it never actually got used09:53
rick_hdanboid:  so you use juju unregister to remove the details of a controller from your local cache09:57
rick_hdanboid:  if you go to the cloud and remove the VMs, then there's nothing for your juju cli tool to speak to handle the destroy process09:57
rick_hdanboid:  so you just delete it from your local cache of controllers with unregister09:57
rick_hdanboid:  juju doesn't auto do that because we can't tell a network outage vs a gone machine/etc.09:58
danboidrick_h, Sorted it. `juju kill-controller juju1` got rid with issue, I think09:58
danboid*without issue09:58
danboidThere's no downside to using kill-controller ids there?09:59
danboidAs I say, it was never used anyway so I'm just housekeepng09:59
danboidI presume kill-controller unregisters it too10:00
danboidI suppose I should tidy up in the cleanest way that works10:01
danboidThe docs do say to use kill controller as a last resort, just wondering if there are any drawbacks?10:03
danboidrick_h, OK so juju unregister worked for me too. I should use that over kill-controller but what is the difference10:04
rick_hdanboid:  kill-controller will try to reach out to the cloud and kill off any machines behind the controller's back10:05
rick_hdanboid:  it doesn't promise to leave things in a clean state and such10:06
rick_hdanboid:  unregister doesn't touch the cloud at all and just removes the yaml in your local cache10:06
danboidrick_h, but in my case where all my controllers never got used, it wouldn't make any difference10:07
danboidrick_h, Thanks for explaining10:07
rick_hdanboid:  right10:08
danboidI've not been able to get juju register to work so that I can login to a controller from a remote machine10:17
danboidI get prompted for passwords and the controller name then it just waits and waits and eventually times out10:18
danboidSo, the register code encodes what exactly? My controller is running in an LXD container on my MAAS controller so how is it trying to contact it?10:20
danboidI have disabled IPv6 on my MAAS/juju controller so that shouldn't be an issue now10:21
danboidDo I need to create some LXD proxy devices (port forwarding rules) to forward the juju api port from the MAAS controller/ LXD server to the container on the IP?10:23
danboid*to the container running the controller10:24
danboidLuckily I think I know how to do that but the docs should really give an example as I'm sure it's quite a common scenario10:28
danboidI expect juju bootstrap doesn't do any network config for the controller container. So after configuring the networking of the controller container (lets say we can SSH into it and port 17070 is open), at that point juju register should work without any LXD proxy devices?10:44
=== exsdev0 is now known as exsdev
=== salmankhan1 is now known as salmankhan
danboidCan IPv6 be disabled on the juju controller without disabling IPv6 entirely on the host machine via a kernel argument?11:05
danboidI did that and itseems to have broke MAAS11:05
danboidI tried disabling IPv6 in LXD but that didn't help11:06
rick_hdanboid:  the issue is that the client needs to be able to contact the controller on its API port11:06
rick_hdanboid:  so if you've got a controller in a lxd container, then the client running "juju register" should be able to telnet to the controller ip:port11:06
rick_hif it can't you'll get a failure as you describe11:07
rick_hdanboid:  no, juju just puts the controller on the lxd container. Since you bootstrap from the machine you're talking to lxd on they're normally routable11:07
rick_hdanboid:  but from another machine you'll need to have a path from the root device that's hosting the lxd container from the outside11:08
danboidDo you know if MAAS requires IPv6? We aren't using v6 but after disabling it (to get juju controllers to stop using v6 addresses) I can no onger login to MAAS11:09
danboidI disabled it with a kernel argument11:10
danboidTHe juju controlles were assigning 17017 to an IPv6 address otherwise11:10
rick_hdanboid:  hmm, not sure. I think it would depend on what was setup on the network if ipv4 was setup correct or the like11:11
danboidbut you don't know of any juju controlle config option to say "only use IPv4"?11:11
rick_hdanboid:  on lxd juju throws an error if it's setup with ipv611:12
rick_hdanboid:  so you shouldn't need a config for that11:12
danboidIt hasn't done that for me11:13
rick_hdanboid:  what Juju are you using? snap or deb and version?11:13
danboidsnap. I've been using `juju bootstrap lxd Juju1` to create controller containers11:14
danboid2.6.811:14
danboidUnder 18.0411:14
danboidThen if I shell into the container and run netstat, I see 17017 is using an IPv6 address, unless I disable IPv6 with a kernel arg11:15
danboidlistening on a IPv6 port even11:16
rick_hdanboid:  hmm, I wonder what's up with that. We threw an error suggesting you use lxd-configure or the like to set it up w/o ipv6 enabled.11:17
danboidI tried disabling ipv6 addressing and NAT but it didn't help. Is this documented?11:19
danboidDisabling it on the LXD networking level sorry11:19
rick_hdanboid:  https://github.com/juju/docs/issues/296511:24
rick_hdanboid:  basically when you run `lxd init` it walks you through the setup11:24
danboidrick_h, Yes, I saw that bug yesterday and did what it advises but it didn't fix it for me. Even after destroying my controllers and creating new ones with LXD IPv6 disabled beforehand11:29
rick_hdanboid:  huh? do you disabled lxd ipv6 and still got an ipv6 address on containers brought up with juju?11:31
danboidDisabling IPv6 at te kernel level on the host DOES fix it but it seems that means I cannot run MAAS and LXD/juju controller on the same box11:31
danboidYes, I'll show you my LXD network config11:31
danboidhttps://gist.github.com/danboid/96fddd9ae6b95c91f6afc1dce63cf68611:33
danboidI went the extra step over what that bug advised by disabling ipv6 NAT too11:34
danboidWith IPv6 disabled, I didn't get a port 17017 at all11:34
danboidEnable v6, and I get 17017 listening on v611:35
=== nammn_de_ is now known as nammn_de
=== narindergupta is now known as narinderguptamac
babbageclunkdanboid: did you manage to get things working?15:23
danboidbabbageclunk, I solved my IPv6 problem by uninstalling lxd from the 18.04 repo and installing lxd from snap15:24
babbageclunkdanboid: oh great15:25
danboidIt does seem that the MAAS web UI doesn't start without IPv615:25
babbageclunkI didn't think to ask your lxd version, that would have been a good hint sorry15:26
=== ISDADS\sgs548_ is now known as danboid
crodriguezI've tried to bootstrap a controller with juju, and it hangs at the step 'Running machine configuration script'. After 2h, I cancelled the whole thing, and now juju won't return anything for juju status. Any idea how to fix juju?19:16

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