[one-users] something more sophisticated ...

Carlos Martín Sánchez cmartin at opennebula.org
Thu Feb 23 06:28:18 PST 2012


Hi,

The simplest way to deploy such scenario I can think of, without coding, is
to have duplicated templates for the VMs of users in group B:

Template_1:
[..]
NIC = [ NETWORK = B ]

Template_1_retry:
[..]
NIC = [ NETWORK = A ]


Users can try to instantiate Template_1 and, if the instantiation fails
because the network B is out of leases, then instantiate Template_1_retry.
This could be easily automated with a wrapper of the onetemplate
instantiate method.


Of course you could implement more robust and complex solutions, but this
should do the trick.

Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>



On Wed, Feb 22, 2012 at 5:26 PM, Ulrich Schwickerath <
ulrich.schwickerath at cern.ch> wrote:

> Hi, all,
>
> I have a dummy user question for an a bit more sophisticated use case.
> Let's say I have 2 networks A and B with fixed IP/MACs, and I have 2 user
> groups G1 and G2. Now I want that users of G1 can only use IPs from network
> A (that's easy), and that users from group B can use leases from network B
> _first_ and overflow to A if B is full or all machines are highly used. Is
> that possible ?
>
> In reality I have another network C which must be exclusively used by
> another user group G3. This network belongs to a group G3, is owned by the
> only user in that group and has permission set so that only this user can
> use this network.
>
> Now I naively tried not to specify the network I want to use in the VM
> template, so my NIC definition is simply:
> #------ networking -----
> NIC = [
>        MODEL="virtio"
>      ]
> Being a user of group G2 I thought I would get a MAC from B but I got one
> from network C. Is that a bug or did I miss something ?
>
> Thanks for your help!
> Ulrich
>
> --
> ------------------------------**--------
> Dr. Ulrich Schwickerath
> CERN IT/PES-PS
> 1211 Geneva 23
> e-mail: ulrich.schwickerath at cern.ch
> phone:   +41 22 767 9576
> mobile:  +41 76 487 5602
>
> ______________________________**_________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120223/47d743dc/attachment-0003.htm>


More information about the Users mailing list