/srv/irclogs.ubuntu.com/2013/12/04/#maas.txt

=== freeflying_away is now known as freeflying
=== CyberJacob is now known as CyberJacob|Away
bigjoolsroaksoax: I am landing a change to the cluster worker that will require it to have bind privs on port 68.  I use authbind in the development environment but how do you want to approach this in packaging?01:33
roaksoaxbigjools: im not home now(from the cell) but can we discuss this later?01:35
roaksoaxbinding to 68 might cause problems with otjet services01:35
roaksoaxsmoser ^^01:35
roaksoaxother*01:36
bigjoolsroaksoax: it uses SO_REUSEADDR01:36
bigjoolsno problem discussing later01:36
roaksoaxcool01:36
roaksoaxttyl01:36
smoseri'm on my way out. and i'd have to think about this.01:37
=== Beret- is now known as Beret
roaksoaxbigjools: ok, so where's the branch, why is it needed, and what impliations do you think it will cause?04:05
bigjoolsroaksoax: it's to detect dhcp servers, it has to bind to source port 68.  end of.04:52
roaksoaxbigjools: right, so what will bind to it?04:54
bigjoolsroaksoax: the cluster worker04:54
roaksoaxbigjools: what other servicces use port68?04:56
bigjoolsroaksoax: it's the dhcp client source port04:56
roaksoaxbootpc68/tcp# BOOTP client04:56
roaksoaxbootpc68/udp04:56
bigjoolsso I hope nothing04:56
bigjoolsbut even if there is something it doesn't matter04:56
bigjoolsI have tested locally with dnsmasq running and it's fine04:57
bigjoolsso, how can you sort this out in packaging?04:57
roaksoaxbigjools: "This packet identifies that a client is searching for an IP address. The packet uses UDP port 68 as it's source address for the client, since it does not have an IP address that refers back to the client."04:57
bigjoolsdude the branch has landed and it ain't gonna change04:57
roaksoaxbigjools: i'd need more information that that really. It seems that it is the port used by a dhcp-server to discovery clients right? so what happens if you bind that port and DHCP is useless?04:58
roaksoaxwhat happens if it create DHCP issues?04:58
bigjoolsno, it is not used by a dhcp server04:58
bigjoolsdhcp serves on port 6704:59
roaksoaxbigjools: udp        0      0 0.0.0.0:68              0.0.0.0:*                           15106/dhclient04:59
bigjoolsthat's the client04:59
roaksoaxbigjools: so dhclient seems to bind to port 6804:59
bigjoolsyes, they all do04:59
bigjoolsthat's why the cluster worker does it04:59
roaksoaxbigjools: right, but have you tested this on a client that uses dhclient to obtain IP address?05:00
bigjoolsthink about this05:00
roaksoaxbigjools: note that I'm not against using the part, I just want to understand the implications of doing so05:00
bigjoolswhy would your machine, which is running a dhcp server, also be running a dhclient?05:00
roaksoaxbigjools: because mymachine obtains a DHCP from a router05:01
bigjoolsyou can't do that you'd be running two dhcp servers05:01
roaksoaxbigjools: my machine does not have a static IP address and DHCP's from another DHCP server05:01
bigjoolsso unless you configure them not to cross, it's stupid :)05:01
bigjoolsanyway I have tested this and it works fine even if you have a dhcp client running already05:02
bigjoolsit uses SO_REUSEADDR05:02
bigjoolsthe point of the feature is to help idiots from shooting themselves in the foot by running more than one dhcp server05:02
roaksoaxbigjools: yeah I understand that, I just want to make sure doing so doesn't coonflict with other operations mof the OS05:04
roaksoaxif this is tested and doesn't then cool05:04
bigjoolsit won't05:04
roaksoaxif it does, then sucks05:04
roaksoaxas i said05:04
roaksoaxI just want to understand the implications of doing so to make sure nothing will break05:04
roaksoaxanyway05:04
bigjoolsit is very careful to use a transaction ID on the probe packet05:04
bigjoolsso won't clash05:04
roaksoaxsend me what you need for the packaging to email05:04
roaksoaxi'm off now05:04
bigjoolsgood night roaksoax05:05
roaksoaxnight05:05
roaksoaxbigjools: is this a new daemon or what?05:05
bigjoolsroaksoax: no05:05
bigjoolspart of celery05:06
roaksoaxbigjools: so then I don't think we will need packaging changes then05:06
roaksoaxif it is being run by maas-region-celery05:06
bigjoolsdoes it run as root?05:06
bigjoolsif not we need changes to set up authbind05:06
roaksoaxbigjools: it runs as maas user/pass05:07
roaksoaxuser/group05:07
roaksoaxexec /usr/sbin/maas-region-celeryd --logfile=/var/log/maas/celery-region.log --schedule=/var/lib/maas/celerybeat-region-schedule --user=maas --group=maas05:07
bigjoolsso needs to be exec authbind --deep /usr/sbin/maas-reg.....05:08
bigjoolsafter setting up /etc/authbind/byport/6805:08
bigjoolsor similar05:08
roaksoaxbigjools: ok, please send me that over email, my eyes will explode soon -> ved05:09
roaksoaxbed05:09
bigjoolsok :)05:09
jtvbigjools: shall I update the daily PPA to include the DHCP-probing code?07:27
=== CyberJacob|Away is now known as CyberJacob
bigjoolsjtv: no it won't work yet, needs packaging changes07:38
jtvThat's unfortunate because my dhcp-checking branch for maas-test requires it.07:41
bigjoolsjtv: well go ahead anyway it'll just traceback in the celery log07:42
bigjoolsjtv: hit rebuild on the recipe07:42
jtvShouldn't I land an update to the changelog first?07:42
bigjoolsno, daily build will DTRT07:42
bigjoolsrecipes are fkin awesome07:43
jtvBut we already have a build from yesterday in there, and it uses an old revision of trunk...07:43
bigjoolswhen you hit rebuild it will pull latest trunk07:43
jtvAh!07:43
jtvThat is nice.07:43
jtvI'm all motivated to go back to work on LP.  :)07:43
bigjoolslol07:43
tickingSay, does somebody know if MAAS supports non pxe hardware? e.g. mac pros07:46
bigjoolsticking: sort of07:46
bigjoolsprovided it can tftp to the right place it'll get boot resources07:47
tickingbut the avahi boot image is unsuported right?07:47
bigjoolsyeah that's getting junked entirely in 14.0407:47
tickingso there is no standard way of using tftp anymore?07:48
bigjoolsdefine standard07:49
tickingboot cd/stick, configure, connect, be happy ^^07:50
bigjoolsnormally the machine requests pxeconfig first, but other hardware like arm that doesn't pxe will request a specific tftp path07:50
tickingah I see, so the hardware does the tftp07:50
bigjoolstftp is nothing to do with avahi07:50
bigjoolsavahi was just a way for the installer cd to discover the maas server07:51
bigjoolsbut in the real world nobody is going to go around sticking CDs in hundreds of racks07:51
tickingah I see, the wiki is worded as if there was a way to load the boot image with the help of some provided base system07:52
bigjoolsthe general idea is that machines will be discovered from the maas server using ipmi07:53
bigjoolsit'll then attempt to power them up using ipmi and they'll hunt for a dhcp server which directs a pxe boot07:54
tickingyeah, I have a ton of decent mac pros lying around, being able to configure them quickly and painlessly would be nice07:54
tickingbut they only support wake on lan, no pxe no tftp boot07:54
bigjoolsWoL is nasty07:54
bigjoolsyou have no way of powering off07:54
tickingfor now I'm only concerned with at least booting them ^^07:56
bigjoolsI can't remember offhand how to direct machines to tftp from the right place when not using pxe07:57
tickingInterestingly it seems that mac pros do indeed support tftp ^^07:57
tickingso thanks for the pointer07:57
bigjoolsare they power?07:58
bigjoolsbecause maas doesn't know about power :)07:58
jtvPowerPC, that is.07:59
tickinghrhr no07:59
tickingintel07:59
tickingx6407:59
ticking_lol, liiks like I08:02
ticking_looks like I killed my switch with the netboot ^^08:02
tom___hi, what is the minimum # of nodes required to deploy a MAAS server?08:17
jtvAbsolute minimum?  One node, plus one server.08:17
tom___can the node be a VM? (Virtual Box VM)08:18
jtvI think it can, but MAAS won't create it for you.08:18
tom___I want to learn how to setup Openstack with Ubuntu, and don't have many machines.08:19
tom___I can create the VB VM, and add it to MAAS?08:19
tom___ok, I get it08:19
jtvI don't know if virtualbox can simulate a BMC though.08:19
tom___what is a BMC?08:19
jtvBaseboard management controller.  It's what lets MAAS reboot a node remotely.08:20
tom___No, VB probably not support that08:20
tom___I have some old PC, is BMC a requirement for the hardware?08:21
jtvEffectively, yes.08:21
jtvYou might get by with manual handling of the power switch, but that's not going to be as convenient.08:21
jtvI know there are virtual machine managers out there that do support it though.08:22
tom___does MAAS power cycle the nodes often? Or only when it do the initial OS install?08:22
tom___which VM manager?08:22
jtvMight have been KVM...08:23
jtvMAAS reboots a machine as part of commissioning, once to install it, and then once again at the end of installation IIRC.08:23
=== jam1 is now known as jam
tom___so I can probably try to manually reboot the box.08:24
jtvI think so.  Once the machine is deployed, it's basically yours to boot at will.08:24
tom___after installation, there's no need to physically reboot the node08:25
jtvRight.08:25
tom___thanks08:27
jtvI'd be curious to know how it works out!08:27
tom___will let you know08:29
jtvThanks.08:34
=== CyberJacob is now known as CyberJacob|Away
tom___@jtv, http://marcoceppi.com/2012/05/juju-maas-virtualbox/09:05
tom___someone managed to get maas to work with VirtualBox.09:06
jtv\o/09:06
jtvThanks for that pointer.09:06
gmbrvba: I'm seeing this this morning when I run m-t on my Saucy machine. Any idea WTF is going on? http://paste.ubuntu.com/6518779/09:28
jtvgmb: any chance that you're running an older uvtool?  I can still create VMs with uvtool directly.09:30
gmbjtv: No, this is after an apt-get update.09:31
jtvgmb: I was just wondering if maybe you weren't using the right PPA.09:40
jtvgmb: for comparison, I'm running uvtool 0~bzr66~ubuntu13.10.109:42
gmbjtv: Good thinking. I'll check.09:42
=== wgrant_ is now known as wgrant
rbasakgmb: I see: "qemu: at most 2047 MB RAM can be simulated" in that pastebin. How much system RAM do you have on that machine?11:32
gmbrbasak: 4GB. And it was working last week.12:45
rbasakgmb: which release are you on?12:45
rbasakgmb: (of Ubuntu)12:45
gmbSaucy12:45
rbasakAh. I see that you already said, sorry.12:46
rbasakgmb: I'm not sure what's going on there, but it seems to be an issue with qemu/kvm or your system, not libvirt or uvtool, if that helps.12:47
gmbrbasak: It helps me narrow it down, certainly. I'll try poking at a few things. Thanks.12:47
rbasakgmb: perhaps try lowering the --memory option and see if that helps?12:47
gmbThat was going to be the first thing I poked :)12:47
gmbrbasak: Yeah, that works. --memory 2047 is _fine_12:48
gmb(I hadn't noticed that option until just now)12:48
rbasakgmb: there's no i386 vs. amd64 thing going on here, is there?12:48
rbasak2048 is a magic boundary point for some things I think.12:49
rbasakAh12:49
rbasakThe line says arch=i38612:49
rbasakHmm12:49
rbasakuvtool doesn't actually care about that. It never specifies the required arch to libvirt, so that's just the image arch, rather than the guest machine arch.12:49
rbasakI wonder if that's a bug.12:49
rbasakgmb: are you on an i386 or amd64 kernel?12:50
gmbrbasak: uname says i68612:51
rbasakgmb, rvba: I think http://bazaar.launchpad.net/~maas-maintainers/maas-test/trunk/revision/81 introduced this, but only on i386 machines, like gmb's.12:52
rbasakYou're asking for --memory 2048, but gmb is getting an i386 guest, which doesn't support that.12:52
gmbrbasak: Yeah, I just came to the same conclusion. I'll revise that value down by one.12:53
rbasakCurrently uvtool has no provision for setting guest architecture, except through --template. I wonder if that needs to be addressed.12:53
rbasakgmb, rvba: it might be worth considering and documenting a minimum memory requirement for maas-test.12:54
gmbRight.12:54
rbasakOther related thoughts: perhaps it's because the guest doesn't support pae by default, which is uvtool bug 1256658.12:56
ubot5bug 1256658 in uvtool "Default guest instance misses some commonly expected features on Intel architectures" [Undecided,New] https://launchpad.net/bugs/125665812:56
rbasak(rather than an inherent i386 limitation)12:56
rbasakgmb: I'd be interested to know if it works if you use a template that is patched according to comment 1 in that bug.12:56
rbasak(for memory >= 2048)12:57
gmbrbasak: I'll check in a second. bear with me.12:58
rbasakThanks!12:58
gmbrbasak: Nope, still get the memory error with that snippet in place.13:04
rbasakgmb: just to check, did you patch its use in maas-test, rather than the (unused) system one?13:05
gmbrbasak: Yes, I patched the template we use in maastest/kvmfixture.py:383 (KVM_TEMPLATE).13:05
matsubaragmb, allenap: are you guys using the MAAS lab? I see a running instance there13:06
allenapmatsubara: Not me.13:06
gmbmatsubara: Not me.13:07
rbasakgmb: OK, thanks. I'm not sure what's going on there. For now, I think --memory=2047 is probably sensible then.13:07
gmbrbasak: Cool, thanks for helping me out.13:08
rbasaknp. Good to know what sorts of issues people will hit.13:08
rbasakI'd never considered the host/guest arch selection before.13:08
tickingsay, what does adding a node via the ubuntu install disk really do? there seems no informatiuon whatsoever on this online13:37
tickingdoes it require ubuntu 12? lan boot enabled? wake on lan enabled?13:40
tickingalso what happened to maas-import-isos?13:42
gmbticking: IIRC it allows you to boot up a node using the Ubuntu CD and then have MAAS provision that node; I'm not clear on the details of how that works, but the plan is to drop it for 14.04.13:42
gmbticking: I believe -import-isos went away and we now have maas-import-ephemerals / -import-pxe-files. Don't quote me on that, though; -import-isos was before my time.13:43
tickinggmb, ah thanks, it seems broken already with 1313:43
gmbticking: 13.what?13:43
rbasakmaas-import-pxe-files calls maas-import-ephemerals by default, unless that changed recently.13:44
rbasakYou can trigger a simple run from the web UI as well I think.13:44
ticking13.1013:44
tickingrbasak, cool thanks :)13:44
rbasakticking: how is it broken?13:44
tickingrbasak, node shuts down, but does not register with maas13:45
rbasakHmm. Not sure about that. Grabbing console output might help you debug the cause for that.13:46
tickingrbasak, yeah I would if it didn't autoshutdown13:46
rbasakYou can modify the cloud-init userdata for the enlistment case to change that. I can't remember the details though. Somewhere in /etc/maas/templates probably.13:48
tickingrbasak, I'll try that thanks13:50
tickingI give up ^^ using pxe just makes sense14:35
roaksoaxrbasak: ping14:41
roaksoaxerr14:41
roaksoaxrvba: ping14:42
gmbroaksoax: He's unavailable today.14:42
roaksoaxgmb: thanks!14:42
* gmb notes that he has the Good Ship MAAS pretty much to himself this afternoon.14:42
gmbNow there's a disturbing idea.14:43
mgzit's okay, you can't sink it in an afternoon14:43
gmbmgz: No, but I can start rewriting it in Go.14:43
mgz:D14:43
tickinggmb, you have my sword, and my go!15:16
gmb:)15:17
=== jpds_ is now known as jpds
=== teknico_ is now known as teknico
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away

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