[one-users] Sunstone 4.4 Template Editor Error

Carlos Martín Sánchez cmartin at opennebula.org
Fri Mar 28 08:49:37 PDT 2014


Hi Matt,

On Fri, Mar 28, 2014 at 2:46 PM, Matthew Paradis
<matthew.paradis at bbc.co.uk>wrote:

>  Hi All,
>
>  After upgrading to 4.4 I can no longer edit or create new templates from
> sunstone.
>
>  Editing/creating using onetemplate update on the command line is fine.
>
>  The error on updating a new or existing template is
>
>  [TemplateAllocate] Error allocating a new virtual machine template.
> Parse error: syntax error, unexpected VARIABLE, expecting EQUAL or
> EQUAL_EMPTY at line 37, columns 543:545
>
>  Is anyone else seeing this issue?
>
>  Regards
>
>  Matt
>
>  --
> Dr. Matthew Paradis
> Senior Software Engineer (Audio),
> BBC Research and Development
> 030304 09889 | matthew.paradis at bbc.co.uk | bbc.co.uk/rd
>
>  Here is an example of the template (originally created in sunstone 4.2)
>
>
> CONTEXT=[CURRUSER="$UNAME",HOSTNAME="vm-$VMID-user",NETWORK="YES",REAL_NAME="$NAME",SSH_KEY="$USER[SSH_KEY]",SSH_KEY_2="$USER[SSH_KEY_2]"]
> CPU="0.25"
> FEATURES=[ACPI="yes"]
> GRAPHICS=[LISTEN="0.0.0.0",TYPE="VNC"]
> MEMORY="1024"
> NIC=[NETWORK_ID="9"]
> OS=[ARCH="x86_64"]
> RANK="-RUNNING_VMS"
> RAW=[DATA="<devices><serial type=\"pty\"><target
> port=\"0\"/></serial><console type=\"pty\"><target type=\"serial\"
> port=\"0\"/></console></devices>",TYPE="kvm"]
> REQUIREMENTS="ID=\"0\" | ID=\"1\" | ID=\"2\""
> VCPU="1"
>

Yes, I can confirm that in 4.4.1 that template fails to update, but it is
working for the master branch. I think that the problem is that sunstone
was escaping only certain input fields [1]. In this case, REQUIREMENTS was
renamed to SCHED_REQUIREMENTS, and the 4.4 wizard is not filling the value
in correctly escaped input of the placement section.

Maybe you can try to apply the fsck fix liked here [2] and see if that
solves the problem.

Regards.

[1] http://dev.opennebula.org/issues/2800
[2] http://dev.opennebula.org/issues/2764#note-5

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org |
@OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140328/e1e8d56e/attachment-0002.htm>


More information about the Users mailing list