Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 893243 Details for
Bug 1094812
'pcs status nodes corosync' gives an error instead of providing nodes info
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed fix
0001-Fix-pcs-status-nodes-corosync-on-RHEL6.patch (text/plain), 1.92 KB, created by
Tomas Jelinek
on 2014-05-07 12:25:49 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Tomas Jelinek
Created:
2014-05-07 12:25:49 UTC
Size:
1.92 KB
patch
obsolete
>From e070ae644bd88eac9ed37b5d80b035d880a33ce5 Mon Sep 17 00:00:00 2001 >From: Tomas Jelinek <tojeline@redhat.com> >Date: Wed, 7 May 2014 13:14:07 +0200 >Subject: [PATCH] Fix 'pcs status nodes corosync' on RHEL6 > >--- > pcs/utils.py | 20 +++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) > >diff --git a/pcs/utils.py b/pcs/utils.py >index b2de9a9..4e04879 100644 >--- a/pcs/utils.py >+++ b/pcs/utils.py >@@ -273,6 +273,13 @@ def sendHTTPRequest(host, request, data = None, printResult = True, printSuccess > return (2,"Unable to connect to %s (%s)" % (host, e.reason)) > > def getNodesFromCorosyncConf(): >+ if is_rhel6(): >+ dom = parse(settings.cluster_conf_file) >+ return [ >+ node_el.getAttribute("name") >+ for node_el in dom.getElementsByTagName("clusternode") >+ ] >+ > nodes = [] > lines = getCorosyncConf().strip().split('\n') > preg = re.compile(r'.*ring0_addr: (.*)') >@@ -316,6 +323,17 @@ def reloadCorosync(): > return output, retval > > def getCorosyncActiveNodes(): >+ if is_rhel6(): >+ output, retval = run(["cman_tool", "nodes", "-F", "type,name"]) >+ if retval != 0: >+ return [] >+ nodestatus_re = re.compile(r"^(.)\s+([^\s]+)\s*$", re.M) >+ return [ >+ node_name >+ for node_status, node_name in nodestatus_re.findall(output) >+ if node_status == "M" >+ ] >+ > args = ["corosync-cmapctl"] > nodes = [] > output,retval = run(args) >@@ -536,7 +554,7 @@ def run(args, ignore_stderr=False, string_for_stdin=None): > err("Unable to write to file: " + filename) > > command = args[0] >- if command[0:3] == "crm" or command == "cibadmin": >+ if command[0:3] == "crm" or command == "cibadmin" or command == "cman_tool": > args[0] = settings.pacemaker_binaries + command > if command[0:8] == "corosync": > args[0] = settings.corosync_binaries + command >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1094812
: 893243