[one-users] Mandatory attributes with default value ?

Ruben S. Montero rsmontero at opennebula.org
Mon May 21 04:04:30 PDT 2012


Hi

As you outline in your email, there are some parameters which are
mandatory for an specific hypervisor (and may not be mandatory for
another one). So, in general OpenNebula will not know if the host use
for the VM is going to be Xen, KVM or even EC2.

We came out with a defaults file, where you could put defaults for
those hypervisor-mandatory attributes. This way we could keep the
templates abstract enough, and there is no need to specify, let say
BOOT for every single template.

Then, why not use that file also to provide defaults for specific
hypervisor attributes (e.g. caching algorithm for I/O operation on
DISK). Unfortunately the documentation lagged behind the new uses for
the file....

Thanks for the heads up!

We've already updated the documentaion, to (hopefully) better reflect this ;)

Cheers

Ruben


On Sat, May 19, 2012 at 3:20 PM, Olivier Berger
<olivier.berger at it-sudparis.eu> wrote:
> Hi.
>
> I've had a look at the docs and am a bit puzzled by the "mandatory
> attributes" which at the same time are documented with default values...
>
> In
> http://opennebula.org/documentation:archives:rel3.2:kvmg#mandatory_attributes,
> OS:ARCH is mandatory, but in
> http://opennebula.org/documentation:archives:rel3.2:template it is
> marked :
> M (default i686)  for kvm
>
> What's the purpose of a default for a mandatory parameter ?
>
> Indeed, if the ARCH is not defined, I experience problems booting an
> amd64 image on my amd64 host, since kvm is provided with some 32 bit
> emulation param (-cpu qemu32, see http://bugs.debian.org/673173)
>
> Shouldn't the mandatory args be checked and an error reported ?
>
> Thank in advance.
>
> Best regards,
> --
> Olivier BERGER
> http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
> Ingenieur Recherche - Dept INF
> Institut Mines-Telecom, Telecom SudParis, Evry (France)
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula



More information about the Users mailing list