Bug #3170
Updating a template with the wizard remove RAW section
| Status: | Closed | Start date: | 09/03/2014 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% | ||
| Category: | Sunstone | |||
| Target version: | Release 4.10 | |||
| Resolution: | fixed | Pull request: | ||
| Affected Versions: | OpenNebula 4.8 |
Description
Hello,
Step to reproduce:
- Select a template
- Click on
UPDATEto modify the template - Click on
Advanced mode - Add a
RAWsectionRAW = "<devices><video><model type='vga' heads='1'/></video></devices>"
- Click on
Updateto save the modification - Click on
template_template_tabbutton, theRAWsection is here - Click on
UPDATEto modify the template - Click on
Updateto save the modification (none was done) - Click on
template_template_tabbutton, theRAWsection disappear
Regards.
History
#1
Updated by Daniel Molina almost 7 years ago
- Status changed from Pending to Closed
- % Done changed from 0 to 100
- Resolution set to invalid
You have to include the XML in a DATA attr inside the RAW section
http://docs.opennebula.org/4.8/user/references/template.html#raw-section
#2
Updated by EOLE Team almost 7 years ago
Sorry, my report was wrong about the RAW section, I have this in my template :
RAW= [DATA = "
<devices>
<filesystem type='mount' accessmode='squash'>
<source dir='/var/lib/one/datastores/eole-ci'/>
<target dir='eole-ci'/>
</filesystem>
</devices>
",
TYPE="kvm"]
I found what was the problem, the sunstone view user does not have the other tab:
--- /etc/one/sunstone-views/admin.yaml 2014-08-11 18:17:56.000000000 +0200 +++ /etc/one/sunstone-views/user.yaml 2014-08-11 18:17:56.000000000 +0200 @@ -196,8 +195,7 @@ features: true input_output: true context: true - scheduling: true - other: true + scheduling: false images-tab: panel_tabs: image_info_tab: true @@ -219,8 +217,8 @@
I think sunstone should not remove the RAW section just because the user does not have the tab.
And I think the user view needs some updates.
Regards.
#3
Updated by Daniel Molina almost 7 years ago
- Status changed from Closed to New
- Assignee set to Daniel Molina
- Target version set to 67
- % Done changed from 100 to 0
- Resolution deleted (
invalid)
The "other" tab should be enabled for regular users, otherwise some sections of the template will be lost when updated
#4
Updated by Daniel Molina almost 7 years ago
- Target version changed from 67 to Release 4.10
#5
Updated by Daniel Molina almost 7 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
- Resolution set to fixed