Bug 115791

Summary: Yast makes a wrong XEN config
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Wilken Gottwalt <wgottwalt>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: RC 2   
Hardware: i686   
OS: All   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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