Mailing List Archive

[Bug 1438] Cannot use pygrub with drbd blcok device as xvda.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1438





------- Comment #5 from themsley@voiceflex.com 2011-06-24 13:52 -------
The patch to pygrub here is broken for me on DRBD 8.0 and 8.3 on CentOS 5.6 and
on Ubuntu 8.04 LTS. It uses

drbdresource = string.strip(os.popen('drbdadm sh-resources ' +
file).readline(), " \n")

to get info about the resource it wants but drbdadm sh-resources silently
ignores any arguments passed to it and displays ALL DRBD resources. This list
later gets passed to drbdadm primary which makes all DRBD resources on this
host primary (or attempts to). This is incorrect behaviour - indeed, it's very
bad!


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1438] Cannot use pygrub with drbd blcok device as xvda. [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1438





------- Comment #6 from themsley@voiceflex.com 2011-06-24 14:00 -------
A patch for the patches attached here says something like this

--- pygrub 2011-06-24 21:54:52.000000000 +0100
+++ /usr/bin/pygrub 2011-06-24 21:56:44.000000000 +0100
@@ -679,8 +688,9 @@
"""
drbdcount = string.strip(os.popen('drbdadm sh-dev all | grep ' + file + '
| wc -l').readline(), " \n")
if drbdcount == '1':
- drbdresource = string.strip(os.popen('drbdadm sh-resources ' +
file).readline(), " \n")
- peerstate = string.strip(os.popen('drbdadm state ' +
drbdresource).readline(), " \n").lower().split("/",1)[0]
+ minor = file[9:]
+ drbdresource = string.strip(os.popen('drbdadm sh-resource minor-' +
minor).readline(), " \n")
+ peerstate = string.strip(os.popen('drbdadm role ' +
drbdresource).readline(), " \n").lower().split("/",1)[0]

if peerstate == "unknown":
print "DRBD resource " + drbdresource + " is " + peerstate + " on
peer. Maybe split brain state?"


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs
[Bug 1438] Cannot use pygrub with drbd blcok device as xvda. [ In reply to ]
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1438





------- Comment #7 from deshantm@gmail.com 2011-06-24 18:46 -------
Bugzilla is not heavily used. Did you report this to the xen-devel mailing
list?

http://wiki.xen.org/xenwiki/ReportingBugs


--
Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@lists.xensource.com
http://lists.xensource.com/xen-bugs