/srv/irclogs.ubuntu.com/2016/02/14/#maas.txt

Razvagood mornin' folks. why in the world is MAAS running...two DHCP servers...?08:15
Razvashould I use 14.04 LTS for Ubuntu Cloud Images? or 15.10?08:19
haasnRazva: ps aux | grep dhcp | curl -sF "file=@-" https://0x0.st08:35
Razvamornin' haasn08:35
Razvahttps://0x0.st/X0i.txt08:36
Razvahaasn at this point I've reinstalled Ubuntu08:36
Razvajust a sec to setup networking08:36
haasnwell that machine is clearly running 0 DHCP servers :p08:37
Razvayup, right now yes08:37
Razvacan you please take a look at https://github.com/Razva/newbadmin/blob/master/firewall/nat.sh ?08:38
Razvait's a script one of the good folks here provided for NAT08:38
RazvaI've slighly modified it08:38
Razvalooks ok?08:38
Razva(for NAT)08:38
haasnRazva: seems reasonable, not sure if the MASQUERADE line would benefit from an extra -i "$INTIF" or not but if it works it works08:51
Razvaany idea how to retain this after reboot...? :|08:53
haasnRazva: iptables-save and iptables-restore can be used to save the current settings to a file (and do the opposite). Most distros provide some sort of init script for automatically doing that08:54
Razvagot it08:55
Razvahaasn: https://0x0.st/X0K.txt < that ps aux you've requested08:56
Razvaseems that only MAAS is running, right?08:56
haasnseems to only be running one08:56
haasnon interface enp0s25 (this is your private interface, I take it?)08:57
Razvaweird, last time it was i*something-dhcp-server running also... :|08:57
Razvaexactly, it's the lan08:57
Razvanow, let's try to PXE boot08:57
haasnRazva: when stuff like that happens it's a good idea to look at the -f option, in this case /var/lib/maas/dhcpd.conf08:57
haasnIf that's /etc/dhcp/dhcpd.conf or something like that then it's probably some “default” system-wide dhcpd service running accidentally08:57
Razvado you recommend 14 LTS or 15, for Ubuntu Cloud?08:57
haasnI have no idea. I use 14 LTS because I haven't had a reason to change08:58
Razvadoes Liberty works with 14?08:59
Razvayup, it successfully booted, no idea why last time it basically started two DHCP servers...it was a fresh install...09:00
Razvahaasn except "Allow SSH access and prevent machine from powering off", should I check the other two boxes?10:14
RazvaRetain network & Retain storage?10:14
haasnWhat those checkboxes mean is that if you're commissioning a node that you've already comissioned in the past, any storage/network configuration you made manually will be preserved instead of reset back to the default10:15
haasnIf this is your first time commissioning that node they do nothing10:15
Razvaaaand if I didn't ever commisioned them...I suppose that I should just "SSH and prevent machine from powering off", right?10:15
haasnI don't see any reason to set that unless you're trying to debug something that went wrong10:17
Razvayay, ok10:18
Razvathe only "wrong" thing until now is that MAAS is seeing "power on" even if the machine is 100% powered off :|10:19
Razvaany idea why>10:20
haasnRazva: the power status is not checked all the time but polled at regular intervals (every few minutes), you can click ‘check now’ to force an update10:21
Razvahaasn did it 3 times, they still point as being on10:21
Razva Checking power -> Power on10:21
haasnRazva: What power type?10:21
Razvaeven tried to "shutdown" them from MAAS10:22
RazvaIPMI. they are Dell servers10:24
haasnRazva: try asking ipmipower -D LAN_2_0 -h HOST -u maas -p PASS --stat what it thinks of your host10:25
RazvaPower StateOFF10:26
Razvahaasn any idea what's the pass? :))10:26
haasnRazva: you can check in the maas GUI10:27
haasnIt should have created a new account/password when enlisting10:27
haasnIf ipmipower works but MAAS does not, seems like a bug to me10:27
Razvagot it, just a sec to see10:27
RazvaHOST = IP or host.maas ?10:28
haasnIt should be the same hostname as in the maas power configuration10:28
Razvapaltry-cave < who in the world is generating these names? :)10:29
Razva95.154.222.13: connection timeout10:30
Razvainteresting.10:31
haasnRazva: you could also try logging in via SSH10:36
RazvaI'm power cycling both machines, see what's the result10:38
Razvalong live iDRAC :)10:39
Razvathe machines are not even commisioned, so I cannot really SSH in...10:39
Razvaoook both are not booting via PXE10:40
Razvassh key bla bla...10:42
Razvaboth are waiting here: http://screencast.com/t/LvFwpbHIaBnK10:43
Razva^ is that "normal"?10:43
Razvaaaaand they seem to be stuck at that point :|10:44
haasnRazva: SSH to the service processor (IPMI interface), not the host OS10:50
RazvaSSH seems to be working, but I cannot login10:54
haasnRazva: with the maas username/password?10:57
haasnwhat about root?10:58
Razvahaasn yup, with the maas u/p, I cannot login11:02
RazvaI'll try to login with root now11:02
Razva95.154.222.13: connection timeout < from ipmipower11:02
Razvaroot@95.154.222.13's password: < ssh works11:03
Razva/admin1-> < root worked11:03
Razvaany hints now? :D11:03
haasnRazva: set the root un/pw in maas and be done with it? :p11:12
haasnoh, connection timeout from ipmipower with root p/w too?11:13
haasnRazva: try ipmitool -I lanplus -U root -P ... -H ... user list11:13
haasnIf ssh works but ipmipower does not, then you might need to specify a firmware-specific workaround flag (via -W)11:14
haasne.g. I need -W sun20 for some of my old sun servers11:14
Razvahaasn exactly11:17
Razvahaasn but I cannot even reset IPMI11:17
Razvaipmitool -H 95.154.222.13 mc reset warm11:18
RazvaPassword:11:18
RazvaError: Unable to establish LAN session11:18
haasndid you try the ipmitool command I suggested?11:18
Razvanope, just a sec11:18
Razvaipmitool -I lanplus -U root -H -H 95.154.222.13 user list11:19
RazvaPassword:11:19
RazvaAddress lookup for -H failed11:19
RazvaCould not open socket11:19
Razva(same with minus the extra -H)11:20
Razvaipmitool -I lanplus -U root -H 95.154.222.13 user list11:20
RazvaPassword:11:20
RazvaError: Unable to establish IPMI v2 / RMCP+ session11:20
Razvabut I can SSH login...11:21
Razvash root@95.154.222.1311:21
Razvaroot@95.154.222.13's password:11:21
Razva/admin1->11:21
haasnRazva: maybe something here will help? https://www.gnu.org/software/freeipmi/freeipmi-bugs-issues-and-workarounds.txt11:26
haasnalso see man ipmipower (scroll down to workarounds)11:27
RazvaI've contacted the data-center...maybe they can do a power-cycle/reset...11:31
haasndoubt it will help11:31
Razvaits their server, so I should be able to list users...at least.11:36
Razvahey guys. I have no idea why but maas refuses to interpret the right status from IPMI...16:52
Razvathe server is powered down, I can see that via DRAC and console..16:52
Razvabut still maas reports the server as being online. any hints...?16:52
redelmannhi, im having some trubles with unmanaged networks17:23
redelmannim trying to let my local dhcp and dns to manage this network17:23
redelmannbut for some reason /etc/resolv.conf is setting maas ip address as DNS17:24
redelmanni double check my local dhcp setting and everything seems fine17:24
redelmannso, why maas is putting herself as DNS of an unmanaged network?17:25
Razvaredelmann no idea, but that's what maas does (at least on my setup)17:28
redelmannRazva, ok, thank. It little strange, i was supposing that unmanaged network is UNmanaged :P17:30
redelmannRazva, i think juju bootstrap fail in my setup because of this17:30
Razvaredelmann I have a very weird issue. MAAS reports power on, even if power is off (I can see in iDRAC that power is off, and console shows No power)17:40
redelmannRazva, it's that for me?17:41
Razvaredelmann yes17:42
Razvamaybe you have any ideas...17:42
redelmannRazva, noup.17:43
redelmannRazva, im playing with maas for 2 weeks to now17:43
redelmannRazva, so im not the most indicated person17:44
Razvahaha, I'm playing for ehm...2 days :D17:44
RazvaI've successfully setup 3 machines, everything PXE boots, but this single darn machine doesn't wants to boot....17:44
Razvaor whatever...boots but doesn't wants to report power as it should17:45
redelmannRazva, maybe hardware problem?17:45
Razvano idea...17:46
Razvado you use IPMI or...?17:46
redelmannIPMI and virsh17:46
redelmanni'am mixing virtual nodes with intel hardware17:47
RazvaI have only intel / Dell hardware, but no idea why the heck I cannot control it...17:47
redelmannim just testing maas for a full implementation17:47
Razvawell...I didn't had any issues with it until now, only problem was that - at first install - Ubuntu installed a separate DHCP server as well. no idea why, but a clean install solved everything17:48
RazvaPower on < I'm gonna kill somebody.17:49
redelmannRazva, you are installing MAAS from apt?17:49
Razvathe server is off god damnit...17:49
redelmannRazva, try with "check now" link :P17:50
redelmannRazva, or manually power on the server17:50
Razvayeah if I manually power on it works, but this is not the way to do it...17:50
redelmannRazva, after manually power on, swith to off with maas17:50
Razvahow...?17:51
RazvaI cannot manually set power off in maas17:51
redelmannRazva, i know but maybe yoy can "sync" what maas think about node and rearl node state17:51
Razvaplease do me a favor17:51
redelmannRazva, take action -> power off?17:51
Razvaipmipower -D LAN_2_0 -h SOME-IPMI-IP -u root -p THE-ROOT-PASSWORD --stat17:52
Razvadoes it works for you?17:52
redelmannRazva, im in home rigth know.17:55
redelmannRazva, i dont know why cant ssh to cluster17:55
redelmannRazva, give me a second17:56
redelmannRazva, but usually thats the command i use to check the whole cluster power status without problem17:57
redelmannRazva, i never use -D, only -h ip17:58
redelmannRazva, did you try with --debug?18:01
Razvawell...what command do you use, usually?18:01
Razva(ipmipower_powercmd.c, _retry_packets, 1214): host = 95.154.222.13; p = 1; Sending retry, retry count=2418:03
Razvaredelmann are you deploying OpenStack or just MaaS?18:09
redelmannRazva, just MAAS18:09
redelmannRazva, ipmipower -h ip -u root -p THE-ROOT-PASSWORD --stat18:09
redelmannRazva, i let ipmipower to decide ipmi version18:09
Razva95.154.222.13: connection timeout18:10
Razvabut the interesting thing is that I can ssh to it18:10
Razva/admin1->18:11
redelmannRazva, ipmipower --version?18:12
redelmannRazva, some old ipmipower utilitis had a bug with -p options i think18:13
Razvaredelmann via SSH?18:14
redelmannRazva, no, just ipmipower --version in machine you are trying to connect18:14
redelmannRazva, maas server i suppose18:15
Razvaipmipower - 1.1.518:15
Razvayou?18:16
redelmannRazva, look at this: https://lists.gnu.org/archive/html/freeipmi-users/2005-11/msg00018.html18:16
redelmannRazva, its old18:17
redelmannRazva, forget about it, ipmipower 0.1.3 its the problem18:17
redelmannRazva, ipmipower - 1.1.518:18
roaksoaxRazva: do you have logs from /var/log/maas/ , it is probably telling why it cannot connect  to IPMI18:18
roaksoaxif that's the case18:18
roaksoaxredelmann: maas doens't really support external DHCP/DNS anymore. But eventhen, MAAS is the defautl DNS server unless you set it differently for each subnet18:20
redelmannRazva, did you try ipmiping <IP>18:21
redelmannroaksoax, http://paste.ubuntu.com/15060537/18:22
redelmannroaksoax, i set DNS on my maas-eth018:22
roaksoaxredelmann: what version of MAAs are you using?18:22
redelmannroaksoax, it's that no enough?18:22
roaksoax1.918:23
redelmannroaksoax, 1.918:23
redelmannroaksoax, it's testing purpose18:23
roaksoaxredelmann: right, so when you deploy, is the interface of the machine configured to do what? DHCP ?18:23
redelmannroaksoax, exactly18:24
roaksoaxredelmann: right, so DHCP should be setting the DNS server right?18:24
redelmannroaksoax, rigth18:24
roaksoaxredelmann: also, can you get the curtin config ?18:24
roaksoaxredelmann:  maas <session> node get-curtin-config <system-id>18:26
redelmannroaksoax, ohh THANK, i was losing my head18:26
redelmannroaksoax, http://paste.ubuntu.com/15060721/18:28
redelmannroaksoax, /etc/resolv.conf contain: 192.168.100.1 (my lan DNS) and 192.168.100.10 (my mass server lan ip)18:29
redelmannroaksoax, i was expecting to have only 192.168.100.118:30
roaksoaxredelmann: Yeah I see. is the NIC on your system connected to 'maas-eth0' subnet ?18:30
roaksoaxredelmann: i think the problem here is that since MAAS is not configure eth0, it is ont telling /etc/network/interfaces to set the DNS of maas-eth018:31
roaksoaxredelmann: eitherway DHC{P should be setting it18:32
roaksoaxand it doesn't seem like it is ?18:32
redelmannroaksoax, maas server and node have a NIC on 'maas-eth0'18:33
roaksoaxredelmann: right, but MAAS is not managing DHCP/DNS< and my *guess* is that because of that, DNS server of maas-eth0 is not being set18:33
roaksoaxredelmann: on the config18:33
redelmannroaksoax, that's rigth18:35
redelmannright18:35
roaksoaxredelmann: so, yif you could file a bug, I'll discuss it with my guys and see if we can fix that18:35
roaksoaxcause I think we porbably should18:36
roaksoaxredelmann: please attach both, the maas-eth0 subnet and the curtin config18:37
roaksoaxto the bug report18:37
redelmannroaksoax, great, between my poor English and my mass-newby it's hard to explain. i will do my best18:37
redelmannroaksoax, ok18:37
roaksoaxredelmann: don't worry, just file it, and I'll fix the wording if need by18:38
roaksoaxbe*18:38
redelmannroaksoax, https://bugs.launchpad.net/maas/+bug/154550019:23
redelmannroaksoax, hope you can understand the whole idea/problem :P19:24
redelmannroaksoax, thank for you19:26
redelmannroaksoax, thank for your time19:26
mupBug #1545500 opened: MAAS unmanaged network set wrong DNS information <MAAS:New> <https://launchpad.net/bugs/1545500>19:43
haasnHopefully somebody reads this: If you're thinking of managing maas hosts with juju, use ansible instead! My life is so much happier and it's easier to set up, maintain and interact with :)21:56
stormmoresomehow I don’t see juju bootstrap being that difficult a command to use22:12
=== blahdeblah_ is now known as blahdeblah

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