/srv/irclogs.ubuntu.com/2018/02/22/#maas.txt

=== frankban|afk is now known as frankban
=== JoeJulian_ is now known as JoeJulian
arun__HELP11:27
arun__I am trying to setup maas11:27
arun__and adding one machine node11:28
arun__but unable to commision the same11:29
=== cnfer is now known as cnf
JJ__Trying to troubleshoot a problem with my maas setup relating to the public interface16:57
JJ__My private interface is managed by MAAS along with DHCP and it seems to work fine, I can run conjure-up and it tries to bootstrap a juju node16:58
JJ__however it gets stuck at running machine configuration scripts16:59
JJ__I can ping google.com from the maas server on the public interface, I can't ping google.com from the juju node after ssh in16:59
roaksoaxCalvin`: not supported today unfortuantely17:03
roaksoaxCalvin`: err sorry17:03
roaksoaxarun__: that sound slike the machine cannot access the maas metadata. Make sure /etc/maas/rackd.conf points to itself in an IP that the machine can communicate to17:04
roaksoaxJJ__: so either you setup NAT'ing17:06
roaksoaxJJ__: or you tell juju to use MAAS as a proxy17:06
JJ__hmmm... currently have 2 subnets in maas17:07
JJ__one is private with dhcp managed by maas17:07
JJ__other is public with dns and dhcp provided by switch downstream17:08
mupBug #1750884 opened: [2.4, bionic] /etc/resolv.conf not configured correctly in Bionic, leads to no DNS resolution <cloud-init:New> <MAAS:Triaged> <nplan (Ubuntu):New> <systemd (Ubuntu):New> <https://launchpad.net/bugs/1750884>17:09
roaksoaxJJ__: right, but MAAS can install things from the archive because they use the apt proxy, aka MAAS17:12
roaksoaxJJ__: the system itself cannot reach the internet because it doens't have a global proxy configured17:12
roaksoaxJJ__: which is why either you enable NAT'ing, or tell the services you deploy with juju to use the proxy17:13
JJ__for maas dashboard under settings I have proxy set for MAAS built-in17:13
JJ__so you can enable NAT'ing through MAAS?17:14
roaksoaxJJ__: yes, that's APT proxy17:14
roaksoaxJJ__: that's not  a "system" proxy17:14
roaksoaxJJ__: https://askubuntu.com/questions/852154/juju-2-0-proxy-for-bootstrap/85293117:14
JJ__Ok, not that familiar with conjure-up open stack kvm install.  How do you tell the services deployed with juju to use the maas proxy?17:15
roaksoaxJJ__: so you can do two things. IF you want machines to have access to the internet regardless of wether juju deployed them17:15
roaksoaxJJ__: you need to enable NAT17:16
roaksoaxhow would you do that? If MAAS is your gateway, you need iptables rules to forward traffic17:16
roaksoaxfrom your public net, to hte internal net17:16
roaksoaxif you dont want to do that, you can tell juju to use a proxy. And that proxy would be MAAS17:16
JJ__Like this? https://askubuntu.com/questions/590449/maas-network-and-nat17:20
roaksoaxJJ__: yeah similar17:26
roaksoaxJJ__: personally, I always use NAT17:26
roaksoaxbut i jsut run a test environment17:26
=== frankban is now known as frankban|afk
JJ__roaksoax__: in reading both links about proxying and NAT, it seems they apply to a situation where the maas server is the only server with 2 nic's18:23
JJ__roaksoax__: in my situation all nodes have 2 nic's with one for the private subnet managed by MAAS and the other for public network.18:24
catbusroaksoax: Hi, wondering if you got my question yesterday and whether I missed the reply because I was on and off the chat.18:38
catbusroaksoax: I think I found the answer, https://github.com/maas/maas/blob/master/src/provisioningserver/drivers/pod/virsh.py only attach one interface. Even though I have two defined for the VM node (cloud-init is configured accordingly) but only one interface is created along with the VM creation.19:06
JJ__anyone know why maas wouldn't pass the gateway or allow the gateway to be passed from an external DHCP server?19:30
roaksoaxcatbus: we dont use the templates from kvm/libvirt, we use our own19:31
JJ__after commissioning I have tried auto assign, DHCP & Static for the public interface and none seem to allow the gateway to be passed to the node in its cloud config file19:32
JJ__maas correctly passes the gateway for the private managed interface19:33
JJ__if a gateway is passed it appears that NAT works, without a gateway - no NAT19:37
catbusroaksoax: I don't follow. What do you mean we don't use the templates from kvm/libvirt?19:47
roaksoaxcatbus: we dont create vm's based on what you have manually defined in libvirt19:47
roaksoaxe.g. if you have multiple networks in libvirt19:47
roaksoaxwe dont use that19:47
catbusroaksoax: yeah, I have to manually attach the second nic to the VM to use the second bridge I create on the kvm host.19:48
catbusthanks for the confirmation.19:49
JJ__roaksoax__: do you know if there is an issue with maas passing gateways ending in .254 instead of .120:17
roaksoaxJJ__: no known issues, shouldn't really be an issue if maas is the gateway or is not the gateway20:41
roaksoaxJJ__: when you configure DHCP you should tell it where the gateway is20:41
mupBug #1711203 opened: Deployments fail when Secure Boot enabled <blocks-hwcert-server> <id-5a28802797729aedf99dcd37> <curtin:Invalid> <dellserver:New> <MAAS:Triaged20:43
mupby andreserl> <MAAS 2.3:Triaged by andreserl> <maas-images:Fix Released by ltrager> <grub2 (Ubuntu):In Progress by cyphermox> <https://launchpad.net/bugs/1711203>20:43
JJ__roaksoax__:  I have the gateway configured in maas and in an external dhcp for the public internet interface, it is unmanaged and although I can get maas to assign an ip address from a  range, the gateway doesn't pass through.21:13
JJ__I tested the external dhcp and it does pass the gateway21:13
JJ__roaksoax__: is it possible to deploy a node with 2 fabric's, one on a private subnet with dhcp managed by maas and one on a public subnet with dhcp provided externally21:18
JJ__roaksoax__: according to the maas docs unless I am reading it wrong, it appears for the public subnet where dhcp is not managed by maas it doesn't pass the gateway to the node during deployment.21:24
roaksoaxJJ__: yes it is possible21:46
roaksoaxJJ__: you just have to set the interface to DHCP21:46
JJ__roaksoax__: when I set the public interface to dhcp then maas doesn't pass the gateway in the cloud config file and I haven't found a persistent way to modify the interface on the node to add it in.22:01

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