Bug 837812

Summary: [rhevm] - Installer - service ovirt-engine status/stop' commands fail in case of unsuccessful service start
Product: Red Hat Enterprise Virtualization Manager Reporter: David Botzer <dbotzer>
Component: ovirt-engine-setupAssignee: Alex Lourie <alourie>
Status: CLOSED CURRENTRELEASE QA Contact: David Botzer <dbotzer>
Severity: high Docs Contact:
Priority: medium    
Version: 3.1.0CC: bazulay, dyasny, iheim, lpeer, mgoldboi, pstehlik, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: si12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:03:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
consoleLOG
none
engine-db-install
none
engine-setup none

Description David Botzer 2012-07-05 11:34:21 UTC
Created attachment 596384 [details]
consoleLOG

Description of problem:
Running rhevm-setup and choosing Remote DB option, causes the setup to fails
After which the service ovirt-engine cannot be started

Version-Release number of selected component (if applicable):
3.1/SI9.1

How reproducible:
Always

Steps to Reproduce:
1. I cleaned both Hosts
  rhevm - x.x.x.63 && remote DB server - x.x.x.12 
2. I installed new SI9.1, on the rhevm & remoteDB Hosts
3. I ran rhevm-setup on the REMOTEDB Host, than deleted the engine db & ran rhevm-
   cleanup In order to get the required credencials etc.
4. I ran rhevm-setup on the rhevm Host and selected Remote DB
  
Actual results:
rhevm-setup Fails And ovirt-engine service cannot be started when installing remoteDB setup

Expected results:
Should succeed installing rhevm & all services should be up & running

Additional info:
Installing:
Configuring Red Hat Enterprise Virtualization Manager... [ DONE ]
Creating CA...                                           [ DONE ]
Editing JBoss Configuration...                           [ DONE ]
Setting Database Configuration...                        [ DONE ]
Setting Database Security...                             [ DONE ]
Creating Database...                                     [ DONE ]
Updating the Default Data Center Storage Type...         [ DONE ]
Editing Red Hat Enterprise Virtualization Manager Configuration... [ DONE ]
Configuring Firewall (iptables)...                       [ DONE ]
Starting JBoss Service...                             [ ERROR ]
Error: Can't stop the ovirt-engine service
Please check log file /var/log/ovirt-eng

Comment 1 David Botzer 2012-07-05 11:36:07 UTC
Created attachment 596386 [details]
engine-db-install

Comment 2 David Botzer 2012-07-05 11:36:31 UTC
Created attachment 596387 [details]
engine-setup

Comment 3 Itamar Heim 2012-07-06 12:31:29 UTC
not sure if this is the intended use/flow, but lets make sure we document how to install with remote db from the remote db server perspective

Comment 4 Moran Goldboim 2012-07-10 13:45:51 UTC
flow seems to be a corner case - lowering priority.

Comment 5 David Botzer 2012-07-11 11:02:50 UTC
This issue is not related to remote setup nor standalone
Changing the headline,

Workaround - delete the /var/run/ovirt-engine.pid

Comment 6 Alex Lourie 2012-07-17 09:13:06 UTC
Fix is posted for review: http://gerrit.ovirt.org/#/c/6364/

Comment 8 David Botzer 2012-07-30 12:13:12 UTC
Fixed, 3.1/si12
setup works fine when remote db is clean (No previous DBs)
Fixed, 3.1/si12