Bug 115791 - Yast makes a wrong XEN config
Summary: Yast makes a wrong XEN config
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: RC 1
Hardware: i686 All
: P5 - None : Normal
Target Milestone: RC 2
Assignee: Ladislav Slezák
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 06:58 UTC by Wilken Gottwalt
Modified: 2005-09-09 10:56 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wilken Gottwalt 2005-09-08 06:58:26 UTC
It's a simple problem. Yast makes a config looking like this:

disk = [ 'file:/var/lib/xen/images/dom1/hda,hda,w' ]
memory = 128
kernel = "/var/lib/xen/images/dom1/vmlinuz-2.6.13-8-xen"
ramdisk = "/var/lib/xen/images/dom1/inst-initrd"
name = "dom1"
dhcp = "dhcp"
vif = "[ 'mac=00:30:84:00:00:01' ]"
extra = ""
root = ""

which causes quiet a lot trouble like this:

Unexpected error: exceptions.ValueError

Please report to xen-devel@lists.xensource.com
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 707, in main
    rc = cmd(args)
  File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 176, in xm_create
    create.main(args)
  File "/usr/lib/python2.4/site-packages/xen/xm/create.py", line 822, in main
    preprocess(opts, opts.vals)
  File "/usr/lib/python2.4/site-packages/xen/xm/create.py", line 718, in preprocess
    preprocess_vifs(opts, vals)
  File "/usr/lib/python2.4/site-packages/xen/xm/create.py", line 593, in
preprocess_vifs
    (k, v) = b.strip().split('=', 1)
ValueError: need more than 1 value to unpack


The problem is the quotation mark around the mac address, this line should look
like the disk entry, just without the quotation mark.
Comment 1 Wilken Gottwalt 2005-09-08 07:02:39 UTC
I mean the outer quotation marks.
Comment 2 Ladislav Slezák 2005-09-08 12:18:36 UTC
Yes, the double quotes should not be used for vif option.
Comment 3 Ladislav Slezák 2005-09-09 10:56:09 UTC
fixed in yast2-vm-2.12.4