Bug #38
Wrong parsing of RAW data with "'"
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | Tino Vázquez | % Done: | 0% | |
Category: | Client API & Library | |||
Target version: | - | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: |
Description
Reported through the one-user mailing list:
I'm trying some things to try to get work vm. I've seen RAW parameter, so i made some changes again:
NAME = sles10 CPU = 0.5 MEMORY = 128 RAW = [ type = 'xen', data = 'builder="linux" bootloader="/usr/lib/xen/boot/domUloader.py" bootargs="--entry=xvda2:/boot/vmlinuz-xenpae,/boot/vmlinuz-xenpae" ' ] OS = [ kernel = "/boot/vmlinuz-xenpae", initrd = "/boot/initrd-xenpae", root = "xvda2" ] DISK = [ source = "/opt/nebula/images/sles10.img", target = "xvda", readonly = "no" ] DISK = [ type = "cdrom", source = "/opt/nebula/images/sles10.iso", target = "xvdb", readonly = "yes" ] NIC = [ mac = "00:16:3e:58:82:3a", bridge = "eth0" ] GRAPHICS = [ type = "vnc", listen = "127.0.0.1", port = "5900" ]the problem is that you are using the character "," to split or to do somethings, so when one try to translate the file, does not obtain the line bootargs="--entry=xvda2:/boot/vmlinuz xenpae,/boot/vmlinuz-xenpae", instead of that it only gets: bootargs='--entry=xvda2:/boot/vmlinuz-xenpae
Associated revisions
Ticket #38: Wrong handling of Vector Attributes
git-svn-id: http://svn.opennebula.org/one/trunk@102 3034c82b-c49b-4eb3-8279-a7acafdc01c0
Better print RAW attributes, as part of #38
git-svn-id: http://svn.opennebula.org/one/trunk@103 3034c82b-c49b-4eb3-8279-a7acafdc01c0
History
#1 Updated by Ruben S. Montero almost 13 years ago
- Status changed from New to Closed
- Resolution set to fixed
The bug was because of the use of the coma character as vector attribute separator. A new VectorAttribute that uses a magic separator is available, see changeset r102
#2 Updated by Ruben S. Montero almost 13 years ago
- Status changed from Closed to 4
- Resolution deleted (
fixed)
A side-effect of this, the CLI onevm show, also shows the magic separator. The internal separator has to be show as ",". Additionally the RAW attribute is not properly shown:
RAW : DATA=builder="linux" bootloader : "/usr/lib/xen/boot/domUloader.py"
Reopening this bug, till this is fixed
#3 Updated by Ruben S. Montero almost 13 years ago
- Status changed from 4 to Assigned
#4 Updated by Tino Vázquez almost 13 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed
Side-effect fixed in r106