/srv/irclogs.ubuntu.com/2016/08/23/#maas.txt

mpontillocatbus1: well, it appears to disconnect periodically from the logs. that is why you see "Lost all connections to region controllers. Stopping service(s)"00:00
catbus1mpontillo: yes, that is probably because I was restarting region-controller.00:01
catbus1but then it shows rack controller is registered.00:02
mpontillocatbus1: right.. if that is no longer happening, I think everything should be fine00:03
catbus1mpontillo: all the logs seem to suggest everything is running fine, but why does sudo service maas-regiond status says the status is active (exited) and the maas-regiond pid doesn't exist.00:04
mpontillocatbus1: that is just how systemd represents it when a service has multiple worker processes. it's because there are four regiond workers running00:07
mpontillocatbus1: you want something more like this: for service in maas-regiond-worker@{1,2,3,4}; do service $service status; done00:07
catbus1mpontillo: ah ok00:07
catbus1mpontillo: I don't have access to the system now. will check next time. MAAS uses apache2 right?00:08
mpontillocatbus1: apache2 is not required, but with the maas-region-api package we ship /usr/share/maas/maas-http.conf -- this forwards /MAAS on the apache2 server to the MAAS HTTP server on port 524000:10
mpontillocatbus1: it is symlinked in /etc/apache2/conf-enabled when MAAS is installed00:11
catbus1mpontillo: so apache2 is used by maas to provide http service, no? I don't follow.00:14
catbus1how do I check if the http service provided by maas is running fine00:15
mpontillocatbus1: from the region, you could do: curl -I http://localhost:5240/MAAS/00:16
mpontillocatbus1: if you get an error or timeout, it's not running00:16
mpontillocatbus1: if you wanted to script it, you could do something like --00:19
mpontillocurl -I --silent --fail http://localhost:5240/MAAS > /dev/null && echo "MAAS HTTP server is up and running." || echo "Failed to contact MAAS HTTP server."00:19
mpontilloreplacing localhost with the IP of MAAS00:19
mpontillocatbus1: apache2 support is provided merely for convenience, so that users don't need to remember to type :5240 on the end of the MAAS hostname, open firewall ports, etc00:20
catbus1ok00:22
catbus1Thanks!00:22
mpontillonp00:26
catbus1mpontillo: running curl gives HTTP/1.1 302 FOUND. does that  mean it's running?00:38
mpontillocatbus1: yes00:39
catbus1ok00:39
mpontillocatbus1: that's a redirect to the login page, FYI00:39
* catbus1 nods. It also shows "Location: http://<ip>:5240/MAAS/accounts/login/?next=%2FMAAS%2F". 00:40
catbus1#302 means redirect00:41
mpontilloyes.00:42
=== frankban|afk is now known as frankban
KpuCkois that anyway to make rack controller high avaliable? Im using maas 1.710:46
roaksoaxKpuCko: 1.7 does not have rack controllers nor supports HA10:56
roaksoaxKpuCko: you need to use maas 2.0+10:56
KpuCkoyes, thanks10:56
KpuCkoi've read about this but im not sure, and prefered to ask ;>10:57
roaksoaxKpuCko: region controller is typucally where the API lives11:07
roaksoaxthe rack controller is the one typically directly connected to the machines11:07
roaksoaxand the one that provides DHCP/PXE services11:07
roaksoaxKpuCko: both support HA11:07
roaksoaxKpuCko: http://maas.io/docs/manage-maas-ha11:08
KpuCkoyeah, yeah11:08
KpuCkothanks a lot11:08
roaksoaxKpuCko: the rack controller HA is simple, you just need to connect another rack controller to the same VLAN11:09
roaksoaxregion ha will require a bit more work and configuration from additional services11:09
KpuCkoyeah i do the same11:09
KpuCkonow i have one region controller with two rack controllers (here is named cluster controllers)11:09
KpuCkoso i can do region controller ha only in maas 2.0, right?11:10
roaksoaxHA is only supported in MAAS 2.0+11:12
KpuCkoyes, many thanks11:12
mupBug # changed: 994761, 1039362, 1040465, 1043311, 1052874, 1052879, 1052881, 1052886, 1054040, 1054515, 1059642, 1064437, 1064796, 1076080, 1077942, 1082338, 1083244, 1084315, 1138032, 1178044, 1184816, 1214020, 1222650, 1222801, 1223734, 1224837, 1226060, 1227756, 1228284, 1235404, 123856711:19
mupBug # changed: 984730, 1073324, 1100342, 1199469, 1215447, 1235406, 1240051, 1250392, 1250503, 1251968, 1252754, 1254755, 1257965, 1258695, 1259872, 1270054, 1270857, 1273705, 1273941, 1274071, 1274424, 1274447, 1274553, 1274555, 1276561, 1276675, 1281299, 1282052, 1284418, 1327380, 1339734, 134034711:28
mupBug #1199469 changed: MaaS WebUI does not work after reboot <MAAS:Won't Fix> <maas (Ubuntu):Won't Fix> <https://launchpad.net/bugs/1199469>11:28
mupBug # opened: 984730, 1073324, 1100342, 1199469, 1215447, 1235406, 1240051, 1250392, 1250503, 1251968, 1252754, 1254755, 1257965, 1258695, 1259872, 1270054, 1270857, 1273705, 1273941, 1274071, 1274424, 1274447, 1274553, 1274555, 1276561, 1276675, 1281299, 1282052, 1284418, 1327380, 1339734, 134034711:37
mupBug #1199469 opened: MaaS WebUI does not work after reboot <MAAS:Won't Fix> <maas (Ubuntu):Won't Fix> <https://launchpad.net/bugs/1199469>11:37
mupBug # changed: 984730, 1073324, 1100342, 1199469, 1215447, 1235406, 1240051, 1250392, 1250503, 1251968, 1252754, 1254755, 1257965, 1258695, 1259872, 1270054, 1270857, 1273705, 1273941, 1274071, 1274424, 1274447, 1274553, 1274555, 1276561, 1276675, 1281299, 1282052, 1284418, 1327380, 1339734, 134034711:43
mupBug #1199469 changed: MaaS WebUI does not work after reboot <MAAS:Won't Fix> <maas (Ubuntu):Won't Fix> <https://launchpad.net/bugs/1199469>11:43
mupBug # changed: 1240570, 1271694, 1274101, 1287452, 1291647, 1293939, 1294795, 1295167, 1298581, 1298778, 1298783, 1298785, 1298786, 1298787, 1303036, 1304228,11:58
mup1311141, 1313685, 1395203, 1398196, 1398829, 1399764, 1402021, 1551636, 1555373, 1556153, 1559088, 1572646, 1604424, 1604460, 1605312, 160551711:58
mupBug #1596719 changed: Lenovo TS140 Server UEFI only supported by MaaS <MAAS:Invalid> <https://launchpad.net/bugs/1596719>12:19
* D4RKS1D3 Hi 15:44
osmHi guys, is it possible to upgrade from maas 1.9.4 to maas 2.0?16:16
osmor migrate database?16:16
roaksoaxosm: it should just work16:19
osmdatabase model is same?16:22
roaksoaxosm: not the same, there's new migrations16:23
=== Guest25180 is now known as med_
=== med_ is now known as medberry
=== medberry is now known as med_
=== frankban is now known as frankban|afk
nturnerWhat's the best way to ask curtin to use GPT with MAAS 2.0?  The notes at http://askubuntu.com/questions/646278/how-to-ask-curtin-to-use-gpt-instead-of-mbr-with-maas no longer seem to apply.18:45
kikonturner, you mean, other than booting in UEFI mode?18:48
nturnerkiko: right. I know grub can boot GPT in regular BIOS mode18:49
kikoit can, yes18:49
nturnerbtw, how does maas determine if the system is going to boot in UEFI mode or not?18:49
kikoyou mean "has booted" rather than "is going to boot", no?18:50
kikoduring commissioning and deployment we know that the machine booted in UEFI mode18:50
kikoand thus can partition accordingly18:50
nturnerkiko: well, here I betray my ignorance =)  But I thought booting via PXE was neither18:50
kikoah18:51
kikosadly it seems both smoser and blake_r_ are out today18:51
kikonturner, and you've tried to modify the curtin userdata?18:51
kikoperhaps roaksoax can give you a bit more technical advice18:51
nturnerkiko: I added the block-meta stanza suggested at that askubuntu.com answer to the preseed file. It didn't seem to have any effect.18:53
nturnerStill got a msdos partition table18:53
nturnerMaybe I needed to restart something?18:53
kikonope, it's provided when the deploy runs18:57
kikohmm18:57
kikoroaksoax?18:57
mupBug #1616201 opened: MAAS 2: database notification failure causes out-of-date DNS <landscape> <MAAS:New> <https://launchpad.net/bugs/1616201>19:50
roaksoaxnturner: every single time we boot we check what the machine booted with20:37
kikoroaksoax, and when PXE-booting, you are still booting via either BIOS or UEFI, right?20:38
roaksoaxkiko: PXE-booting is legacy20:38
roaksoaxkiko: so we either do legacy or efi20:38
roaksoaxwe know every time we boot20:38
kikoroaksoax, that's confusing -- EFI also supports netboot, is that it?20:39
kikoand it's not PXE?20:39
roaksoaxkiko: EFI never does "pxe"20:40
roaksoaxkiko: pxe is pxelinux20:40
kikoroaksoax, oh, you confused me there20:40
kikoPXE is actually the IETF "standard"20:41
kikowhich EFI can do, but not using PXELINUX20:41
kiko:)20:41
kikoanyway, we are agreeing20:41
roaksoaxkiko: yeah, I guess we misuse the terms20:41
kikowhen you boot in EFI mode, you do netboot, you just don't get pxelinux sent to you20:41
roaksoaxkiko: efi does pxe, then it is told to netboot via grub20:41
kikoand when you boot in legacy mode, we do send pxelinux20:41
kikoyeah20:41
roaksoaxwhile legacy does pxe then use pxelinux20:41
kikoyep20:42
kikoroaksoax, how do we check how we booted? I guess we know from the DHCP options?20:42
kikoroaksoax, do you know why nturner can't seem to get curtin to put down a GPT partition even when specifying userdata?20:42
kikoroaksoax, did that change in curtin2?20:42
nturnerok, I think I mostly follow. So if I can convince my motherboard to boot in EFI mode, it should network boot in a way that allows maas to detect that20:42
kikoerr the curtin we use for maas2?20:43
kikocorrect20:43
nturnerroaksoax: in your first statement, are you referring to the get_partition_format_type check in curtin/commands/block_meta.py?20:43
kikoit's usually a single tweak20:43
nturnerhmmm, changing the "Launch Storage OpROM Policy" from Legacy first to UEFI first didn't do the trick... maybe this mobo can't do EFI netboot?20:44
kikoit should be able to20:45
nturnershould I be able to override this decision to use msdos instead of gpt partition type?20:45
kikoyou should also20:45
kikonturner, it's worth a dive into the curtin code to figure out why it's ignoring your userdata20:45
nturnerkiko, yeah, I think I found where it should be acting on it20:46
nturnerI assume the curtin code that runs at install time is baked into the images, though, so adding arbitrary tracing etc. is not a simple proposition20:46
roaksoaxDHCP tells the firmware whether it should contact MAAS via tftp (for pxelinux) or HTTP (efi)20:46
nturnerfrom what I see in the code, my userdata change looks right20:46
roaksoaxbased on that we know a machine booted either legacy or efi20:47
nturnerroaksoax: so do I need to recommission a node after making bios changes?20:47
nturneroh, you're saying based on which resouce was fetched, we can tell which kind of boot it was20:48
nturnergot it20:48
roaksoaxnturner: yes you do20:48
nturnersince I see TFTP requests in the event log, it sounds like I'm still booting in legacy pxelinux mode20:49
roaksoaxnturner: you should see stuff like: 2016-08-23 20:47:02 [TFTP (UDP)] Datagram received from ('10.245.0.213', 1585): <RRQDatagram(filename=b'grubx64.efi', mode=b'octet', options=OrderedDict([(b'blksize', b'512')]))>20:52
oz_ hey guys does anyone have any good write up on how to deploy maas/autopilot using using vlan tagged interfaces i tried all different combinations and i cant get it to work20:53
roaksoaxdpb1: ^^20:54
oz_if i use one ip ranage for publics, everything deploys fine as soon as i tag vlans on the nodes deployment fails20:55
nturnerI think I have to conclude that this motherboard does not actually support EFI netboot.21:06
nturnerWould it be reasonable for curtin to default to GPT partition tables when dealing with volumes larger than 2TB?21:07
nturnerInteresting... maybe I finally succeeded in getting curtin to use gpt... now the PXELINUX "Booting to local disk ..." step fails with "WARN: No MBR magin, treating disk as raw."21:13
nturnerAnd of course, it doesn't boot.21:13
nturnerDoes pxelinux only work with msdos partition tables?21:14
nturnerOr is this just a sign that grub-install failed to put the right stuff at the front of the disk?21:14
* nturner wonders21:14
roaksoaxnturner: if you can file a bug about i can have someone look at it21:45
nturnerroaksoax: sure21:45
roaksoaxnturner: and it should be reasonable21:46
nturnerby it do you mean...21:46
roaksoaxnturner: but i do remember having a similar request in the past and it being addressed21:46
nturnerforcing the use of gpt?21:46
nturneror booting from gpt in bios mode via pxelinux?21:46
roaksoax(curtin doing gpt on 2tb+ disks)21:46
nturnerah21:46
nturnerok21:46
roaksoaxnturner: are u using 2.0?21:47
nturnerroaksoax: yes, latest from dev ppa21:47
roaksoaxnturner: which dev ppa are you using? ;) experimental3 ?21:49
nturnerhttp://ppa.launchpad.net/maas/next/ubuntu21:50
nturnerso, "dev" might not be quite the right adjective21:50
nturner:)21:50
roaksoaxnturner: right so 2.0 GA then :)21:52
nturnerah, is it GA now? It was an RC last I looked21:52
roaksoaxnturner: ah right, we only made GA vailable on ppa:maas/stable21:55
roaksoaxnturner: but will fix that in a sec21:55
roaksoaxnturner: filed https://bugs.launchpad.net/ubuntu/+source/maas/+bug/161623121:56
roaksoax 21:57
nturnercool21:57
nturnerI also filed https://bugs.launchpad.net/maas/+bug/161623221:57
roaksoaxnturner: i'll re-target mine then21:58
nturnerroaksoax: yours is arguably a better description of the issue21:59
roaksoaxnturner: i rephrased to have the ability to select what partition table21:59
roaksoaxnturner: will use yours to fix the bug22:00
nturnerroaksoax: thanks for looking at this22:00
roaksoaxnp! i think this was one of the things that dropped out of the radar unfortunately22:01
mupBug #1616231 opened: Can't select partition table (MBR vs GPT) <MAAS:Confirmed> <MAAS trunk:Confirmed> <https://launchpad.net/bugs/1616231>22:21
mupBug #1616232 opened: Installs should use GPT by default if volume is larger than 2TB <MAAS:Confirmed> <MAAS 2.0:Confirmed> <MAAS trunk:Confirmed> <https://launchpad.net/bugs/1616232>22:21

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