Bug 1254984
Summary: | Support resource name as an identifier in 'remote-node remove' | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Radek Steiger <rsteiger> | ||||||||
Component: | pcs | Assignee: | Ivan Devat <idevat> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||||||
Severity: | low | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | 7.2 | CC: | cfeist, cluster-maint, fdinitto, tlavigne, tojeline | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | pcs-0.9.158-2.el7 | Doc Type: | If docs needed, set a value | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2017-08-01 18:22:57 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
2015-08-19 11:33:24 UTC
Created attachment 1282160 [details]
proposed fix (part1)
Created attachment 1282161 [details]
proposed fix (part2)
Created attachment 1282162 [details]
proposed fix (part3)
After fix: [root@rh73-node1:~]# rpm -q pcs pcs-0.9.158-2.el7.x86_64 > a remote node by its name: [root@rh73-node1:~]# pcs cluster node add-remote rh73-node3 remote-node Sending remote node configuration files to 'rh73-node3' rh73-node3: successful distribution of the file 'pacemaker_remote authkey' Requesting start of service pacemaker_remote on 'rh73-node3' rh73-node3: successful run of 'pacemaker_remote enable' rh73-node3: successful run of 'pacemaker_remote start' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:48:04 2017 Last change: Fri May 26 13:47:55 2017 by root via cibadmin on rh73-node1 3 nodes configured 5 resources configured Online: [ rh73-node1 rh73-node2 ] RemoteOnline: [ remote-node ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node1 xvmNode3 (stonith:fence_xvm): Started rh73-node2 dummy (ocf::pacemaker:Dummy): Started remote-node remote-node (ocf::pacemaker:remote): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled [root@rh73-node1:~]# pcs cluster node remove-remote remote-node Attempting to stop: remote-node...Stopped Requesting stop of service pacemaker_remote on 'remote-node' remote-node: successful run of 'pacemaker_remote disable' remote-node: successful run of 'pacemaker_remote stop' Requesting remove remote node files from 'remote-node' remote-node: successful removal of the file 'pacemaker_remote authkey' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:48:51 2017 Last change: Fri May 26 13:48:45 2017 by root via cibadmin on rh73-node1 2 nodes configured 4 resources configured Online: [ rh73-node1 rh73-node2 ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node1 xvmNode3 (stonith:fence_xvm): Started rh73-node2 dummy (ocf::pacemaker:Dummy): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled > a remote node by its host: [root@rh73-node1:~]# pcs cluster node add-remote rh73-node3 remote-node Sending remote node configuration files to 'rh73-node3' rh73-node3: successful distribution of the file 'pacemaker_remote authkey' Requesting start of service pacemaker_remote on 'rh73-node3' rh73-node3: successful run of 'pacemaker_remote enable' rh73-node3: successful run of 'pacemaker_remote start' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:49:10 2017 Last change: Fri May 26 13:48:59 2017 by root via cibadmin on rh73-node1 3 nodes configured 5 resources configured Online: [ rh73-node1 rh73-node2 ] RemoteOnline: [ remote-node ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node1 xvmNode3 (stonith:fence_xvm): Started rh73-node2 dummy (ocf::pacemaker:Dummy): Started remote-node remote-node (ocf::pacemaker:remote): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled [root@rh73-node1:~]# pcs cluster node remove-remote rh73-node3 Attempting to stop: remote-node...Stopped Requesting stop of service pacemaker_remote on 'remote-node' remote-node: successful run of 'pacemaker_remote disable' remote-node: successful run of 'pacemaker_remote stop' Requesting remove remote node files from 'remote-node' remote-node: successful removal of the file 'pacemaker_remote authkey' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:49:46 2017 Last change: Fri May 26 13:49:33 2017 by root via cibadmin on rh73-node1 2 nodes configured 4 resources configured Online: [ rh73-node1 rh73-node2 ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node1 xvmNode3 (stonith:fence_xvm): Started rh73-node2 dummy (ocf::pacemaker:Dummy): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled > a guest node by its resource: [root@rh73-node1:~]# pcs cluster node add-guest guest-node dummy-guest remote-addr=rh73-node3 Sending remote node configuration files to 'rh73-node3' rh73-node3: successful distribution of the file 'pacemaker_remote authkey' Requesting start of service pacemaker_remote on 'rh73-node3' rh73-node3: successful run of 'pacemaker_remote enable' rh73-node3: successful run of 'pacemaker_remote start' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:54:28 2017 Last change: Fri May 26 13:54:20 2017 by root via cibadmin on rh73-node1 3 nodes configured 6 resources configured Online: [ rh73-node1 rh73-node2 ] GuestOnline: [ guest-node@rh73-node1 ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node2 xvmNode3 (stonith:fence_xvm): Started rh73-node2 dummy (ocf::pacemaker:Dummy): Started guest-node dummy-guest (ocf::pacemaker:Dummy): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled [root@rh73-node1:~]# pcs cluster node remove-guest dummy-guest Requesting stop of service pacemaker_remote on 'guest-node' guest-node: successful run of 'pacemaker_remote disable' guest-node: successful run of 'pacemaker_remote stop' Requesting remove remote node files from 'guest-node' guest-node: successful removal of the file 'pacemaker_remote authkey' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:55:23 2017 Last change: Fri May 26 13:55:15 2017 by root via cibadmin on rh73-node1 2 nodes configured 5 resources configured Online: [ rh73-node1 rh73-node2 ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node1 xvmNode3 (stonith:fence_xvm): Started rh73-node1 dummy (ocf::pacemaker:Dummy): Started rh73-node2 dummy-guest (ocf::pacemaker:Dummy): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled > a guest node by its name: root@rh73-node1:~]# pcs cluster node add-guest guest-node dummy-guest remote-addr=rh73-node3 Sending remote node configuration files to 'rh73-node3' rh73-node3: successful distribution of the file 'pacemaker_remote authkey' Requesting start of service pacemaker_remote on 'rh73-node3' rh73-node3: successful run of 'pacemaker_remote enable' rh73-node3: successful run of 'pacemaker_remote start' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:55:53 2017 Last change: Fri May 26 13:55:51 2017 by root via cibadmin on rh73-node1 3 nodes configured 6 resources configured Online: [ rh73-node1 rh73-node2 ] GuestOnline: [ guest-node@rh73-node1 ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node2 xvmNode3 (stonith:fence_xvm): Started rh73-node1 dummy (ocf::pacemaker:Dummy): Started guest-node dummy-guest (ocf::pacemaker:Dummy): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled [root@rh73-node1:~]# pcs cluster node remove-guest guest-node Requesting stop of service pacemaker_remote on 'guest-node' guest-node: successful run of 'pacemaker_remote disable' guest-node: successful run of 'pacemaker_remote stop' Requesting remove remote node files from 'guest-node' guest-node: successful removal of the file 'pacemaker_remote authkey' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:57:16 2017 Last change: Fri May 26 13:57:10 2017 by root via cibadmin on rh73-node1 2 nodes configured 5 resources configured Online: [ rh73-node1 rh73-node2 ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node1 xvmNode3 (stonith:fence_xvm): Started rh73-node1 dummy (ocf::pacemaker:Dummy): Started rh73-node2 dummy-guest (ocf::pacemaker:Dummy): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled > a guest node by its host: [root@rh73-node1:~]# pcs cluster node add-guest guest-node dummy-guest remote-addr=rh73-node3 Sending remote node configuration files to 'rh73-node3' rh73-node3: successful distribution of the file 'pacemaker_remote authkey' Requesting start of service pacemaker_remote on 'rh73-node3' rh73-node3: successful run of 'pacemaker_remote enable' rh73-node3: successful run of 'pacemaker_remote start' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:57:42 2017 Last change: Fri May 26 13:57:41 2017 by root via cibadmin on rh73-node1 3 nodes configured 6 resources configured Online: [ rh73-node1 rh73-node2 ] GuestOnline: [ guest-node@rh73-node1 ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node2 xvmNode3 (stonith:fence_xvm): Started rh73-node1 dummy (ocf::pacemaker:Dummy): Stopped dummy-guest (ocf::pacemaker:Dummy): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled [root@rh73-node1:~]# pcs cluster node remove-guest rh73-node3 Requesting stop of service pacemaker_remote on 'guest-node' guest-node: successful run of 'pacemaker_remote disable' guest-node: successful run of 'pacemaker_remote stop' Requesting remove remote node files from 'guest-node' guest-node: successful removal of the file 'pacemaker_remote authkey' [root@rh73-node1:~]# pcs status Cluster name: rhel73 Stack: corosync Current DC: rh73-node2 (version 1.1.16-9.el7-94ff4df) - partition with quorum Last updated: Fri May 26 13:57:57 2017 Last change: Fri May 26 13:57:54 2017 by root via cibadmin on rh73-node1 2 nodes configured 5 resources configured Online: [ rh73-node1 rh73-node2 ] Full list of resources: xvmNode1 (stonith:fence_xvm): Started rh73-node2 xvmNode2 (stonith:fence_xvm): Started rh73-node1 xvmNode3 (stonith:fence_xvm): Started rh73-node1 dummy (ocf::pacemaker:Dummy): Started rh73-node2 dummy-guest (ocf::pacemaker:Dummy): Started rh73-node1 Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled 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://access.redhat.com/errata/RHBA-2017:1958 |