[one-users] Template REQUIREMENTS syntax

Jason Heiss jheiss at aput.net
Thu May 20 16:38:21 PDT 2010


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




More information about the Users mailing list