On Mon, Jan 13, 2014 at 01:08:36pm +0100, Jose A. Lopes wrote: > > I think this could work with explicit routes: One to 169.254.0.1/32 > > through tap0, one to 169.254.0.2/32 through tap1, and one through > > 169.254.0.2/32 through tap2. If yes, will Ganeti set up these routes > > explicitly? > > > > In a similar note, who will be responsible for setting up the DHCP > > server? It could be the administrator's responsibility, but then if it > > is Ganeti the entity which picks the MAC addresses and IPs for the guest > > side of the TAP interfaces, how will this DHCP server be notified, so as > > to only server the correct IP addresses to specific MAC addresses? > > > > Also, if it is the administrator's responsibility, then perhaps the > > admin should be able to set up standard ifup hooks, like for every > > other interface of an instance. But in the following examples, you > > specifically set script=no,downscript=no. > > > > Another possibility would be for Ganeti to come prepackaged with its > > own, embedded DHCP server just for serving requests on the TAPs used for > > the communication mechanism. We've been using snf-nfdhcpd > > (https://code.grnet.gr/projects/snf-nfdhcpd) for just that in > > production. > > In snf-nfdhcpd, how do you configure the interfaces to listen to and > the pairs (MAC, IP)? I couldn't find any documentation and the > configuration file does not seem to contain these. >
Hello Jose, The configuration is quite lacking currently, we are working now to fix this. Yes, you can specify (TAP, MAC, IP) tuples explicitly, per distinct "binding" given to snf-nfdhcpd. A binding is a simple file placed under /var/lib/nfdhcpd, which informs it of a newly-created VM and makes it answer DHCP queries on the specified TAP interface. The daemon runs inotify() on this directory, so it can update its runtime state dynamically, with minimal overhead. Please see my answer to your following mail about all the details, we'll try to get this information and more into a short comprehensive document on snf-nfdhcpd. Thanks, Vangelis
signature.asc
Description: Digital signature
