Red Hat Bugzilla – Bug 1033162
rg_test has exit code issues
Last modified: 2015-11-15 20:15:05 EST
Description of problem:
rg_test has exit code issues.
rg_test (part of rgmanager) does not handle exit code correctly.
[root@dhcp-lab-x tmp]# rg_test test /etc/cluster/cluster.conf
Running in test mode.
I/O warning : failed to load external entity "/etc/cluster/cluster.conf"
Error parsing /etc/cluster/cluster.conf
[root@dhcp-lab-x tmp]# echo $?
In this particular case exit code of 0 is a defect.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rg_test test /etc/cluster/cluster.conf (when config file does not exist)
2. echo $?
Exit code does not reflect tool operation status.
Exit code should reflect tool operation status.
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
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.