Bug 617247 - cman_tool - display meaningful translation of corosync exit code on exit
Summary: cman_tool - display meaningful translation of corosync exit code on exit
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cluster   
(Show other bugs)
Version: 6.1
Hardware: All Linux
Target Milestone: rc
: ---
Assignee: Fabio Massimo Di Nitto
QA Contact: Cluster QE
Keywords: RHELNAK
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-22 15:16 UTC by Jan Friesse
Modified: 2016-04-26 13:39 UTC (History)
7 users (show)

Fixed In Version: cluster-3.0.12-27.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-05-19 13:03:52 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Proposed patch (1.63 KB, patch)
2010-07-22 15:38 UTC, Jan Friesse
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0537 normal SHIPPED_LIVE cluster and gfs2-utils bug fix update 2011-05-18 17:57:40 UTC

Description Jan Friesse 2010-07-22 15:16:24 UTC
Description of problem:
If cman_tool join runs corosync and that exit with failure, something like "Error, reason code is 12" is displayed. It should be nice to display something more meaningful like openais in RHEL5 does.

Version-Release number of selected component (if applicable):
git stable3

How reproducible:

Steps to Reproduce (really example, same is with no memory error, ...):
1. rm -rf /var/lib/corosync
2. cman_tool join
Actual results:
corosync died: Error, reason code is 16

Expected results:
corosync died: Error, Required directory not present /var/lib/corosync.  Please create it.

Additional info:
There are other exit codes and none of them is handled correctly.

Main reason is because old aisexec returned negative return codes (or from other side, very big positive numbers ;) ). Current corosync return only (small) positive numbers.

Comment 2 Jan Friesse 2010-07-22 15:38:35 UTC
Created attachment 433735 [details]
Proposed patch

Patch handles corosync exit codes.

Comment 3 RHEL Product and Program Management 2010-07-22 15:38:58 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 4 Jan Friesse 2010-09-29 10:26:07 UTC
Patch is currently included in STABLE3 git tree as 2197cb026309d18b864dd2eb10754b095090db40

Comment 7 errata-xmlrpc 2011-05-19 13:03:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.