[Bug 623201] New: drbd xvd will fail in new xen4 packages due to wrong popen2 arguments in blkif.py
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.
http://bugzilla.novell.com/show_bug.cgi?id=623201
http://bugzilla.novell.com/show_bug.cgi?id=623201#c
Charles Arnold
http://bugzilla.novell.com/show_bug.cgi?id=623201
http://bugzilla.novell.com/show_bug.cgi?id=623201#c1
Charles Arnold
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.
https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c3
--- Comment #3 from Samuel Kvasnica
https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c4
--- Comment #4 from Tony Yuan
https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c5
--- Comment #5 from Samuel Kvasnica
https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c6
--- Comment #6 from Tony Yuan
https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c7
--- Comment #7 from Samuel Kvasnica
https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c8
--- Comment #8 from Samuel Kvasnica
https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c9
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=623201
https://bugzilla.novell.com/show_bug.cgi?id=623201#c10
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com