Bug 1041565 - "Command '/sbin/service' failed to execute" while running rhsc-setup
Summary: "Command '/sbin/service' failed to execute" while running rhsc-setup
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: rhsc
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHGS 2.1.2
Assignee: Darshan
QA Contact: Dustin Tsang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 17:36 UTC by Dustin Tsang
Modified: 2015-07-13 04:39 UTC (History)
11 users (show)

Fixed In Version: cb12
Doc Type: Bug Fix
Doc Text:
Previously, a query which is not relevant to Red Hat Storage Console was displayed during Red Hat Storage Console setup. Now, with this update, only queries relevant to Red Hat Storage Console are displayed during setup.
Clone Of:
Environment:
Last Closed: 2014-02-25 08:08:45 UTC
Target Upstream Version:


Attachments (Terms of Use)
option entered/output from rhsc-setup (7.44 KB, text/plain)
2013-12-12 17:36 UTC, Dustin Tsang
no flags Details
ovirt-engine-setup.log (1.51 MB, text/x-log)
2013-12-12 17:39 UTC, Dustin Tsang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC

Description Dustin Tsang 2013-12-12 17:36:48 UTC
Created attachment 835947 [details]
option entered/output from rhsc-setup

Description of problem:

"Command '/sbin/service' failed to execute" while running rhsc-setup. After filling in all the options prompted in rhsc-setup with both proxy settings off, rhsc-setup fails. The error shown is "Command '/sbin/service' failed to execute".

In the installation log, /var/log/ovirt-engine/setup/ovirt-engine-setup-20131212114833.log, shows:

2013-12-12 11:51:26 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:446 execute-output: ('/sbin/initctl', 'status', 'ovirt-websocket-proxy') stderr:¬
initctl: Unknown job: ovirt-websocket-proxy¬
¬
2013-12-12 11:51:26 DEBUG otopi.plugins.otopi.services.rhel plugin.executeRaw:366 execute: ('/sbin/service', 'ovirt-websocket-proxy', 'stop'), executable='None', cwd='None', env=None¬
2013-12-12 11:51:26 DEBUG otopi.plugins.otopi.services.rhel plugin.executeRaw:383 execute-result: ('/sbin/service', 'ovirt-websocket-proxy', 'stop'), rc=1¬
2013-12-12 11:51:26 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:441 execute-output: ('/sbin/service', 'ovirt-websocket-proxy', 'stop') stdout:¬
¬                                                                                                                                                                                                              
¬
2013-12-12 11:51:26 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:446 execute-output: ('/sbin/service', 'ovirt-websocket-proxy', 'stop') stderr:¬
ovirt-websocket-proxy: unrecognized service¬
¬
2013-12-12 11:51:26 DEBUG otopi.context context._executeMethod:137 method exception¬
Traceback (most recent call last):¬
  File "/usr/lib/python2.6/site-packages/otopi/context.py", line 127, in _executeMethod¬
    method['method']()¬
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/config/websocket_proxy.py", line 270, in _closeup¬
    state=state,¬
  File "/usr/share/otopi/plugins/otopi/services/rhel.py", line 188, in state¬
    'start' if state else 'stop'¬
  File "/usr/share/otopi/plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand¬
    raiseOnError=raiseOnError¬
  File "/usr/lib/python2.6/site-packages/otopi/plugin.py", line 451, in execute¬
    command=args[0],¬
RuntimeError: Command '/sbin/service' failed to execute¬


Version-Release number of selected component (if applicable):
rhsc-cb11

How reproducible:
100% of the time.

Steps to Reproduce:
1. run the rhsc-setup command
2. for prompted options, enter all the values described in the log attached

Actual results:
[ ERROR ] Failed to execute stage 'Closing up': Command '/sbin/service' failed to execute
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20131212100315.log
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed

curl http://<ipaddress>
url: (7) couldn't connect to host

Expected results:

setup should succeed


Additional info:

workaround:
run rhsc-setup again.

Comment 1 Dustin Tsang 2013-12-12 17:39:00 UTC
Created attachment 835968 [details]
ovirt-engine-setup.log

Comment 3 Kanagaraj 2013-12-13 06:07:38 UTC
From the setup log

<snip>
2013-12-12 11:49:27 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:215 DIALOG:SEND                 Configure WebSocket Proxy on this machine? (Yes, No) [Yes]: 
</snip>

We need remove this question itself. 
Here the bug to remove the same bz#1040960

Comment 4 Dustin Tsang 2013-12-18 15:01:44 UTC
verified in rhsc-cb12

Comment 5 Shalaka 2014-01-07 05:08:48 UTC
Please review the edited DocText and confirm.

Comment 7 errata-xmlrpc 2014-02-25 08:08:45 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/RHEA-2014-0208.html


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