PcsQuorumStatus - Commands pcs quorum status

class insights.parsers.pcs_quorum_status.PcsQuorumStatus(context, extra_bad_lines=None)[source]

Bases: insights.core.CommandParser

Class for parsing the output of pcs quorum status command.

Typical output of the command is:

Quorum information
------------------
Date:             Wed Jun 29 13:17:02 2016
Quorum provider:  corosync_votequorum
Nodes:            2
Node ID:          1
Ring ID:          1/8272
Quorate:          Yes

Votequorum information
----------------------
Expected votes:   3
Highest expected: 3
Total votes:      3
Quorum:           2
Flags:            Quorate Qdevice

Membership information
----------------------
    Nodeid      Votes    Qdevice Name
         1          1    A,V,NMW node1 (local)
         2          1    A,V,NMW node2
         0          1            Qdevice
quorum_info

Dicts where keys are the feature name of quorum information and values are the corresponding feature value.

Type

dict

votequorum_info

Dicts where keys are the feature name of votequorum information and values are the corresponding feature value.

Type

dict

membership_info

List of dicts where keys are the feature name of each node and values are the corresponding feature value.

Type

list

Raises

Examples

>>> type(pcs_quorum_status)
<class 'insights.parsers.pcs_quorum_status.PcsQuorumStatus'>
>>> pcs_quorum_status.quorum_info['Node ID']
'1'
>>> pcs_quorum_status.votequorum_info['Expected votes']
'3'
>>> pcs_quorum_status.membership_info[0]['Name']
'node1 (local)'
parse_content(content)[source]

This method must be implemented by classes based on this class.