Bug 2123326
| Summary: | 'pcs status' should show why resource is not running | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | michal novacek <mnovacek> |
| Component: | pcs | Assignee: | Tomas Jelinek <tojeline> |
| Status: | NEW --- | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | cluster-maint, idevat, mlisik, mpospisi, omular, phagara, tojeline |
| Target Milestone: | rc | Flags: | tojeline:
needinfo?
(mnovacek) |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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: | |||
|
Description
michal novacek
2022-09-01 12:14:20 UTC
FWIW, there is a `crm_resource --why` pacemaker command which can detect and report the reason(s) why a resource is not running, in some very specific cases (target role == stopped, unmanaged, locked, stopped due to node health attribute [1]). This was added in bz#1298581. AFAIK, it is not currently integrated into pcs' status output, but it sure would be nice! [1] https://github.com/ClusterLabs/pacemaker/blob/344b73b73d1097464744ac75f471c77276df0394/tools/crm_resource_runtime.c#L972-L983 If you really want this info to be present in 'pcs status' output, then it needs to be done in pacemaker. If you are fine with adding a pcs command to expose the `crm_resource --why` functionality, then that can be done in pcs. Let us know which variants are you asking for. Thanks. |