Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corosync membership parsing with qdevice enabled #170

Closed
efoft opened this issue Jul 16, 2020 · 3 comments · Fixed by #172
Closed

corosync membership parsing with qdevice enabled #170

efoft opened this issue Jul 16, 2020 · 3 comments · Fixed by #172
Assignees
Labels
bug Something isn't working prio/medium short-term

Comments

@efoft
Copy link

efoft commented Jul 16, 2020

Same problem as in #154 but with corosync-2.4.5-4.el7.x86_64 on CentOS 7

Jul 16 13:01:57 nfs01 ha_cluster_exporter: time="2020-07-16T13:01:57+03:00" level=warning msg="'corosync' collector scrape failed: corosync parser error: could not parse members in corosync-quorumtool output: could not find membership information"

The output of corosync-quorumtool now looks like:

Quorum information
------------------
Date:             Thu Jul 16 12:40:44 2020
Quorum provider:  corosync_votequorum
Nodes:            2
Node ID:          1
Ring ID:          1/139
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 nfs01 (local)
         2          1    A,V,NMW nfs02
         0          1            Qdevice

See 'Qdevice Name' not 'Name' in column titles under Membership information.

@stefanotorresi
Copy link
Member

stefanotorresi commented Jul 16, 2020

@efoft I guess this only applies when a Qdevice is being used?
/cc @gao-yan @nick-wang

@stefanotorresi
Copy link
Member

stefanotorresi commented Jul 16, 2020

okay, so, it turns out that using the -p flag on corosync-quorumtool and adding the Qdevice column to the parser should do the trick, without worrying too much about supported corosync versions, since this is actually quite an old functionality and we should've used it from the start.

@stefanotorresi stefanotorresi added bug Something isn't working prio/high prio/medium and removed prio/high labels Jul 16, 2020
@stefanotorresi stefanotorresi changed the title corosync membership parsing with corosync-2.4.5 corosync membership parsing with qdevice enabled Jul 17, 2020
@MalloZup MalloZup self-assigned this Aug 5, 2020
@MalloZup
Copy link
Contributor

MalloZup commented Aug 5, 2020

working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working prio/medium short-term
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants