Bug #4153

Context template FILE_DS overwrittent by 'init scripts'

Added by Anton Todorov over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:11/13/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Sunstone
Target version:-
Resolution:duplicate Pull request:
Affected Versions:OpenNebula 4.14

Description

How to reproduce:
1. upload two files to the files datastore a.sh and b.sh
2. in the VM template -> Update -> Context -> Files select both files for inclusion.
3. in the init scripts list them: 'a.sh b.sh'
4. then Update the template
5. instantiate VM. it will fail with the following error:

[TemplateInstantiate] Error allocating a new virtual machine. Error parsing: root-password.sh centos-net-dhcp.sh. syntax error, unexpected RSTRING, expecting VARIABLE at line 1, columns 1:36

if you go back to the VM template -> files, FILE_DS field is overwritten with 'Init scripts' field so in FILE_DS instead of

$FILE[IMAGE_ID=15] $FILE[IMAGE_ID=16]

there is
a.sh b.sh


Related issues

Duplicates Bug #4049: Template editing wizard overwrites FILES_DS with content ... Closed 10/10/2015

History

#1 Updated by Rolandas Naujikas over 5 years ago

Duplicate of http://dev.opennebula.org/issues/4049 and it is already solved in future version.

#2 Updated by Javi Fontan over 5 years ago

  • Duplicates Bug #4049: Template editing wizard overwrites FILES_DS with content of INIT_SCRIPTS added

#3 Updated by Javi Fontan over 5 years ago

  • Status changed from Pending to Closed
  • Resolution set to duplicate

Also available in: Atom PDF