/srv/irclogs.ubuntu.com/2014/11/14/#maas.txt

=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== dankolb- is now known as dank
=== jfarschman is now known as MilesDenver
jgrasslerGood afternoon.12:53
jgrasslerHow does MAAS determine a newly declared machine's FQDN if it is not in charge of DHCP/DNS?12:53
jgrasslerWe may have a bit of an issue with that since we overprovision our PXE address space, i.e. there are more physical machines than IP addresses.12:55
jgrasslerWe only started doing this recently, and before overprovisioning started the machines would get random FQDNs when they appeared in MAAS.12:56
jgrasslerNow, with overprovisioning in place, freshly enrolled machines that got previously assigned IP addresses suddenly show up with their PXE IP adress' reverse entry (which is bad since it causes duplicates).12:58
jgrasslers/enrolled/declared/12:59
jgrasslerIt wouldn't be so bad if we could just change the FQDN and be certain MAAS will continue to recognize this machine as this machine even if it gets a different IP address somewhere down the line.13:02
jgrasslerE.g. we wouldn't have a problem if MAAS uses a machine's MAC addresses, serial number or some other identifier _not_ related to its primary interface's IP address :-)13:03
jgrasslerIs that the case?13:03
jtvjgrassler: it all starts with the two address ranges.13:15
=== jfarschman is now known as MilesDenver
jtvWhile a machine is allocated, it's got an address in the static range.  This is where you get DNS resolution etc.13:16
jtvYou can also allocate a static address to a specific interface.13:17
jtvFor other machines, addresses are temporary and you can't really count on them or on their hostnames — we have the IP-based hostnames basically as an historical workaround.13:17
jtvAt the time, we automatically generated fixed DNS entries for all possible IP addresses in the range.13:19
jtv(In older versions, the human-configured hostnames resolved as CNAMEs to those IP-based ones.)13:20
jtvIf you're short on IP addresses this may not help much, but with the new setup, you should have a dynamic address range that can probably be overprovisioned because nodes don't stay there; and a static range that should be large enough to accommodate all user-allocated static addresses.13:21
jgrasslerThat is what we are doing right now, yes.13:23
jgrasslerWe have a sufficiently large static range and a small PXE range.13:23
jtvOK that helps.13:23
jtvOr should.13:23
jtvWhen you deploy a machine, it should still come up with just the static address and its corresponding A-record hostname.13:24
jgrasslerHow is that host name determined?13:24
jtvIt's configured under Edit Node.13:24
jgrasslerA reverse lookup on the PXE interface's address?13:24
jtvNo, we tell the DHCP server to serve a particular address to that interface.13:25
jgrasslerNow there's where I run into trouble...our MAAS controller is separate from the DHCP server :-(13:25
jtvAnd that means we can't control the addresses.  :(13:25
jgrasslerYes.13:26
jgrasslerIt's not much of a problem if (1) the hostname configured under "Edit Node" trumps whatever a node's PXE interface address resolves to and if (2) MAAS identifies that node by something like its MAC address or serial number, i.e. if a different node with the same address showing up doesn't cause trouble.13:27
jtvJust to make sure: when you say "the node's PXE interface address," you mean the address it gets from DHCP while it's netbooting, right?  I mean, not its BMC or anything.13:28
jgrasslerCorrect, yes.13:28
jtvMAAS itself does know the node by its MAC addresses.  Still thinking about the rest.13:29
jgrasslerThat sounds like we may not have a problem, in fact :-)13:29
jtvAh-ah-ah those sound like FLW  :)13:30
jgrasslerFLW?13:30
jtvFamous Last Words.13:30
jtv(Sorry.  I collect TLAs.)13:30
jtvAnyway.13:30
jtvI'm having trouble parsing your point (1), probably because it doesn't match my own mental model very closely.  It may help if I just complete the picture of how it works:13:31
jtvIn the "normal" mode of operation, we do two things for a node:13:31
jgrasslerSounds good. I'll fill in the gaps (if there are any :-))13:31
jtv(Ahem.  A node being deployed.  Not just any node.)13:32
jtv1. We tell dhcpd: if this interface asks for an IP address, give it X.13:32
jtv2. We tell bind: resolve the node's configured hostname to X.13:32
jtvThere's no adaptive logic inbetween.  So if the node sneakily acquires a completely different IP address, e.g. from a foreign DHCP server, there is nothing that adjusts to that.13:33
jtvWhich makes total sense in a model where we only serve DNS if we're also serving DHCP.13:34
jgrassler'sneakily acquire a different IP adddress' sumps it up pretty well :-)13:34
jtvI find colourful language an underutilised facility in IT.13:34
jgrasslers/sump/sum/13:35
jtvSump it up.  I like that.13:35
jgrasslerThen again, that typo is oddly fitting, yes13:35
jtvNow.  If we *don't* serve DHCP, then Spock has a beard.13:35
jgrasslerYes, unfortunately we seem to be in that universe :-)13:35
jtvAlso, in this universe, nodes get whatever IP addresses they get, MAAS isn't aware, and the hostnames you configure for them just don't go anyway.13:35
jtvGlad to see some people still know their classics.  You caught my meaning there.13:36
jgrasslerAnyway, I shall endeavour to quickly sketch the sick and twisted flavour of reality we have to deal with around here:13:37
jtv*chuckle*13:37
jtvGo ahead, sump it up for me.13:37
jgrassler1) A node gets installed with PXE address X and whatever host name MAAS' database contains (i.e. what I put in there manually through the web interface or API)13:38
jtvBut the DHCP server is not MAAS's?13:39
jgrasslerNo.13:39
jtvOK13:39
jgrassler2) After the node is finished installing our bootstrap scripts perform their magic based on the machine's configured host name (and not on whatever reverse entries for the machine's addresses say)13:39
jgrassler3) At some point our bootstrapping scripts bring up the node's real network interfaces, configure bonding on them and receive the node's real IP address through DHCP on bond0 (that's the sneaky bit)13:41
jgrasslerSo far so good.13:41
jgrasslerBut now I'm getting a bit worried about (4): A different node comes up with PXE address X13:41
jtvAnd those reverse entries are in your own DNS server?13:41
jgrassler(due to overprovisioning)13:42
jgrasslerYes, but they are essentially meaningless13:42
jtvOK13:42
jgrassler(Not being permanently assigned to any node at all)13:42
jgrasslerAnd I won't have to worry about (4) if MAAS keeps identifying the node that went through steps (1) to (3) by its MAC address, even if it receives a different address on its PXE interface.13:43
jtvRight.  Then essentially, MAAS will simply not know the machine's IP address, and that should be fine as long as it knows the BMC address.13:44
jgrasslerBMC address?13:45
jtvWhere you control power etc. for the node.13:45
jgrasslerAh, perfect. That one is static :-)13:45
jtvExcellent.13:45
jgrasslerThanks13:46
jtvI think while the node is allocated, its address really doesn't matter to MAAS.13:46
jgrasslerThat's one major worry taken care of.13:46
jgrasslerNo, definitely not.13:46
jgrasslerWe tested this, and it's been found to work just fine.13:47
jtvPerfect.  My only slight hesitation was with requests that the node makes to the API.13:47
jtvIt would have been possible for the server to identify the node based on the request's IP address, but I'm fairly sure that we don't do that.13:48
jtv(I spend a lot of my time imagining ways for things to go wrong.)13:48
jgrasslerWe'll I'll be sure to test this.13:48
jtvNow, AFAICS MAAS shouldn't even show any IP address for your node.13:48
jtvWhich of course does mean that you need to figure out which node is which.13:49
jgrasslerThat's not a problem, we can go by the BMC address or MAC address.13:49
jtvOK13:50
jgrasslerIt is tedious, but we'll only have to do it once.13:50
jtvTechnically I suppose it's information we could record, but we can't make many guarantees about it because we don't know the dhcp server's policies.13:50
jtvThanks for the reviews allenap.14:16
=== jfarschman is now known as MilesDenver
allenapYou're totally welcome.14:22
=== jfarschman is now known as MilesDenver
bstillwellAre there any 1.6.1 packages for trusty?16:41
bstillwellnewell: Figured out the problem I was having yesterday was caused by an incomplete image import...16:50
newellbstillwell, glad you got it figured out :)16:50
newellsorry I had to run off16:50
bstillwellnp, btw do you know if there are any 1.6.1 packages for trusty?16:50
newellI would have to look16:51
newellI know there are rc 1.7 packages16:51
newellrc = release candidate16:51
bstillwellI'm looking at using MAAS for some CentOS machines, and I see there's beta support for using curtin on those.16:51
newellhttps://launchpad.net/~maas-maintainers/+archive/ubuntu/stable16:52
newelllooks like 1.6 is all there is as I don't see a stable 1.6.1 package16:52
newellblake_r is the one who implemented CentOS support so he would know more detailed answers about anything CentOS related16:53
bstillwellAre there any CentOS images I can use with curtain or instructions on how to make an image?16:53
bstillwellblake_r: ?16:53
bstillwellWhere are the 1.7 rc packages?16:53
bstillwellI don't have a problem helping test them.16:53
newellhttps://launchpad.net/~maas-maintainers/+archive/ubuntu/dailybuilds16:54
newellthose are in the daily build16:54
bstillwellcool, thanks!16:54
newellthere is also a 1.6.1 in there it looks like16:54
newellnpo16:54
newellnp*16:54
blake_rbstillwell: you should use maas-maintainers/testing16:54
bstillwellblake_r: Do those pull in the CentOS images?16:55
blake_rbstillwell: they do not pull in CentOS images, the CentOS images have yet to be released16:56
bstillwellblake_r: ahh, are there instructions somewhere on how to create your own?16:56
newellbstillwell, as blake_r just mentioned the latest 1.7 rc packages are in https://launchpad.net/~maas-maintainers/+archive/ubuntu/testing16:57
bstillwellnewell: thanks, I'll try them out.  :)16:57
blake_rbstillwell: not currently, sorry16:57
blake_rbstillwell: still working on that16:57
bstillwellblake_r: bummer16:58
=== CyberJacob|Away is now known as CyberJacob
bstillwellI believe I've found an area of the documentation that needs updating:21:20
bstillwellhttp://maas.ubuntu.com/docs1.7/install.html21:20
bstillwellThere's a note about getting the most recent release from the Canonical cloud archive using 'sudo add-apt-repository cloud-archive:tools'21:20
bstillwellbut if you actually try to do that on trusty it gives you: KeyError: 'release'21:21
=== jfarschman is now known as MilesDenver
JoshkaHey everyone! I have a question...23:37
JoshkaHow long should it take to commission a node in MAAS?23:37
JoshkaAnd what exactly is happening when it is in a "commissioning" state?23:38
=== CyberJacob is now known as CyberJacob|Away

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