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 876256 Details for
Bug 1078134
[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]
Patch 5/5
0005-Add-support-for-fence_kdump-in-generic-cluster.patch (text/plain), 3.22 KB, created by
Martin Perina
on 2014-03-19 09:03:50 UTC
(
hide
)
Description:
Patch 5/5
Filename:
MIME Type:
Creator:
Martin Perina
Created:
2014-03-19 09:03:50 UTC
Size:
3.22 KB
patch
obsolete
>From a61b37dbf8585be72656620f297dcc8d3c00186d Mon Sep 17 00:00:00 2001 >From: Martin Perina <mperina@redhat.com> >Date: Fri, 14 Mar 2014 09:36:53 +0100 >Subject: [PATCH 5/5] Add support for fence_kdump in generic cluster > >fence_kdump is configured in generic cluster if: > > 1) /usr/libexec/fence_kdump_send exists and is executable > 2) /etc/fence_kdump_nodes exists > >Bug-Url: https://bugzilla.redhat.com/1078134 >Signed-off-by: Martin Perina <mperina@redhat.com> >--- > dracut-module-setup.sh | 31 ++++++++++++++++++++----------- > kdump-lib.sh | 7 +++++++ > kdumpctl | 4 ++++ > 3 files changed, 31 insertions(+), 11 deletions(-) > >diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh >index cfdf9e7..25ebc99 100755 >--- a/dracut-module-setup.sh >+++ b/dracut-module-setup.sh >@@ -20,7 +20,7 @@ depends() { > _dep="$_dep drm" > fi > >- if is_pcs_fence_kdump; then >+ if [ is_pcs_fence_kdump -o is_generic_fence_kdump ]; then > _dep="$_dep network" > fi > >@@ -434,18 +434,27 @@ get_list_of_nodes_to_notify() { > # also preserve '[node list]' for 2nd kernel in $FENCE_KDUMP_NODES > kdump_check_fence_kdump () { > local nodes >- is_pcs_fence_kdump || return 1 > >- # get cluster nodes from cluster cib, get interface and ip address >- nodelist=`pcs cluster cib | xmllint --xpath "/cib/status/node_state/@uname" -` >+ if is_pcs_fence_kdump; then >+ # get cluster nodes from cluster cib, get interface and ip address >+ nodelist=`pcs cluster cib | xmllint --xpath "/cib/status/node_state/@uname" -` >+ >+ # nodelist is formed as 'uname="node1" uname="node2" ... uname="nodeX"' >+ # we need to convert each to node1, node2 ... nodeX in each iteration >+ for node in ${nodelist}; do >+ # convert $node from 'uname="nodeX"' to 'nodeX' >+ eval $node >+ nodes="$nodes $uname" >+ done > >- # nodelist is formed as 'uname="node1" uname="node2" ... uname="nodeX"' >- # we need to convert each to node1, node2 ... nodeX in each iteration >- for node in ${nodelist}; do >- # convert $node from 'uname="nodeX"' to 'nodeX' >- eval $node >- nodes="$nodes $uname" >- done >+ elif is_generic_fence_kdump; then >+ # fence_kdump is configured manually >+ read nodes < $FENCE_KDUMP_NODES >+ >+ else >+ # fence kdump is not configured >+ return 1 >+ fi > > nodes=$( get_list_of_nodes_to_notify "$nodes" ) > >diff --git a/kdump-lib.sh b/kdump-lib.sh >index 96a6c12..d08c3ff 100755 >--- a/kdump-lib.sh >+++ b/kdump-lib.sh >@@ -39,6 +39,13 @@ is_pcs_fence_kdump() > (pcs cluster cib | grep -q 'type="fence_kdump"') &> /dev/null || return 1 > } > >+# Check if fence_kdump is configured in generic cluster >+is_generic_fence_kdump() >+{ >+ [ -x $FENCE_KDUMP_SEND ] || return 1 >+ [ -f $FENCE_KDUMP_NODES ] || return 1 >+} >+ > get_user_configured_dump_disk() > { > local _target >diff --git a/kdumpctl b/kdumpctl >index 2199c0c..f1f5e4f 100755 >--- a/kdumpctl >+++ b/kdumpctl >@@ -253,6 +253,10 @@ function check_rebuild() > files="$files $FENCE_KDUMP_CONFIG" > fi > >+ if is_generic_fence_kdump; then >+ files="$files $FENCE_KDUMP_NODES" >+ fi >+ > check_exist "$files" && check_executable "$EXTRA_BINS" > [ $? -ne 0 ] && return 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 1078134
:
876252
|
876253
|
876254
|
876255
|
876256
|
879449
|
879461
|
879464
|
879465
|
879466
|
879467
|
879468
|
881288
|
881289
|
881290
|
881291
|
881292
|
881293
|
882135
|
882136
|
882137
|
882138
|
882140
|
882141
|
882142