/srv/irclogs.ubuntu.com/2016/11/22/#maas.txt

JohnHey guys, I'm having an issue with my MaaS00:03
=== John is now known as Guest68615
Guest68615Wondering if any of you can help me out a bit00:03
Guest68615Is there anyone on here?00:06
roaksoaxjhova: shoot00:26
roaksoaxerr00:26
roaksoaxsorry00:26
jhovahey thanks for the response00:27
jhovanm addressing different person00:27
roaksoaxjhova: ok, so I was reading your issue00:28
roaksoaxjhova: i dont fully understand00:28
roaksoaxjhova: so it installs but it doesn't boot ?00:28
roaksoaxjhova: what version of MAAS are you using (exact version)00:28
jhovaYes, basically it seems like it's trying to use UEFI boot characteristics even though UEFI is disabled.00:28
jhova2.1.1+bzr5544-0ubuntu1~16.04.100:29
jhovamenuentry 'Local' {00:30
jhova    echo 'Booting local disk...'00:30
jhova    search --set=root --file /efi/ubuntu/shimx64.efi00:30
jhova    chainloader /efi/ubuntu/shimx64.efi00:30
jhova}00:30
roaksoaxjhova: that's strange00:31
roaksoaxjhova: if that's the case, that means that the machine booted UEFI00:31
roaksoaxjhova: try to re-commission the machine00:31
roaksoaxjhova: and try to deploy again00:31
jhovaI have several times, I don't know what's happening.00:31
jhovaIf you hit escape during pxe it loads fine00:31
jhovaAll aspects of UEFI are disabled in the BIOS00:32
jhovaDo I need to completely delete to machine and re add? I've just been recommissioning the existing node.00:33
roaksoaxjhova: 1 sec,00:33
roaksoaxjhova: /win 200:35
roaksoaxerr00:35
roaksoaxjhova:  ok, so the way MAAS discovers the machine is booting is by looking at the request it makes to MAAs00:36
roaksoaxso if it make a request for EFI00:36
jhovaOK, should I grab that from the packets coming in?00:36
jhovato see what it's requesting?00:37
roaksoaxjhova: so, the way the machine is told to EFI boot or pxelinux boot is via DHCP00:37
roaksoaxjhova: the machine sends a special code00:37
roaksoaxand the dhcp server identifies that from the dhcp packet00:37
roaksoaxjhova: and tells the machine to EFI boot or so on00:37
roaksoaxjhova: so my guess is your firmware trying to do that00:37
roaksoaxjhova: what if you enable EFI on your firmware ?00:37
jhovaAfter install it just boots to EFI shell00:38
jhovahttp://pastebin.com/sV36sD5D00:40
jhovaroaksoax there is the DHCP request coming into maas00:40
jhovahttp://pastebin.com/b8gRWGBU00:42
jhovaand the reply which shows the FNAME as pxelinux.000:42
roaksoaxjhova: yeah, the option 93 is 0000000:42
roaksoaxwhich means pxelinux00:42
jhovahmm wonder why grub is laying down a config for local boot to look for uefi shim00:43
roaksoaxjhova: i'd suggest you file a bug for now, and I'll raise it to someone tomorrow to try to figure out what could be going wrong00:44
roaksoaxbut that's a very strange behavior00:45
roaksoaxsince we test against efi and non-efi systems without any similar issue00:45
jhovaOK, sounds good. I saw this commit for an older version: https://code.launchpad.net/~allenap/maas/disable-uefi-temporarily/+merge/21215000:45
jhovaany way I can keep the shim from being installed and remove all uefi pieces?00:45
roaksoaxjhova: that branch is quite old, so it doesn't really apply00:46
roaksoaxjhova: so just so im clear. you machine PXE boots, grabs pxelinux.0, the machines is installed by MAAS00:47
roaksoaxthen it reboots00:47
roaksoaxin PXE boots again but this time it is told to EFI boot ?00:47
roaksoaxjhova: or, after the reboot, the machine tries to boot directly from the disk ?00:47
jhovaThat's what it appears like. Some machines complain about MBR magic and then stick at booting. Others go directly to booting local disk ... and drop to the prompt.00:48
=== CyberJacob is now known as zz_CyberJacob
roaksoaxjhova: i wonder if it is actually trying to boot from a different disk than the one where MAAS has installed ....00:51
roaksoaxjhova: that could be the reason00:51
jhovaDefinitely could be. Where are the actual pxelinux configs on the maas server?00:51
jhovaAre the rendered from database entries?00:51
jhovathey*00:51
roaksoaxjhova: they are dynamically rendered. Maybe the BIOS has X disk as boot disk, but Y disk is the one being surfaced to the OS as /dev/sda, which would cause MAAS to install the mbr in /dev/sda but default00:52
roaksoaxjhova: but the BIOS is trying to boot from X00:52
roaksoaxjhova: you can go to MAAS UI, under the storage section on a machine in 'ready' state00:52
roaksoaxjhova: and you can select which disk is the "boot" disk00:53
roaksoaxso you might as well be able to say that /dev/sdb is the "boot" disk00:53
jhovayeah, these servers have a SAS controller in them that might be the culprit00:53
roaksoaxthat will cause maas to install MBR in /dev/sdb00:53
roaksoaxjhova: that could definitely be it00:53
jhovaI've tried messing around with all of the options, but can't disable it completely00:53
roaksoaxjhova: just try to select the right boot disk in the MAAS webui00:56
roaksoaxjhova: or set the right boot disk in the BIOS00:56
jhovaBIOS just says hard drive and not seeing a priority00:57
jhovawill keep investigating00:58
roaksoaxjhova: ok, so try to figure out which disk is the boot, and change the option in the MAAS webui01:00
roaksoaxjwitko: if something else is providing DHCP, you could either do: 1. static assign, and select the IP address you want to use instead of the suggested one or 2. DHCP01:01
jwitkoroaksoax, thanks for the response!  what I'm trying to avoid here is user error04:04
jwitkoI know how to literally avoid the issue by implementing a process around it04:05
jwitkobut i'm trying to guard rail people who don't pay attention04:05
=== junaid1 is now known as junaidali
Mynardso I'm entering day 3 of trying to get openstack deployed on MAAS as a POC to replace the existing M$ HyperV "private cloud".06:28
Mynardjust doesn't seem like the components are all playing nicely together.06:28
Mynardcurrently using 16.04 LTS, should I maybe go back to 14.04 LTS?  seems counter intuitive though ..06:29
=== zz_CyberJacob is now known as CyberJacob
mupBug #1643838 opened: ureadahead trying to read entire filesystem <landscape> <MAAS:New> <https://launchpad.net/bugs/1643838>10:57
mupBug #1643838 changed: ureadahead trying to read entire filesystem <landscape> <curtin:New> <MAAS:Invalid> <https://launchpad.net/bugs/1643838>14:22
=== a0rora is now known as garym
apozHi15:29
apozI'm a newbie with MAAS15:29
apozand I'm having some trouble to make it work15:29
apoz(the rackd is asked for the pxelinux.0 image from a client, but it does literally nothing)15:30
apozhow could I set debug logs in rackd?15:30
apozIs there anything I have to do for the rackd to download the boot images? (I installed everything in a single node with apt install maas)15:32
roaksoaxapoz: have you downloaded images15:33
roaksoaxapoz: i.e. logged into the UI and downloaded the images you need ?15:33
apozyes, I think so15:34
roaksoaxapoz:what do you mean "it does literally nothing" ?15:34
apozIt just shows "pxelinux.0 requested from XXXXXXXX"15:34
apozand the client times out15:34
apozbut it does not show any error in the log or anything15:35
apozjust that line everytime the client reattempts15:35
apoz(in the status is 'synced' of my images in the web CLI it means they are downloaded?)15:36
apoz(the dot in the image for 16.04 is green, so I'm assuming images are OK)15:36
apozis there any way to boot the rackd with debug logs so I can investigate further?15:43
jheggesweet15:45
apoz?15:56
mupBug #1643939 opened: UI shows custom boot source selected and incorrect boot source selections but CI shows seemingly valid resources <MAAS:New> <https://launchpad.net/bugs/1643939>16:07
jhovaroaksoax got my issue worked out, thanks17:32
jhovaIs there a python client available that supports maas v2 api?17:33
jhovaor a client in any language would work17:33
roaksoaxjhova: there is theolder client library, python-maas-client17:36
roaksoaxjhova: but we are working on a new one17:36
jhovayeah, says it only supports v117:36
jhovaok, thanks17:36
deejHey gents, I'm running 2.1 and hitting some problems using the CLI to get nodes with a specific tag21:02
deejIt keeps telling me I'm trying to using 1.0 API which, as far as I can tell, is not the case21:02
deej$ maas-cli maas-root tag nodes os-cs21:02
deejThe 1.0 API is no longer available. Please use API version 2.0.21:02
deejAny advice?21:03
kikodeej, it's a bug likely21:04
mupBug #1516065 opened: [2.2, 2.1, 1.9] Unable to power manage IPMI if BMC does not support changing boot order <uosci> <MAAS:In Progress by newell-jensen> <MAAS21:05
mup1.9:Fix Released by newell-jensen> <MAAS 2.1:In Progress by newell-jensen> <MAAS trunk:In Progress by newell-jensen> <https://launchpad.net/bugs/1516065>21:05
deejkiko: So I'm assuming my best bet is to access the API directly?21:06
kikodeej, well.. roaksoax, blake_r: ^^21:09
roaksoaxdeej: use 'maas' not maas-cli21:16
roaksoaxdeej: and maybe you have logged into 1.0 api21:16
deejroaksoax: They return the same21:17
roaksoaxmaas login admin http://192.168.10.27:5240/MAAS/api/2.0/21:17
kikouhh21:18
kikowhat is maas-cli?21:18
roaksoaxkiko: that's the package name. maas-cli forwards to maas for backward compat21:18
roaksoaxdeej: maas --help21:18
kikogotcha21:18
roaksoaxdeej: you shoudl see something like:21:18
roaksoax    changepassword21:18
roaksoax                  Change a MAAS user's password.21:18
roaksoax    admin         Interact with http://192.168.10.27:5240/MAAS/api/2.0/21:18
deejroaksoax: Ah!21:19
deejI had a leftover .maascli.db from maas 1.921:19
deejNuking that and re-logging in did the trick, ta21:19
mupBug #1644014 opened: maas 2.1 CLI does not allow listing of nodes with a specific tag <MAAS:New> <https://launchpad.net/bugs/1644014>21:20
deejThat was me, Ill close21:20
kikoroaksoax, the .maascli.db file being left over and not warned is a bug though, is it not?21:26
kikodeej, ^^21:26
zeestratroaksoax:, what's the status on some kind of backup/restore utility or21:27
zeestrat* or some docs on that.21:27
deejkiko: Interesting point, I'm not sure you can clean that up per se, but the maas2 CLI could certainly warn if it found one21:30
deejPresumably anyway21:30
jwitkohi all, I just accidentally upgraded from maas 2.0 to maas 2.121:41
jwitkois there any way to reverse this process?21:41
jwitkothe database seems to be in-tact21:41
jwitkoI have an HA setup, will the failover process still work after an upgrade>?21:41
jwitkoroaksoax, not sure if you're around but could really use your help21:43
mupBug #1644014 changed: maas 2.1 CLI does not allow listing of nodes with a specific tag <MAAS:Invalid> <https://launchpad.net/bugs/1644014>21:50
roaksoaxjwitko: not sure I follow. you have a MAAS in active/passive21:53
roaksoaxjwitko: and you upgraded 1t to 2.121:53
roaksoaxbut not the other ?21:53
jwitkoyes21:57
jwitkothat is correct21:57
jwitkoroaksoax I'm looking for a way to roll back21:58
jwitkoand if i can't then at least to fail-back21:58
jwitkoit appears my curtin file is not happy in 2.1 either22:25
jwitko"main_archive_hostname" is no longer defined?22:25
roaksoaxjwitko: what does your curtin file look like ?22:31
jwitkoIt had some apt sections that were using variables from 2.0.0 that apparently no longer work in 2.1.122:45
jwitkoi removed it and will deal with apt sources after the fact22:45
jwitkoroaksoax, I'd prefer at this point to move forward on 2.1.1 but I'm having an issue with the API22:46
jwitkoPOST queries are returning "TypeError: 'Machine' not iterable"22:46
jwitkohttp://paste.ubuntu.com/23519335/22:47
jwitkoroaksoax, here is another issue in the curtin file regarding enabling HTTP proxy if its enabled within maas  http://paste.ubuntu.com/23519338/22:49
jwitkothat worked in 2.0.022:49
roaksoaxjwitko: ok, i jnow what that is22:57
roaksoaxjwitko: id suggest you remove that whole snippet22:57
jwitkowhich one?  the API or the Apt proxy stuff?22:57
roaksoaxjwitko: it should just work without22:57
jwitkook  I've removed it22:57
jwitkoany idea on those API errors>?22:57
jwitkoI am getting them left and right22:58
roaksoaxjwitko: no. do you have the call you used that showed those erros22:58
jwitkogetting that now23:01
jwitkobut its just standard POST calls23:01
jwitkoroaksoax, here http://paste.ubuntu.com/23519387/23:02
jwitkoand here is another one that fails23:02
jwitkohttp://paste.ubuntu.com/23519388/23:02
jwitkohere is how the URL is generated http://paste.ubuntu.com/23519392/23:03
jwitkoon about 60-70% of requests I receive the error23:06
roaksoaxjwitko: strge,23:16
roaksoaxltrager: ^^ any ideas?23:16
ltragerroaksoax: hmm not sure, trying to reproduce23:21
ltragerjwitko: I think part of the problem may be you're running in HA with 2.0 and 2.1. 2.1 brought in some data migrations which 2.0 may not be able to handle23:23
jwitkoltrager, we were getting the error in 2.0.0, the upgrade was an attempt to fix it23:27
jwitkobut i didn't mean to go to 2.1, just to the latest 2.0.023:27
jwitkobut that being said, it is the same exact error/message from 2.0.023:28
ltragerjwitko: did any region get upgraded to 2.1?23:28
jwitkoltrager, not sure what you mean?23:29
jwitkoone region and one rack controller were upgraded23:29
jwitkothey live on the same host23:29
jwitkothe other host, which has a region and rack controller as well, were not upgrade23:29
ltragerjwitko: as part of the upgrade process MAAS runs database migrations. When running in HA mode all regions access the same database. So if one region was upgraded to 2.1 the database is now using a 2.1 format23:30
ltragerjwitko: that could cause problems if an older version of MAAS is trying to connect23:31
ltragerjwitko: all region and rack controllers in your system should be at the same version23:31
jwitkoalright23:32
jwitkolet me upgrade the other23:32
ltragerroaksoax, jwitko: btw I hacked together a script to list machines 100 times and I'm not seeing any errors23:38
jwitkook 2nd rack and region controller updated23:45
jwitkoboth have status green23:45
=== CyberJacob is now known as zz_CyberJacob
nate_Hello! Could I get a hand configuring Juju for MAAS behind a corporate proxy? There seems to be very limited documentation available for the latest versions.23:51

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