I've noticed one other thing - the machines registered with MAAS have names like this: machine-0-lxc-0.maas machine-0-kvm-0.maas
but the actual container names itself: juju-machine-0-lxc-0 which means it still can't resolve itself. kind regards Pshem On Wed, 4 Nov 2015 at 00:53 Andrew McDermott <andrew.mcderm...@canonical.com> wrote: > Request captured as a card/task in our kanban board. > > On 2 November 2015 at 20:18, Rick Harding <rick.hard...@canonical.com> > wrote: > >> Awesome, thanks for confirming Pshem. Andy, Alexis, we should try to make >> sure we've got a docs page in the experimental section with copy/pastable >> instructions and maybe a screenshot of it in maas to show what it looks >> like. >> >> Rick >> >> On Mon, Nov 2, 2015, 3:07 PM Pshem Kowalczyk <pshe...@gmail.com> wrote: >> >>> Hi, >>> >>> The key was to use JUJU_DEV_FEATURE_FLAGS (please note the S at the end) >>> variable. Once I did that the hostnames are visible in MAAS under devices >>> (in current GUI), also the DNS works for them correctly: >>> >>> tdvops@maascontroller:~$ dig +short machine-0-lxc-2.maas >>> 10.0.0.15 >>> tdvops@maascontroller:~$ dig +short -x 10.0.0.15 >>> machine-0-lxc-2.maas. >>> >>> kind regards >>> Pshem >>> >>> >>> On Tue, 3 Nov 2015 at 03:54 Rick Harding <rick.hard...@canonical.com> >>> wrote: >>> >>>> Thanks for the details Andres. >>>> >>>> On Mon, Nov 2, 2015, 9:52 AM Andres Rodriguez <andres...@ubuntu.com> >>>> wrote: >>>> >>>>> Re-sending my response inline below >>>>> >>>>> On Mon, Nov 2, 2015 at 9:16 AM, Andres Rodriguez < >>>>> andres...@ubuntu-pe.org> wrote: >>>>> >>>>>> >>>>>>> > ### Support "devices" on MAAS 1.8+ >>>>>>> > >>>>>>> > MAAS 1.8 introduced a new feature called "devices". This allows >>>>>>> > the association of a "device", that requires an IP address, with a >>>>>>> > parent machine managed by MAAS. There is a view in the MAAS UI >>>>>>> > showing all devices. >>>>>>> > >>>>>>> > With the "address-allocation" feature flag enabled, Juju will >>>>>>> > register LXC and KVM containers as devices on MAAS 1.8+. They are >>>>>>> > visible in the MAAS UI. If the environment is forcibly shut down, >>>>>>> > the IP addresses allocated to the containers will be released by >>>>>>> > MAAS. >>>>>>> > >>>>>>> > You can enable "address-allocation" is new Juju environments like >>>>>>> > so: >>>>>>> > >>>>>>> > JUJU_DEV_FEATURE_FLAG=address-allocation juju bootstrap >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > Are they any other requirements in order to get the "devices" >>>>>>> > feature working? I've just built a brand new MAAS >>>>>>> > (1.8.2+bzr4041-0ubuntu1) and juju (1.25.0, from PPA) setup, >>>>>>> > bootstrapped a new environment using the syntax provided above, but >>>>>>> > the containers are not getting registered under 'MAAS devices'. >>>>>>> >>>>>> >>>>>> If you are not seeing the LXC containers being registered in MAAS >>>>>> under the 'Devices' tab in MAAS 1.8, then there might be a bug somewhere >>>>>> (either Juju not adding those in MAAS, or the addition failing for some >>>>>> reason), we would need logs to look into what's going on >>>>>> (/var/log/maas/regiond.log from the MAAS side). >>>>>> >>>>> >>>>>> >>>>>>> > >>>>>>> This is because recently MAAS web UI changed not to show devices as >>>>>>> before. However, juju should still be registering them for containers >>>>>>> and this can be verified by using the MAAS CLI: >>>>>>> >>>>>> >>>>>> This is not 100% correct. 1.8 will show LXC/KVM containers under >>>>>> Devices. MAAS 1.9 does *not* show them under devices and we have an >>>>>> open bug to address that [1]. >>>>>> >>>>>> [1]. https://bugs.launchpad.net/maas/+bug/1503474 >>>>>> >>>>>> Hope this helps. >>>>>> >>>>> >>>>>>> $ maas <profile-name> devices list >>>>>>> >>>>>>> Cheers, >>>>>>> Dimiter >>>>>>> >>>>>>> > kind regards Pshem >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> >>>>>>> >>>>>>> - -- >>>>>>> Dimiter Naydenov <dimiter.nayde...@canonical.com> >>>>>>> Juju Core Sapphire team <http://juju.ubuntu.com> >>>>>>> -----BEGIN PGP SIGNATURE----- >>>>>>> Version: GnuPG v2.0.22 (GNU/Linux) >>>>>>> >>>>>>> iQEcBAEBAgAGBQJWNx98AAoJENzxV2TbLzHwHaYIAKTrTftizH3fylyWSoOnbKJC >>>>>>> GcqofRaFd+g40bzvo2ZXMDHy3Tj2GhchrjKstP4pIfgDF3XnPKd6Q8g48+fyqXYJ >>>>>>> zIxmbrWr+RBjGdUPiW+uqaRB7E6i7EazOs4X0/XyJeMbx7TdrqD8d/0+i/Sv5Y/Y >>>>>>> EalgXIr8kciOhHw6IkNfBAMK6nxd2yAKxveWzPGD7z8wPBtDR5Y3PjmQHqevFf9Q >>>>>>> ofya8Z8TV0HFZHxb/ZAkkuLpxu9OXv69ReOux9Ai1MaGVEuEM2hMgv+MbC3RhlII >>>>>>> ZimTBotyzJckIi+IHL8UDOaOvsG6qAq9kA5FdUrlXhAfkPu66nEEK8bkTHVxuzk= >>>>>>> =foku >>>>>>> -----END PGP SIGNATURE----- >>>>>>> >>>>>>> -- >>>>>>> Juju mailing list >>>>>>> Juju@lists.ubuntu.com >>>>>>> Modify settings or unsubscribe at: >>>>>>> https://lists.ubuntu.com/mailman/listinfo/juju >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Andres Rodriguez (RoAkSoAx) >>>>>> Ubuntu Server Developer >>>>>> MSc. Telecom & Networking >>>>>> Systems Engineer >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Andres Rodriguez (RoAkSoAx) >>>>> Ubuntu Server Developer >>>>> Systems Engineer >>>>> >>>> -- >>>> Juju mailing list >>>> Juju@lists.ubuntu.com >>>> Modify settings or unsubscribe at: >>>> https://lists.ubuntu.com/mailman/listinfo/juju >>>> >>> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> >> > > > -- > Andrew McDermott <andrew.mcderm...@canonical.com> > Juju Core Sapphire team <http://juju.ubuntu.com> >
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju