In RHEV-M 3.3, engine-setup fails with error "Failed to execute stage 'Closing up': Command '/sbin/service' failed to execute".

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Virtualization 3.3

Issue

  • In RHEV-M 3.3, engine-setup fails with error "Failed to execute stage 'Closing up': Command '/sbin/service' failed to execute".
  • Error in engine-setup
[ 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-20140722125749.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140722131718-upgrade.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of upgrade failed

Resolution

  1. Update 'jboss-eap6' packages by running below command:
# yum groupupdate jboss-eap6

2. Restart ovirt-engine service:

# service ovirt-engine restart

Diagnostic Steps

  • Check status of ovirt-engine service, if it is running or not:
# service ovirt-engine start 
Starting oVirt Engine:                                     [  OK  ]

# service ovirt-engine status
ovirt-engine dead but pid file exists
  • In messages:
Jul 22 16:51:42 xyz 2014-07-22 16:51:42,595 ovirt-engine: ERROR run:502 Error: process terminated with status code 1
  • In console.log:
org.jboss.modules.ModuleNotFoundException: Module org.jboss.as.standalone:main is not found in local module loader @2fecdb1b (roots: /usr/share/ovirt-engine/modules
   at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126)
   at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)
   at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)
   at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)
   at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:204)
   at org.jboss.modules.Main.main(Main.java:262)
  • In upgrade logs:
2014-07-22 13:17:07 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:446 execute-output: ('/sbin/initctl', 'status', 'ovirt-engine-dwhd') stderr:
initctl: Unknown job: ovirt-engine-dwhd

2014-07-22 13:17:07 DEBUG otopi.plugins.otopi.services.rhel plugin.executeRaw:366 execute: ('/sbin/service', 'ovirt-engine-dwhd', 'start'), executable='None', cwd='None', env=None
2014-07-22 13:17:17 DEBUG otopi.plugins.otopi.services.rhel plugin.executeRaw:383 execute-result: ('/sbin/service', 'ovirt-engine-dwhd', 'start'), rc=1
2014-07-22 13:17:17 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:441 execute-output: ('/sbin/service', 'ovirt-engine-dwhd', 'start') stdout:
Starting ovirt-engine-dwhd: at Tue Jul 22 13:17:07 CDT 2014[FAILED]

2014-07-22 13:17:17 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:446 execute-output: ('/sbin/service', 'ovirt-engine-dwhd', 'start') stderr:


2014-07-22 13:17:17 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-common/system/hostile_services.py", line 107, in _closeup
    state=True
  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
2014-07-22 13:17:17 ERROR otopi.context context._executeMethod:146 Failed to execute stage 'Closing up': Command '/sbin/service' failed to execute
....
2014-07-22 13:17:18 DEBUG otopi.context context.dumpEnvironment:456 ENV BASE/exceptionInfo=list:'[(<type 'exceptions.RuntimeError'>, RuntimeError("Command '/sbin/service' failed to execute",), <traceback object at 0x2099a28>)]'

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.