Bug 1109545

Summary: Hosted-engine --deploy failed with message "Hosted Engine HA services are already running on this system"
Product: [Retired] oVirt Reporter: Artyom <alukiano>
Component: ovirt-hosted-engine-haAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5CC: bugs, dfediuck, didi, gklein, iheim, jmoskovc, lveyde, rbalakri, sbonazzo, stirabos, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: sla
Fixed In Version: ovirt-3.5.0-beta2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:24:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1036683, 1123006    
Attachments:
Description Flags
ovirt-hosted-engine-setup log none

Description Artyom 2014-06-15 07:39:50 UTC
Created attachment 908888 [details]
ovirt-hosted-engine-setup log

Description of problem:
I run hosted-engine --deploy on clean environment(yum erase -y vdsm*, reboot, yum install ovirt-hosted-engine-setup.noarch -y) and deployment failed with error message:
RuntimeError: Hosted Engine HA services are already running on this system. Hosted Engine cannot be deployed on a host already running those services.

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-1.2.0-0.0.master.20140605072127.git29ddea9.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Have clean host with 3.5 repos, install hosted-engine
2. Run hosted-engine --deploy
3.

Actual results:
Deployment failed with error message

Expected results:
Deployment success without any error messages

Additional info:
[root@#### ovirt-hosted-engine-setup]# service ovirt-ha-broker status
ovirt-ha-broker is stopped
[root@####-vdsc ovirt-hosted-engine-setup]# service ovirt-ha-agent status
ovirt-ha-agent is stopped

Comment 1 Sandro Bonazzola 2014-06-17 08:15:03 UTC
Looking at the logs, either "service ovirt-ha-agent status" return a wrong exit code or otopi has a bug. Since it seems to work for other services I tend to think that's a wrong exit code in ha-agent service file.
Moving to ha component.

Comment 2 Jiri Moskovcak 2014-07-04 06:39:31 UTC
(In reply to Sandro Bonazzola from comment #1)
> Looking at the logs, either "service ovirt-ha-agent status" return a wrong
> exit code or otopi has a bug. Since it seems to work for other services I
> tend to think that's a wrong exit code in ha-agent service file.
> Moving to ha component.

Comment 3 Sandro Bonazzola 2014-07-08 13:02:24 UTC
Referenced patch has been merged, shouldn't this be on MODIFIED?

Comment 4 Sandro Bonazzola 2014-07-22 07:57:35 UTC
*** Bug 1106382 has been marked as a duplicate of this bug. ***

Comment 5 Artyom 2014-07-25 05:57:56 UTC
Verified on ovirt-hosted-engine-setup-1.2.0-0.1.master.el6.noarch

Comment 6 Sandro Bonazzola 2014-10-17 12:24:12 UTC
oVirt 3.5 has been released and should include the fix for this issue.