/srv/irclogs.ubuntu.com/2017/08/24/#maas.txt

=== frankban|afk is now known as frankban
v92Hi, it seems that MAAS generates network config during deployment even for devices that are in Unconfigured (interfaces are not used or connected) state after commisioning. I have version 2.2.1 (6078-g2a6d96e-0ubuntu1~16.04.1)12:14
v92do you have same experience ?12:14
v92seems like bug to me12:14
v92get-curin-config shows12:14
v92  - id: eno312:15
v92    mac_address: 80:18:44:e0:d4:0a12:15
v92    mtu: 150012:15
v92    name: eno312:15
v92    subnets:12:15
v92    - type: dhcp12:15
v92    type: physical12:15
v92  - id: eno412:15
v92    mac_address: 80:18:44:e0:d4:0b12:15
v92    mtu: 150012:15
v92    name: eno412:15
v92    subnets:12:15
v92    - type: dhcp12:15
v92    type: physical12:15
v92they should be ignored12:16
roaksoaxv92: i tested something with network configuration yesterday and it did not configure interfaces with DHCP that are "unconfigured"12:16
v92what version do you use ?12:17
roaksoaxv92: 2.2.2, but between 2.2.1 and 2.2.2 there hasn't been changes in network config12:17
roaksoaxlet me try to re-test12:18
v92I'm using dell for this test and I'm using only first two interfaces12:18
v92it prolongs boot time of server because it tries to get address with DHCP which wont work but it takes about two minutes12:19
roaksoaxyup, i'll run a quick test12:21
roaksoaxin the meantime, do you mind getting the output of12:21
v92output of ?12:22
roaksoaxmaas admin interfaces read <systemd_id>12:22
v92https://pastebin.com/JAgFdrdx12:23
roaksoaxv92: so eno3/eno4 are unconfigured12:26
roaksoaxv92: but do show this "        "links": [12:26
roaksoax            {12:26
roaksoax                "id": 939739,12:26
roaksoax                "mode": "dhcp"12:26
roaksoax"12:26
* roaksoax brb, reboot12:29
v92yep, that's what I'm saying12:30
v92for some reason they're configured for dhcp even they're not configured to be12:30
roaksoaxv92: do you have a external dhcp server connected to those interfaces ?12:31
v92to eno3 and eno4 ? they aren't connected12:39
roaksoaxv92: I'm testing now to see if I can reproduce12:41
v92gr812:46
roaksoaxv92: http://paste.ubuntu.com/25382734/12:48
roaksoaxv92: http://pastebin.ubuntu.com/25382746/12:48
roaksoaxv92: jus commissioned and deployed a machine and it works as expected12:48
roaksoaxv92: has this maas been upgraded or did you use to manage those interfaces with DHCP or anything of the sort ?12:49
v92it was upgraded but now I realize why does it behave this way12:50
v92I have oneline patch that resets devices to DHCP because I needed them to be in that configuration after release.I didn't trust users that they will set it every time before deployment as it was needed.12:52
roaksoaxgotcha :)12:53
v92I was thinking it it does only on enabled devices but device can be enabled regardless of its connected state12:53
v92        # Set LINK_UP mode on all the other enabled interfaces.12:53
v92        for interface in self.interface_set.all():12:53
v92            if interface == boot_interface:12:53
v92                # Skip the boot interface as it has already been configured.12:53
v92                continue12:53
v92            if interface.enabled:12:53
v92                interface.ensure_link_up()12:53
v92                interface.link_subnet(INTERFACE_LINK_TYPE.DHCP, None)12:53
v92in maasserver/models/node.py12:53
v92that last line is mine12:54
roaksoaxv92: yeah "link_subnet" will basically tell it to bring it up12:54
v92I will probably just delete those sections in interfaces file during deployment and it would behave as expected12:56
v92roaksoax: anyway, thank you for your time !12:58
roaksoaxv92: glad to help13:18
ybaumyroaksoax: did you hear anything from the bug with the resolv.conf?15:11
mupBug #1441624 changed: MAAS squid proxy doesn't support using an upstream proxy <landscape> <MAAS:Fix Released by bjornt> <https://launchpad.net/bugs/1441624>15:13
mupBug #1441624 opened: MAAS squid proxy doesn't support using an upstream proxy <landscape> <MAAS:Fix Released by bjornt> <https://launchpad.net/bugs/1441624>15:19
mupBug #1441624 changed: MAAS squid proxy doesn't support using an upstream proxy <landscape> <MAAS:Fix Released by bjornt> <https://launchpad.net/bugs/1441624>15:25
roaksoaxybaumy: nothing really, one thing I have to test is whether the dns resolution while cloud-init is working15:35
roaksoaxybaumy: cause it could be that the interface re-requested dhcp and something cased it not to obtain dns15:35
=== frankban is now known as frankban|afk
mupBug #1597801 changed: cannot create node VLAN interfaces on centos <MAAS:Fix Released> <https://launchpad.net/bugs/1597801>18:25
mupBug #1697931 changed: [2.2,snap] Proxy isn't running after installing the snap <snap> <MAAS:Invalid> <MAAS 2.2:Invalid> <https://launchpad.net/bugs/1697931>18:25
PepperHi. I'm searching for a solution for the following problem: I have a rack controller with 5 interfaces which are automatically picked up by maas, i.e. creating fabrics and subnets etc. I want MAAS to handle only two of these subnets so I set all the other subnets to "unmanaged". However it seems that this does not affect DNS behavior. When I try to ping the rack controller from a node in my network it retrieves to a local ip of an unman19:44
PepperIs there a way to specify which subnet to prefer? Ultimately I don't want MAAS to care about any of the other subnets.19:44
roaksoaxPepper: i dont understand this "itr retrieves to a local ip of an unman" ?19:57
PepperTo a ip on the rack controller which is not connected to the rest of the network19:58
Pepperthere are 5 subnets on the rack controller but only 2 are accessible from the deployed nodes19:59
roaksoaxPepper: so you are pinging to the hostname of the rack instead of the ip of the rack19:59
roaksoaxPepper: try <iface>.<name>.<domain>19:59
roaksoaxPepper: try <iface>.<hostname>.<domain>19:59
Peppersure that works19:59
Pepperbut I want it to resolve to a different default ip19:59
PepperI don't want to specify that specific network interface20:00
roaksoaxi can't remember fi we did that or not20:01
roaksoaxmpontillo: ^^ can you ?20:01
roaksoaxi /thought/ you could decide to change which interface gets the hostname ... remember ?20:01
PepperPreviously I just deleted the unused subnets but every time I restart maas they are picked up again20:01
mpontilloroaksoax: Pepper: I think if you set the default gateway interface using the API, that's what we'll select20:02
mpontilloPepper: someone on the mailing list just mentioned this problem; the solution they came around to was to use lxd/lxc to create a container to run MAAS inside, so that only the relevant interfaces would appear to be on the controller in the first place20:03
mpontillohuh. 2017-08-24 20:05:24 maasserver.preseed: [warn] WARNING: '/etc/maas/preseeds/curtin_userdata' contains deprecated preseed variables. Please remove: main_archive_directory, ports_archive_directory, http_proxy20:05
PepperOk thx I'll check if the default gateway works otherwise I will try to setup the container solution for now. It would be nice to permanently delete subnets from maas ;)20:05
mpontillo(oops, didn't mean to paste that log here, sorry for the spam)20:06
roaksoaxPepper: the other option would be the add a dns resource record20:06
roaksoaxPepper: either a CNAME or a A record20:06
PepperThis overrides the other A record?20:06
roaksoaxPepper: this is what I did:20:20
roaksoaxubuntu@maas00:~$ ping maas00.maas20:20
roaksoaxPING maas00.maas (192.168.1.13) 56(84) bytes of data.20:20
roaksoaxmaas admin dnsresources create fqdn=maas00.maas ip_addresses=10.90.90.120:20
roaksoaxping maas00.maas20:21
roaksoaxubuntu@maas00:~$ ping maas00.maas20:21
roaksoaxPING maas00.maas (10.90.90.1) 56(84) bytes of data.20:21
PepperOk that looks like what I want :-)20:21
Pepperthx20:21
PepperJust tested it and it works! Thanks again for your help.20:27
mupBug #1712917 opened: [2.3] Cannot use fqdn parameter when creating dnsresource-records <MAAS:Triaged> <https://launchpad.net/bugs/1712917>21:11
=== sfeole is now known as sfeole-away

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