Bug 1710750
Summary: | Catch and translate LibraryError exceptions | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Tomas Jelinek <tojeline> | ||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.6 | CC: | cfeist, cluster-maint, idevat, mmazoure, omular, tojeline | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | pcs-0.9.168-1.el7 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
LibraryError exceptions which pcs uses for passing errors internally were not always caught and processed to human-readable form.
Consequence:
Pcs crashed with a traceback.
Fix:
Catch LibraryError exceptions at the top level and translate them.
Result:
Pcs exits gracefully with a readable error message.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-03-31 19:09:37 UTC | 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: | |||||||
Attachments: |
|
Description
Tomas Jelinek
2019-05-16 08:57:33 UTC
Created attachment 1585679 [details] proposed fix Test is in comment 0. After Fix: [kid76 ~] $ rpm -q pcs pcs-0.9.168-1.el7.x86_64 [kid76 ~] $ mv /usr/sbin/crm_mon /usr/sbin/crm_mon_ [kid76 ~] $ pcs status Error: unable to run command /usr/sbin/crm_mon --one-shot --inactive: No such file or directory [kid76 ~] $ mv /usr/sbin/crm_mon_ /usr/sbin/crm_mon Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0996 |