[one-users] Template REQUIREMENTS syntax

Ruben S. Montero rubensm at dacya.ucm.es
Fri May 21 14:49:28 PDT 2010


Hi Jason

Thanks for the feedbak. The documentation was outdated, the single
quote syntax is for OpenNebula 1.2. In OpenNebula 1.4 you can just
simply escape the quotes as usual, i.e. the following should be
equivalent

REQUIREMENTS = "HOSTNAME = ec2"
REQUIREMENTS = "HOSTNAME = \"ec2\""

Cheers

Ruben

On Fri, May 21, 2010 at 1:38 AM, Jason Heiss <jheiss at aput.net> wrote:
> I'm experimenting with something similar to the multi-site support described on http://www.opennebula.org/documentation:rel1.4:ec2g
>
> The example template on that page suggests syntax like the following to pin a new VM to a particular host/MAD:
>
> REQUIREMENTS = 'HOSTNAME = "ec2"'
>
> If I try to "onevm create" with a template containing that syntax I get:
>
> Error: Error parsing VM template
>
> If I change the line to the following syntax it works:
>
> REQUIREMENTS = "HOSTNAME = ec2"
>
> That appears to be the syntax suggested by Ruben in this thread:
>
> http://lists.opennebula.org/pipermail/users-opennebula.org/2010-January/001405.html
>
> Is the doubly-quoted syntax on the website just a typo?  Or is there something more subtle going on?
>
> Jason
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid

URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7



More information about the Users mailing list