Bug 1319070
Summary: | adding a node on RHEL6 may crash due to hardcoded fencing names in pcs | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Radek Steiger <rsteiger> | ||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.8 | CC: | cfeist, cluster-maint, idevat, omular, tojeline | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | pcs-0.9.154-1.el6 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
User adds a node into a cluster.
Consequence:
Pcs exits with an error leaving the cluster configuration in an inconsistent state (the node is half added) if the cluster configuration has been updated out of pcs scope and fence devices has been changed.
Fix:
Read the configuration and make sure a required fence device exists in the configuration, create it if it does not.
Result:
The node is added successfully.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-03-21 11:03:21 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Radek Steiger
2016-03-18 15:11:39 UTC
Created attachment 1194217 [details]
proposed fix
Setup:
> modify /etc/cluster/cluster.conf:
> in tag method attribute name: pcmk-method -> mymethod
> in tag device attribute name: pcmk_redirect -> mypcmk
> in tag fencdevice attribute name: pcmk_redirect -> mypcmk
> something like:
<cluster config_version="23" name="devcluster6">
<fence_daemon/>
<clusternodes>
<clusternode name="vm-rhel67-1" nodeid="1">
<fence>
<method name="mymethod">
<device name="mypcmk" port="vm-rhel67-1"/>
</method>
</fence>
</clusternode>
<clusternode name="vm-rhel67-2" nodeid="2">
<fence>
<method name="mymethod">
<device name="mypcmk" port="vm-rhel67-2"/>
</method>
</fence>
</clusternode>
<clusternode name="vm-rhel67-3" nodeid="3">
<fence>
<method name="pcmk-method"/>
</fence>
</clusternode>
</clusternodes>
<cman broadcast="no" expected_votes="1" transport="udp" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_pcmk" name="mypcmk"/>
</fencedevices>
<rm>
<failoverdomains/>
<resources/>
</rm>
</cluster>
Before Fix:
[vm-rhel67-1 ~] $ rpm -q pcs
pcs-0.9.148-7.el6_8.1.x86_64
[vm-rhel67-1 ~] $ pcs status | grep Online:
Online: [ vm-rhel67-1 vm-rhel67-2 ]
[vm-rhel67-1 ~] $ pcs status |grep "2 nodes"
2 nodes and 1 resource configured
[vm-rhel67-1 ~] $ pcs cluster localnode add vm-rhel67-3
Fence device 'pcmk-redirect' not found.
Error: error adding fence instance: vm-rhel67-3
After Fix:
[vm-rhel67-1 ~] $ rpm -q pcs
pcs-0.9.154-1.el6.x86_64
[vm-rhel67-1 ~] $ pcs status | grep Online:
Online: [ vm-rhel67-1 vm-rhel67-2 ]
[vm-rhel67-1 ~] $ pcs status |grep "2 nodes"
2 nodes and 1 resource configured
[vm-rhel67-1 ~] $ pcs cluster localnode add vm-rhel67-3
vm-rhel67-3: successfully added!
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0707.html |