Bug 799897 - v7 server starts/stops returns 1
Summary: v7 server starts/stops returns 1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (tests)
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: Petr Beňas
URL:
Whiteboard:
Depends On:
Blocks: 767775
TreeView+ depends on / blocked
 
Reported: 2012-03-05 11:18 UTC by Petr Beňas
Modified: 2015-01-04 23:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
no tech note needed.
Clone Of:
Environment:
Last Closed: 2012-06-05 21:37:13 UTC
Embargoed:


Attachments (Terms of Use)
network test patch to fix start/stop server return values (2.08 KB, patch)
2012-03-15 19:18 UTC, Greg Nichols
no flags Details | Diff
kdump patch to fix start/stop server return values (1.77 KB, patch)
2012-03-15 19:19 UTC, Greg Nichols
no flags Details | Diff
hardware test patch fixing server start/stop return values (721 bytes, patch)
2012-03-15 19:21 UTC, Greg Nichols
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0711 0 normal SHIPPED_LIVE v7 bug fix and enhancement update 2012-06-06 01:26:37 UTC

Description Petr Beňas 2012-03-05 11:18:35 UTC
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?

Comment 1 Greg Nichols 2012-03-15 19:18:56 UTC
Created attachment 570413 [details]
network test patch to fix start/stop server return values

Comment 2 Greg Nichols 2012-03-15 19:19:59 UTC
Created attachment 570414 [details]
kdump patch to fix start/stop server return values

Comment 3 Greg Nichols 2012-03-15 19:21:28 UTC
Created attachment 570416 [details]
hardware test patch fixing server start/stop return values

Comment 7 Petr Beňas 2012-03-29 08:36:36 UTC
Reproduced in v7-1.5-8.el6.noarch and verified in v7-1.5-9.el6.noarch.

Comment 8 Caspar Zhang 2012-06-04 07:55:00 UTC
    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.

Comment 10 errata-xmlrpc 2012-06-05 21:37:13 UTC
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


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