[one-dev] proof of concept implementation of EXTERNAL leases

Ruben S. Montero rsmontero at opennebula.org
Thu Dec 19 06:34:14 PST 2013


Hi Steven

Sorry for the dealy. This is very interesting indeed. Usually we implement
this feature the other way around, a hook registers the IP assigned by
OpenNebula to the DHCP server. Obviously, this cannot be assumed in all
deployments.

Thinking about this, I'd like to leverage the hook system. The goal is to
manage the excution to an external driver and decouple it for the core it
self. However, there are a couple of issues to address, as we need to
synchronize IP and VM structures.

Could we somehow get around this by  implementin a API call to update the
IP address?

Cheers

Rubén


On Thu, Dec 12, 2013 at 3:24 PM, Steven Armstrong <
steven-opennebula at armstrong.cc> wrote:

> Hi
>
> I hacked together a new type of virtual network which delegates the
> allocation of ip addresses to an external command [1].
>
> The use case is that we want to handle virtual machines exactly the same
> as physical ones.
>
> For physical hosts our bootstrap process looks something like this:
> - get a new machine, vendor gives us mac address
> - create dns/dhcp entries for the machine using an internal API
> - boot machine, install through dhcp/pxe
> - configure using cdist
>
> With the new vnet type, we can have the mostly same work flow for
> opennebula managed vms:
> - opennebula creates vm, generates mac address
> - the EXTERNAL network type runs a script that create dns/dhcp entries for
> the machine using an internal API
> - boot machine, install through dhcp/pxe
> - configure using cdist
>
> Together with the openvswitch backend and vlan tagging we have all we need
> to mix and match virtual and physical machines in all our subnets however
> we need to.
>
> If all this makes some sense to you it would be nice to get some feedback
> on [1].
>
> Please note that I am no C++ developer. I just copy/pasted try/error to
> get it to work ;-)
>
> Cheers,
> Steven
>
> [1] https://github.com/OpenNebula/one/pull/15
> _______________________________________________
> Dev mailing list
> Dev at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org
>



-- 
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/dev-opennebula.org/attachments/20131219/9b2e8806/attachment-0002.htm>


More information about the Dev mailing list