http://bugzilla.novell.com/show_bug.cgi?id=623201 http://bugzilla.novell.com/show_bug.cgi?id=623201#c0 Summary: drbd xvd will fail in new xen4 packages due to wrong popen2 arguments in blkif.py Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Major Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: samuel.kvasnica@ims.co.at QAContact: qa@suse.de Found By: --- Blocker: --- 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. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.