Description of problem: v7 server wrong exit codes and errors when v7-server not installed Version-Release number of selected component (if applicable): v7-1.5-7.el6.noarch How reproducible: 100% Steps to Reproduce: v7 server start echo $? v7 server stop echo $? Actual results: if v7-server is installed, no error reported, only exit code is 1 [root@hp-xw6400-02 ~]# v7 server start v7-server-1.5-7.el6.noarch network test server start: Warning: SELinux is in enforcing mode - it must be set to "permissive" for certification testing. Starting lmbench services... done. Starting httpd: [ OK ] kdump test server start: Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] Starting v7 daemon [root@hp-xw6400-02 ~]# echo $? 1 [root@hp-xw6400-02 ~]# v7 server stop v7-server-1.5-7.el6.noarch network test server stop: Stopping lmbench services... done. Stopping httpd: [ OK ] kdump test server stop: Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] Stopping v7 daemon [root@hp-xw6400-02 ~]# echo $? 1 if v7-server not installed, server seems to start/stop, but following errors reported package v7-server is not installed Error: the v7-server package is not installed. Would you like to install it now? (y|n) n response: n network test server start: Warning: SELinux is in enforcing mode - it must be set to "permissive" for certification testing. Starting lmbench services... done. Starting httpd: [ OK ] kdump test server start: Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] The v7 server daemon is already started [root@hp-xw6400-02 ~]# v7 server stop package v7-server is not installed Error: the v7-server package is not installed. Would you like to install it now? (y|n) n response: n network test server stop: Stopping lmbench services... done. Stopping httpd: [ OK ] kdump test server stop: Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] Stopping v7 daemon Error: could not stop daemon: "kill 2489" has output on stderr Expected results: exit code is 0 on successful start/stop Additional info: Is desired to offer user installation on server stop?
Created attachment 570413 [details] network test patch to fix start/stop server return values
Created attachment 570414 [details] kdump patch to fix start/stop server return values
Created attachment 570416 [details] hardware test patch fixing server start/stop return values
Reproduced in v7-1.5-8.el6.noarch and verified in v7-1.5-9.el6.noarch.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: no tech note needed.
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. http://rhn.redhat.com/errata/RHBA-2012-0711.html