Bug #2390

Template fails over Sunstone but succeeds via CLI

Added by Frederic Gierlinger over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:10/17/2013
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Sunstone
Target version:Release 4.4
Resolution:duplicate Pull request:
Affected Versions:OpenNebula 4.2

Description

The following template configuration is causing troubles:

CONTEXT=[
DNS="10.203.50.250 10.203.50.233",
ETH0_GATEWAY="$NETWORK[GATEWAY, NETWORK=\"public\"]",
ETH0_IP="$NIC[IP, NETWORK=\"public\"]",
NETWORK="YES",
PRIVNET="$NETWORK[TEMPLATE, NETWORK=\"private\"]",
PUBNET="$NETWORK[TEMPLATE, NETWORK=\"public\"]",
ROOT_PASSWORD="JDEkVG5wWTd0UXAkWVMuTnk3RHI2c0RDVVNiSnlkNVIvLwo=",
SEARCH="opennebula.local",
SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
CPU="0.1"
DISK=[
IMAGE_ID="25" ]
GRAPHICS=[
LISTEN="0.0.0.0",
TYPE="VNC" ]
MEMORY="256"
NIC=[
IP="10.110.12.1",
NETWORK_ID="7" ]
NIC=[
IP="192.168.3.254",
NETWORK_ID="6" ]
RANK="RUNNING_VMS"

When entering this config via the CLI nothing happens - it is successfully saved. When I then open the "Update Template" Dialog in Sunstone and do nothing but hitting the submit button, the following error is raised:

[TemplateUpdateTemplate] Cannot update template. Parse error: syntax error, unexpected VARIABLE, expecting COMMA or CBRACKET at line 23, columns 280:286

Sunstone-GUI:
If I enter the context variable for the first time (Wizard), it is saved without problems. Only when Updating the Template - chaning nothing - and hitting "Update" I get the TemplateUpdateTemplate Error


Related issues

Related to Bug #2293: Sunstone template update not working Closed 09/02/2013

History

#1 Updated by Daniel Molina over 7 years ago

  • Status changed from Pending to Closed
  • Target version set to Release 4.4
  • % Done changed from 0 to 100
  • Resolution set to duplicate

This issue is solved for one-4.4. You can see the fix in the following ticket:
http://dev.opennebula.org/issues/2293

Thanks for the feedback

Also available in: Atom PDF