https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c2
Tony Yuan
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100629 Mandriva Linux/1.9.2.6-0.1mdv2010.0 (2010.0) Firefox/3.6.6
Aften updating to newer xen4 rpms, e.g. xen-4.0.0_21091_05-70.1.x86_64 drbd virtual disks stopped working (getting error on xm create).
The problem is in file /usr/lib64/python/site-packages/xen/util/blkif.py, line 84
The os.popen2() expects a single string, not a tuple or a list. I have fixed it following way:
84c84 < (drbdadmstdin, drbdadmstdout) = os.popen2(["/sbin/drbdadm", "sh-dev", fn]) ---
(drbdadmstdin, drbdadmstdout) = os.popen2("/sbin/drbdadm "+"sh-dev "+fn)
which works now. Anyway, the os.popen2() function is deprecated and should be replaced by subprocess module.
Reproducible: Always
Steps to Reproduce: 1.simply try to start pvm domU using drbd partitions 2. 3.
I created a drbd partition. Attach it to a xen4 domu in its config file as follows. "disk=[ 'phy:/dev/sda5,hda,w','phy:/dev/drbd12,hdb,w', ]" Run xm create [config file]. The domu was created successfully. I didn't got any error. My xen os is sles 11 sp1 x64. Did I reproduce this bug in correct way? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.