Bug #2474
Upgrade 3.8.3 -> 4.2: updating a template complains about unselectable images and networks
Status: | Closed | Start date: | 11/19/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Daniel Molina | % Done: | 100% | |
Category: | Sunstone | |||
Target version: | Release 4.4 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 4.2 |
Description
Hello,
I just upgrade an Opennebula 3.8.3 to 4.2.
The upgrade itself was without a problem.
Connecting to Sunstone and looking at templates, I have the following messages:
- Storage: The image you specified cannot be selected in the table
- Network: The network you specified cannot be selected in the table
This does not prevent from instantiating the template but can be confusing for the user.
Here is the faulty template:
TEMPLATE 106 INFORMATION ID : 106 NAME : DaD-wheezy USER : daniel GROUP : eole REGISTER TIME : 03/20 11:10:02 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- TEMPLATE CONTENTS CPU="0.05" DISK=[ IMAGE="DaD-wheezy-fresh", IMAGE_UNAME="daniel" ] FEATURES=[ ACPI="yes", PAE="no" ] GRAPHICS=[ KEYMAP="fr", LISTEN="0.0.0.0", TYPE="vnc" ] MEMORY="512" NAME="DaD-wheezy" NIC=[ MODEL="virtio", NETWORK="SW-EOLE", NETWORK_UNAME="oneadmin" ] NIC=[ MODEL="virtio", NETWORK="SW-DaD", NETWORK_UNAME="daniel" ] OS=[ ARCH="x86_64", BOOT="hd" ] RAW=[ TYPE="kvm" ] TEMPLATE_ID="106" VCPU="1"
After reselecting the components, I have:
TEMPLATE 106 INFORMATION ID : 106 NAME : DaD-wheezy USER : daniel GROUP : eole REGISTER TIME : 03/20 11:10:02 PERMISSIONS OWNER : um- GROUP : --- OTHER : --- TEMPLATE CONTENTS CONTEXT=[ NETWORK="YES", SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ] CPU="0.05" DISK=[ IMAGE_ID="114" ] FEATURES=[ ACPI="yes", PAE="no" ] GRAPHICS=[ KEYMAP="fr", LISTEN="0.0.0.0", TYPE="vnc" ] MEMORY="512" NAME="DaD-wheezy" NIC=[ MODEL="virtio", NETWORK_ID="31" ] NIC=[ MODEL="virtio", NETWORK_ID="52" ] OS=[ ARCH="x86_64", BOOT="hd" ] VCPU="1"
NB: the VNC radio
is not selected but the onetemplate show 106
say it's enabled
Regards.
History
#1 Updated by Ruben S. Montero over 7 years ago
- Assignee set to Daniel Molina
- Target version set to Release 4.4
#2 Updated by Daniel Molina over 7 years ago
- Status changed from Pending to Closed
- % Done changed from 0 to 100
- Resolution set to fixed
Hi Daniel,
Images/networks that are not defined using the ID are not selected in the table, but the inputs in the advanced section are always filled. This is because you can define these kind of resource in several ways:
IMAGE_ID
IMAGE_NAME
IMAGE_NAME + IMAGE_UNAME
IMAGE_NAME + IMANGE_UID
and even you can specify images that does not exist yet
Therefore, we always fill the inputs, but we only select the image in the table when it is defined using the ID, you don't have to select it again since the inputs contain all the information. We have extended this behaviour in one-4.4 and we also select images in the table that are specified using IMAGE + IMAGE_UNAME, and this will be default way to specify an image/network. In one-4.2 when you select an image the IMAGE_ID will be included in the template, in one-4.4 IMAGE + IMAGE_UNAME will be included instead, as shown in your template.
The vnc select update problem was solved for one-4.4 also.