When the command "pcs cluster status" is ran an error occurs: "File "/usr/lib/python2.7/site-packages/pcs/utils.py", line 1877, in getCorosyncNodesID cs_nodes[node_list_node_mapping[m.group(1)]] = m.group(2) KeyError: '2'"
Issue
- When the command
pcs cluster statusis ran an error occurs:
# pcs cluster status
Cluster Status:
Last updated: Wed Jul 27 16:39:11 2016
Last change: Wed Jul 27 16:35:55 2016
Stack: corosync
Current DC: NONE
4 Nodes configured
0 Resources configured
PCSD Status:
Traceback (most recent call last):
File "/usr/sbin/pcs", line 153, in <module>
main(sys.argv[1:])
File "/usr/sbin/pcs", line 135, in main
cluster.cluster_cmd(argv)
File "/usr/lib/python2.7/site-packages/pcs/cluster.py", line 47, in cluster_cmd
cluster_gui_status([],True)
File "/usr/lib/python2.7/site-packages/pcs/cluster.py", line 217, in cluster_gui_status
bad_nodes = check_nodes(nodes, " ")
File "/usr/lib/python2.7/site-packages/pcs/cluster.py", line 272, in check_nodes
cs_nodes = utils.getCorosyncNodesID(True)
File "/usr/lib/python2.7/site-packages/pcs/utils.py", line 1877, in getCorosyncNodesID
cs_nodes[node_list_node_mapping[m.group(1)]] = m.group(2)
KeyError: '2'
Environment
- Red Hat Enterprise Linux Server 6 (with the High Availability Add Ons)
- Red Hat Enterprise Linux Server 7 (with the High Availability Add Ons)
pacemakercluster
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
