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 886774 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 3/4 v2] Add function setup_cluster_nodes_and_options
0003-Add-function-setup_cluster_nodes_and_options.patch (text/plain), 3.67 KB, created by
Martin Perina
on 2014-04-16 07:35:36 UTC
(
hide
)
Description:
[RHEL6.6 PATCH 3/4 v2] Add function setup_cluster_nodes_and_options
Filename:
MIME Type:
Creator:
Martin Perina
Created:
2014-04-16 07:35:36 UTC
Size:
3.67 KB
patch
obsolete
>From fdd8309b626a28771eaf8d7a620b8cd35e01d6a0 Mon Sep 17 00:00:00 2001 >From: Martin Perina <mperina@redhat.com> >Date: Tue, 15 Apr 2014 13:37:43 +0200 >Subject: [RHEL6.6 PATCH 3/4 v2] Add function setup_cluster_nodes_and_options > >Extracts parts of code containing logic to configure fence_kdump nodes >and options from cluster configuration into function >setup_cluster_nodes_and_options. >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 | 80 ++++++++++++++++++++++++++++++++++++++-------------------------- > 1 file changed, 48 insertions(+), 32 deletions(-) > >diff --git a/mkdumprd b/mkdumprd >index 1f81bc6..5d6fbcf 100644 >--- a/mkdumprd >+++ b/mkdumprd >@@ -1530,6 +1530,53 @@ get_pcs_cluster_nodes() > | xmllint --shell $CLUSTER_CONFIG_FILE | grep content | cut -d'=' -f2 > } > >+# Reads list of cluster nodes, filters local IPs and setups network for them. >+# Nodes to send fence_kdump notification to are stored in CLUSTER_NODE_LIST. >+# Other arguments for fence_kdump_send are stored in FENCE_KDUMP_OPTS. >+setup_cluster_nodes_and_options() >+{ >+ # setup fence_kdump >+ local nodelist="" >+ >+ if is_pcs_fence_kdump; then >+ # fence_kdump setup for Pacemaker clusters >+ nodelist=$(get_pcs_cluster_nodes) >+ >+ # read fence_kdump_send options and store them to FENCE_KDUMP_OPTS >+ if [ -f "$FENCE_KDUMP_CONFIG" ]; then >+ . "$FENCE_KDUMP_CONFIG" >+ fi >+ fi >+ >+ if [ -n "$nodelist" ]; then >+ for node in ${nodelist}; do >+ addr=`getent hosts $node | cut -d' ' -f1` >+ netdev=`/sbin/ip route get to $addr 2>&1` >+ >+ if echo $netdev | grep -q ^local; then >+ continue >+ fi >+ >+ # add node ip address to node list >+ CLUSTER_NODE_LIST="$CLUSTER_NODE_LIST $addr" >+ >+ if echo $netdev | grep -q via; then >+ netdev=`echo $netdev | awk '{print $5}' | head -n 1` >+ else >+ netdev=`echo $netdev | awk '{print $3}' | head -n 1` >+ fi >+ >+ mkdir -p $MNTIMAGE/etc/network/ >+ handlenetdev $netdev >+ echo $netdev >> $MNTIMAGE/etc/iface_to_activate >+ done >+ >+ if [ -n "$CLUSTER_NODE_LIST" ]; then >+ bin="$bin /usr/sbin/fence_kdump_send" >+ fi >+ fi >+} >+ > if [ -z "$MNTIMAGE" -o -z "$IMAGE" ]; then > error "Error creating temporaries. Try again" > cleanup_and_exit 1 >@@ -1783,38 +1830,7 @@ if [ "$DEFAULT_ACTION" == "mount_root_run_init" ];then > add_rootfs > 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=$(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` >- >- if echo $netdev | grep -q ^local; then >- continue >- fi >- >- # add node ip address to node list >- CLUSTER_NODE_LIST="$CLUSTER_NODE_LIST $addr" >- >- if echo $netdev | grep -q via; then >- netdev=`echo $netdev | awk '{print $5}' | head -n 1` >- else >- netdev=`echo $netdev | awk '{print $3}' | head -n 1` >- fi >- >- mkdir -p $MNTIMAGE/etc/network/ >- handlenetdev $netdev >- echo $netdev >> $MNTIMAGE/etc/iface_to_activate >- done >- if [ -f "$FENCE_KDUMP_CONFIG" ]; then >- . "$FENCE_KDUMP_CONFIG" >- fi >- if [ -n "$CLUSTER_NODE_LIST" ]; then >- bin="$bin /usr/sbin/fence_kdump_send" >- fi >-fi >+setup_cluster_nodes_and_options > > # if no method was specified default to the currently booted filesystem > if [ -z "$USING_METHOD" ] >-- >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