/srv/irclogs.ubuntu.com/2017/01/20/#maas.txt

shahaanHello All, I am having a problem in (no commissioning) but deploying node whilst resolving the hostname. The reason being that maas is not setting up the dns domain-search in /etc/resolv.conf, does anybody on the channel know how to fix this ??00:50
shahaanJan 19 06:37:15 rcstodc1r76-01 sudo[3688]:   ubuntu : unable to resolve host rcstodc1r76-0100:51
shahaanJan 19 06:37:15 rcstodc1r76-01 sudo[3688]:   ubuntu : TTY=pts/0 ; PWD=/home/ubuntu ; USER=root ; COMMAND=/bin/systemctl status cloud-final.service00:51
mpontilloshahaan: MAAS configures cloud-init to not manage /etc/hosts, due to a bug that came up with doing so. see https://bugs.launchpad.net/ubuntu/+source/maas/+bug/108718301:22
mpontilloshahaan: the manage_etc_hosts flag is in /usr/lib/python3/dist-packages/maasserver/compose_preseed.py if you want to hack around with it01:23
mpontilloshahaan: that is, a default Ubuntu install solves the "unable to resolve my local hostname" issue by adding the hostname in /etc/hosts, pointing to 127.0.0.1.01:24
mpontilloshahaan: finally, I don't think MAAS supports specifying DNS search paths for deployed nodes. (lamont may know better than me, though.)01:24
shahaanThanks mpontillo, was good help..01:37
shahaanSorry to bother again, is there a way to specify MaaS to PXE boot only a specific whitelist of servers (either by their MAC or IP address) ??01:39
mpontilloshahaan: if you know how to configure ISC DHCP to do that, you could use DHCP snippets. (see Settings > DHCP Snippets) -- this allows you to add your own custom DHCP configuratoins01:40
mpontilloshahaan: that said, it should be relatively harmless for machines  you don't want in MAAS to PXE boot. if MAAS sees a machine PXE boot which is not in MAAS yet, it will give it a random name and add it to its database.01:42
mpontilloshahaan: MAAS will not do anything with such a machine, unless you commission it first (and possibly specify the power parameters, if the IPMI magic didn't happen).01:43
mpontilloshahaan: though I guess I can understand why you might want a whitelist, if turning on a node automatically causes it to enlist and change its IPMI settings automatically. but we want you to use MAAS on all your servers. ;-)01:44
shahaanHey mpontillo,  we have multiple teams deploying servers (some using vDisks) though they  are on the same vlan :(, so a whitelist could have been good. But DHCP snippets is a good workaround01:46
mpontilloshahaan: I think the recommended way would be to get another VLAN so you can dedicate one to MAAS. that way you don't have clashes with more than one DHCP server running on the network (if that's the case)01:48
shahaanSo for machines, setup by third party vendors (won't name them) sometimes that causes a few unnecessary conversations...01:48
shahaanYeah, thanks for the tips mate!01:49
shahaanmuch appreciated01:49
tdihpmpontillo: Hi. I'm having trouble commissioning nodes01:49
tdihpmpontillo: Would you please take a look at this? https://askubuntu.com/questions/873701/maas-node-unable-to-resolve-its-own-hostname01:50
tdihpmpontillo:  Thanks very much!01:50
mpontillotdihp: in that post, what server is `golden-moose`? is that the one you're trying to commission?01:51
mpontillotdihp: also, just so you know, MAAS 2.1.3 is available now, so I would recommend you update to that first to fix any known issues before troubleshooting further.01:53
mpontillohttps://launchpad.net/ubuntu/+source/maas/2.1.3+bzr5573-0ubuntu1~16.04.101:53
tdihpmpontillo: Yes, the random-given name of the node.01:53
tdihpmpontillo: Ahh so it's a known issue, thanks!01:55
mpontillotdihp: OK. are you using MAAS for your DNS? by default MAAS places machines in the .maas domain.01:55
tdihpmpontillo: Yes, I'm able to resolve the region master with .maas domain from the node.01:56
mpontillotdihp: well, I'm not clear on the root cause of your particular problem, so I can't be certain 2.1.3 will fix the problem. but I still strongly recommend that you upgrade01:56
mpontillotdihp: the 'connection timed out' issue is interesting though. that seems to imply that your nodes cannot communicate with the DNS server for some reason. have you ensured that your iptables rules allow DNS traffic from the nodes?01:58
tdihpmpontillo: I think so yes, I was able to dig and ping both .mass domain and external domains.02:00
tdihpmpontillo: My guess is that the storage commissioning script is timed out due to the sudo calls and other calls that would invoke hostname resolving of the node's own hostname.02:01
mpontilloshahaan: hm, interesting, it appears I was mistaken. I see "search <maas-domain>" in my /etc/resolv.conf on my commissioning node. so I would guess that, like tdihp, your issue is most likely with DNS connectivity.02:08
mpontillotdihp: but I can't explain why you are able to ping other nodes, but not the commissioning node02:08
mpontillotdihp: when you commission, there is an option to allow SSH and prevent the node from powering off. would you give that a try so you can troubleshoot more?02:09
mpontillotdihp: after you SSH into the commissioning node, I would check /etc/resolv.conf on the commissioning node to ensure it's pointing to the MAAS nameserver and has your search domain in it.02:13
mpontillotdihp: then use 'dig' to query the nameserver from the node for that hostname. dig will not consider search paths, so you'll need to add that manually02:13
tdihpmpontillo: Yes it was using the MAAS server, I've checked. However yesterday I've not seen the DNS record of the commisioning node in the MAAS http server's "DNS" list.02:15
tdihpmpontillo: But today it is. how strange. And the sudo lag went away.02:17
mpontillotdihp: does that mean you were able to successfully commission? did you update to 2.1.3?02:17
tdihpmpontillo: I haven't upgraded yet. The /etc/resolv.conf points to the MAAS correctly. I'm able to resolve <hostname>.maas but not <hostname>02:24
mpontillotdihp: via what mechanism? because dig will not add the search path for you, but sudo and other tools should02:25
mpontillotdihp: for example `ping` would add the search path.02:25
tdihpmpontillo: Yes I tried ping02:25
mpontillotdihp: ok, what was the result?02:26
mpontillotdihp: I would also try `grep named /var/log/syslog` on the MAAS server to see if everything looks okay with the DNS server02:27
tdihpmpontillo: BTW, does MAAS add/keep DNS entry for commissioning nodes?02:29
mpontillotdihp: okay. I would try the commissioning again then. it seems like maybe the DNS issues are no longer in your way. I replied to your askubuntu post: http://askubuntu.com/a/874005/126902:35
mpontillotdihp: but I've got to go now; good luck. I'll be around.02:36
mpontillotdihp: to answer your question: commissioning - yes. when the node is finished commissioning, I believe it will clear those out.02:37
mpontillotdihp: but while you're SSHed in, I don't think it'll remove the entries. I'm testing it now here and I see that it maintains them.02:37
* mpontillo goes to eat dinner02:38
tdihpmpontillo: Thanks a lot :)02:38
shahaanThanks mpontillo, things are looking much better now after the 2.1.3 upgrade: search erc.monash.edu.au maas03:45
shahaanThat string is making a difference03:46
mupBug #1612039 changed: MAAS Cannot Commission <MAAS:Expired> <https://launchpad.net/bugs/1612039>04:24
SandeepHello Guys04:35
=== Sandeep is now known as Guest2907
Guest2907Anybody there?04:35
Guest2907Hello04:35
mupBug #1612039 opened: MAAS Cannot Commission <MAAS:Expired> <https://launchpad.net/bugs/1612039>04:36
mupBug #1612039 changed: MAAS Cannot Commission <MAAS:Expired> <https://launchpad.net/bugs/1612039>04:39
YooFyhi, hello all15:00
YooFyI search with google a great documentation for build custom image Ubuntu and windows. Do you have any links of tutorial for that15:02
YooFy?15:02
pmatulisnot to my knowledge15:41
=== wililupy_ is now known as wililupy
=== capncrunch4me_ is now known as capncrunch4me
=== capncrunch4me_ is now known as capncrunch4me
=== capncrunch4me_ is now known as capncrunch4me
=== capncrunch4me_ is now known as capncrunch4me
IronComHi22:03
IronComSomeone here22:03
IronCom?22:03
IronComI would have a question to MAAS searcheing in Web but not sure about the right solution22:04
pmatulisIron...22:08

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