/srv/irclogs.ubuntu.com/2018/06/01/#maas.txt

KingJI'm not sure if this is an issue with MAAS or netplan, but i'm having a lot of difficult getting a 9000 byte MTU on a 802.1ad bond. In the generated netplan config, I can see that the MTU is set to 9000 for the bond member interfaces, but when the bond comes up everything switches to 1500.14:11
KingJIndeed, checking dmesg I can see a lot of "changing MTU from 9000 to 1500" messages.14:12
roaksoaxKingJ: is that for a deployed system ?14:15
KingJroaksoax: Yeah14:15
roaksoaxKingJ: what's the resulting netplan ?14:15
KingJOne sec14:15
KingJroaksoax: Netplan config: https://paste.ubuntu.com/p/mxp6Dkxfqg/14:19
xygnalroaksoax: why is pgs10 needed for 2.4?14:20
roaksoaxKingJ: seems you have eth0 with mtu 1500 and the rest with mtu 9000, which is your expected config, right ?14:21
roaksoaxKingJ: but those w/ mtu9000 are really being changed to mtu 1500 ?14:21
KingJroaksoax: Yep, eth0 is supposed to be at 1500 (can't support higher, and is just a management interface). enp* are meant to be at 9000 and bonded.14:22
KingJLet me grab the dmesg and ip link sh output14:22
roaksoaxKingJ: ok, so probably due to the bond not declaring MTU ?14:23
KingJdmesg: https://paste.ubuntu.com/p/PQrJcKbXtv/14:24
KingJip link sh: https://paste.ubuntu.com/p/GRP3SGWrSt/14:24
KingJroaksoax: Possibly? There was no option on the UI to set the MTU on the bond.14:24
roaksoaxxygnal: i dont /think/ we have a strict requirement on pg10, but rather, pg10 is the default on bionic14:24
xygnalyes figured.  we run our db separate so verifying we can keep it.14:25
roaksoaxKingJ: ok, so IIRC, if the parent interfaces of a bond have the higher mtu, then the bond should inherit that14:27
KingJI did also try assigning a VLAN with a 9000 MTU to the bond interface itself, although that doesn't appear to have made it in to the netplan config (possibly because I only assigned the VLAN and left subnets/addressing unassigned?)14:27
roaksoaxKingJ: and it seems in this case is not14:27
roaksoaxKingJ: try this: maas <user> machine get-curtin-config <system-id>14:28
roaksoaxKingJ: and deploy a machine in xenial and see whether the bond ends up with the mtu defined ?14:28
KingJroaksoax: Here's the curtin config (just the networking section) https://paste.ubuntu.com/p/5Tdb6xwh69/14:30
KingJI'll reclaim the machine now and re-provision on xenial14:31
roaksoaxKingJ: https://pastebin.ubuntu.com/p/jdC68hPRJR/14:31
roaksoaxKingJ: seems to be that the mtu is defined14:31
roaksoaxKingJ: so that looks like a cloud-init issue to me14:32
KingJYeah, odd. I'll admit I also have tried running interface update the6f3 153 mtu=9000 however that was done after deployment - so I wouldn't expected that to have an effect?14:33
roaksoaxKingJ: no, so lets wait to see what e/n/i results in xenial14:33
roaksoaxKingJ: to compare14:33
KingJroaksoax: Gotcha. I'll report back once deployed on Xenial. Should be within the next half hour.14:34
KingJ(Thanks as always for your help here!)14:35
roaksoaxmp!14:39
xygnalroaksoax: what cloudinit version is officially needed for static ip support?14:48
xygnalroaksoax: and look at this... https://bugs.launchpad.net/cloud-init/+bug/171268014:57
roaksoaxxygnal: static ip addressing is in 17.x something15:00
roaksoaxxygnal: the bug is fixed in cloud-init 18.2+ i think, which the centos iamges are not yet using15:00
xygnalthey are using an older version with a patch15:01
xygnaland the patch appears to contain it15:01
xygnalas it works with your centos7 image15:01
xygnalhowever, seems that bug report implies its broken in other ways15:02
xygnalty15:04
KingJroaksoax: Deployed on 16.04, still seeing a 1500 MTU. dmesg still has messages about the MTU being changed from 9000 to 1500. Checking /etc/network/interfaces.d/50-cloud-init.cfg I can see that all interfaces, including the bond, have a 9000 MTU configured (paste incoming)15:17
KingJhttps://paste.ubuntu.com/p/mr2JCwTzfX/15:18
KingJAh wait15:19
KingJMy bad... it's actually all at 9000 and dmesg was about changing from 1500 to 900015:19
roaksoaxxygnal: it shouldn't really, if you use maas provided config15:21
roaksoaxKingJ: ah so both bionic/xenial doing the same thing ?15:21
KingJroaksoax: No sorry. Bionic has dmesg messages about MTU changing from 9000 to 1500, xenial has messages about 1500 to 9000. Xenial's ip link sh output confirms 9000 MTU, pings with large packets work without fragmenting. So Xenial works, Bionic doesn't.15:22
xygnalroaks: i dont change its config. i just deploy in maas with autoassign and post deploy iatrou_nspection shows a local static config file.15:23
roaksoaxKingJ: please file a bug and attach all relevant info (maas preseed config, the cloud-init netplan config on bionic, the e/n/i on xenial, and the kernel messages)15:23
KingJe/n/i ?15:24
roaksoaxKingJ: /etc/network/interfaces.d/50-**15:24
KingJAhhhh, yes.15:24
KingJI'll get that filed now, thanks.15:24
roaksoaxxygnal: sorry, i dont follow ?15:25
xygnalthere was a typo in there sorry.  If I deploy the stock centos7 image from MAAS in 2.4, it writes a static IP config locally on the CentOS box15:25
xygnalusing auto-assign15:26
xygnalyou seemed to think it should not, but i'm telling you, it does15:26
xygnaljust FYI15:26
roaksoaxxygnal: ah no, i think there's some confusion there then, because it should deploy correctly a static config file15:27
roaksoaxxygnal: my bug was about modifying the config manually post deployment, cloud-init would re-write it on reboot15:27
xygnalroaksoax: ah you were addressing the bug specifically. gotcha.15:27
xygnali only pointed that out as i noticed that is the version that you deploy15:28
roaksoaxgotcha15:28
xygnal(or CentOS deploys, as it were)15:28
mupBug #1774665 opened: MAAS creates GPT header and partition on one disk when creating a 2 disk raid-1 set <cdo-qa> <foundations-engine> <MAAS:New> <https://launchpad.net/bugs/1774665>15:29
mupBug #1774666 opened: Bond interfaces stuck at 1500 MTU on Bionic <mtu> <netplan> <MAAS:New> <https://launchpad.net/bugs/1774666>15:32
roaksoaxKingJ: one more thing, can you provide the version of cloud-init ? dpkg -l | grep cloud-init15:37
chquarkHi guys,15:38
chquarkiḿ trying to follow this guide https://docs.openstack.org/charm-deployment-guide/latest/install-maas.html15:38
KingJroaksoax: Done :) Let me know if there's anything else I need to add15:38
chquarkusing ubuntu 18 LTS, but have this error https://imgur.com/a/1lSwt4z15:39
roaksoaxKingJ: i think that's all, i opened bugs against cloud-init as i think that's wehre the error is15:39
roaksoaxchquark: go to the 'Logs' tab, what does it show ?15:39
roaksoaxchquark: for the installation log15:39
KingJroaksoax: Yeah, that does look to be the case. Thanks for your help here.15:40
roaksoaxnp!15:40
chquarkInstallation has failed and no output was given.15:40
chquark^^ that is all it says15:40
chquarkhttps://pastebin.com/yXiVDWid15:40
chquarkhttps://pastebin.com/cHZM0Evz ´/var/log/maas/rsyslog/juju1/2018-06-01´15:41
roaksoaxchquark: in the UI you have a 'logs' tab15:41
roaksoaxchquark: with a red15:42
roaksoaxicon15:42
roaksoaxit will show you the logs15:42
roaksoaxchquark: for installation15:42
roaksoaxchquark: does it show ?15:42
roaksoaxchquark: looking at the rsyslog, this is the error: https://pastebin.ubuntu.com/p/xDMxpkYSV5/15:42
chquarkso it basically needs access to the internet15:43
roaksoaxchquark: well yes and no, 10.0.2.15:8000 -> who owns that IP ?15:44
roaksoaxchquark: is that MAAS itself ?15:44
chquarkits my NAT ip.. going to internet.15:44
chquarkMAAS is 192.168.100.115:44
roaksoaxchquark: so the deployment needs to access the ubuntu archive, if you have a local archive you can use that15:44
roaksoaxchquark: so the deployment needs to access the ubuntu archive, if you have a local archive you can use that instead15:44
roaksoaxchquark: but that error is telling me that maas is trying to contact the internal proxy on that IP address15:45
roaksoaxchquark: that would mean maas itself is running on a machine that has that IP ?15:45
chquarkyes MAAS server has that IP, it is NATed to get internet access15:45
roaksoaxchquark: and are machines on 192.168.100.0/24 ?15:46
chquarkMAAS has 3 interfaces , 1) 192.168.100.1 , 2) 10.0.2.15, 3) 192.168.56.20415:47
roaksoaxchquark: ok what's in /etc/maas/rackd.conf ? and whats the network that machines are PXE booting from (i'm guessing its 192.168.100.1? )15:47
chquarkJuju 1) 192.168.100.0/24 -- DHCP from MAAS15:47
roaksoaxchquark: ok, so check rackd.conf15:47
chquark[sudo] password for user:15:48
chquarkcluster_uuid: ec08ffa0-1d19-4591-bd3d-a31381de5ba715:48
chquarkmaas_url: http://localhost:5240/MAAS15:48
chquarkuser@user:/var/log/maas/rsyslog/juju1/2018-06-01$15:48
roaksoaxchquark: do this, use 192.168.100.1 instead of 'localhost'15:48
roaksoaxchquark: in rackd.conf15:48
roaksoaxsudo service maas-rackd restart15:48
roaksoaxchquark: and try to deploy again15:48
chquarkok15:48
chquarkroaksoax: I think it is working :)15:58
roaksoaxchquark: awesome!15:59
mupBug #1774665 changed: MAAS creates GPT header and partition on one disk when creating a 2 disk raid-1 set <cdo-qa> <foundations-engine> <MAAS:New> <https://launchpad.net/bugs/1774665>16:05
mupBug #1774665 opened: MAAS creates GPT header and partition on one disk when creating a 2 disk raid-1 set <cdo-qa> <foundations-engine> <MAAS:New> <https://launchpad.net/bugs/1774665>16:14
=== frankban is now known as frankban|afk
roaksoaxKingJ: fwiw, what is being asked is for you to set the MTU on the bond interface itself and see if that correctly sets the MTU17:52
KingJroaksoax: Gotcha. Just tried adding it to the bond section and re-running netplan apply but to no avail - also tried a systemd-networkd restart. Just going for a full reboot now before reporting back on the bug ticket.18:45

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