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

[Question] About "cluster health" command. #175

Open
HideoYamauchi opened this issue Dec 21, 2016 · 5 comments
Open

[Question] About "cluster health" command. #175

HideoYamauchi opened this issue Dec 21, 2016 · 5 comments
Assignees

Comments

@HideoYamauchi
Copy link
Contributor

HideoYamauchi commented Dec 21, 2016

Hi All,

After a cluster started in a single node, I executed "cluster health" command.

[root@rh73-01-crmsh ~]# crm_mon -1 -Af
Stack: corosync
Current DC: rh73-01-crmsh (version 1.1.15-11.el7_3.2-e174ec8) - partition with quorum
Last updated: Wed Dec 21 17:58:27 2016          
Last change: Mon Dec 19 22:14:39 2016 by hacluster via crmd on rh73-01-crmsh

1 node and 0 resources configured

Online: [ rh73-01-crmsh ]

No active resources


Node Attributes:
* Node rh73-01-crmsh:

Migration Summary:
* Node rh73-01-crmsh:

[root@rh73-01-crmsh ~]# crm --version
2.1.9 (Build unknown)

[root@rh73-01-crmsh ~]# rpm -qa |grep pssh
pssh-2.3.1-4.1.x86_64
python-pssh-2.3.1-4.1.x86_64

[root@rh73-01-crmsh ~]# crm cluster health
INFO: Check the health of the cluster
INFO: Nodes: rh73-01-crmsh
OK: Collect cluster information
OK: Run HA health check
OK: Report cluster state
Processing collected information...
INFO: Cluster report:
Diff hostcache... no /tmp/.hb_report.workdir.8GSFbc/health-report/*/hostcache :/
Diff members.txt... OK
Diff cib.xml... OK
Diff crm_mon.txt... OK
Diff corosync.conf... OK
Diff logd.cf... no /tmp/.hb_report.workdir.8GSFbc/health-report/*/logd.cf :/
Diff sysinfo.txt... OK

Log patterns:

WARNING: rh73-01-crmsh: No log rotation configured for corosync.conf

After having executed a command, "health-report" was made nowhere.

[root@rh73-01-crmsh ~]# find / -name health-report -print

After having executed a command with d option, "health-report" was made.
Is the difference in this movement right?

[root@rh73-01-crmsh ~]# crm -d cluster health
DEBUG: pacemaker version: [err: ][out: CRM Version: 1.1.15-11.el7_3.2 (e174ec8)]
DEBUG: found pacemaker version: 1.1.15-11.el7_3.2
INFO: Check the health of the cluster
INFO: Nodes: rh73-01-crmsh
(snip)
crm_script(call): ['crm', 'report', '-f', '2016-12-20 18:01', '-D', '-Z', 'health-report']
crm_script(call): ['tar', 'xjf', 'health-report.tar.bz2']

[root@rh73-01-crmsh ~]# find / -name health-report -print
/tmp/crm-tmp-1482310893.74-184672191871152/health-report

Best Regards,
Hideo Yamauchi.

@krig
Copy link
Contributor

krig commented Jan 30, 2017

With the -d flag, the temporary report is retained. Maybe it should be saved regardless.

@HideoYamauchi
Copy link
Contributor Author

Hi Kristoffer,

Thank you for comment.

Okay!

We may use this command in the future.
In the version of other crmsh, is this problem revised?

Best Regards,
Hideo Yamauchi.

@krig
Copy link
Contributor

krig commented Jan 30, 2017

No, not yet! I will look at fixing this for the next release.

Thank you!

@krig krig self-assigned this Jan 30, 2017
@HideoYamauchi
Copy link
Contributor Author

Hi Kristoffer,

No, not yet! I will look at fixing this for the next release.

Okay!

Best Regards,
Hideo Yamauchi.

liangxin1300 added a commit to liangxin1300/crmsh that referenced this issue Jul 7, 2017
    in crm_clean.py, if the clean request came from scripts:health,
    delete all except health-report

    in report.py, print workdir after all things done

    this came from crmsh github issue ClusterLabs#175
@HideoYamauchi
Copy link
Contributor Author

Hi All,

Thank you for fixing.
We will wait for the next release and check the fix.

Many thanks!
Hideo Yamauchi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants