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 886773 Details for
Bug 1083938
[RFE] Support fence_kdump configuration for generic clusters
[?]
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]
[RHEL6.6 PATCH 2/4 v2] Add function get_pcs_cluster_nodes
0002-Add-function-get_pcs_cluster_nodes.patch (text/plain), 1.56 KB, created by
Martin Perina
on 2014-04-16 07:35:13 UTC
(
hide
)
Description:
[RHEL6.6 PATCH 2/4 v2] Add function get_pcs_cluster_nodes
Filename:
MIME Type:
Creator:
Martin Perina
Created:
2014-04-16 07:35:13 UTC
Size:
1.56 KB
patch
obsolete
>From a101e3f0ec19ae5cf475d1f6f4c0db7756b358fc Mon Sep 17 00:00:00 2001 >From: Martin Perina <mperina@redhat.com> >Date: Tue, 15 Apr 2014 13:33:10 +0200 >Subject: [RHEL6.6 PATCH 2/4 v2] Add function get_pcs_cluster_nodes > >Extracts relevant parts of code into function get_pcs_cluster_nodes. >This is part of code cleanup prior to introduction of fence_kdump >configuration for generic clusters. > >Related: rhbz#1083938 >Signed-off-by: Martin Perina <mperina@redhat.com> >--- > mkdumprd | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/mkdumprd b/mkdumprd >index 43c526b..1f81bc6 100644 >--- a/mkdumprd >+++ b/mkdumprd >@@ -1523,6 +1523,13 @@ is_pcs_fence_kdump() > [ -f "$CLUSTER_CONFIG_FILE" ] || return 1 > } > >+# Returns list of nodes defined in Pacemaker cluster. >+get_pcs_cluster_nodes() >+{ >+ echo "xpath /cluster/clusternodes/clusternode/@name" \ >+ | xmllint --shell $CLUSTER_CONFIG_FILE | grep content | cut -d'=' -f2 >+} >+ > if [ -z "$MNTIMAGE" -o -z "$IMAGE" ]; then > error "Error creating temporaries. Try again" > cleanup_and_exit 1 >@@ -1779,7 +1786,7 @@ fi > # handle cluster node if CLUSTER_CONFIG_FILE and fence_kudmp_send exist > if is_pcs_fence_kdump; then > # get cluster nodes from CLUSTER_CONFIG_FILE, get interface and ip addresses >- nodelist=`echo "xpath /cluster/clusternodes/clusternode/@name" | xmllint --shell $CLUSTER_CONFIG_FILE | grep content | cut -d'=' -f2` >+ nodelist=$(get_pcs_cluster_nodes) > for node in ${nodelist}; do > addr=`getent hosts $node | cut -d' ' -f1` > netdev=`/sbin/ip route get to $addr 2>&1` >-- >1.8.3.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 1083938
:
886467
|
886469
|
886470
|
886471
|
886772
| 886773 |
886774
|
886776