Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1205792

Summary: ovirt-ha-agent and ovirt-ha-broker don't handle properly service dependencies
Product: [Retired] oVirt Reporter: Sandro Bonazzola <sbonazzo>
Component: ovirt-hosted-engine-haAssignee: Doron Fediuck <dfediuck>
Status: CLOSED WORKSFORME QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: high    
Version: 3.6CC: alonbl, bugs, ecohen, gklein, lsurette, rbalakri, tsaban, yeylon
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-30 10:55:46 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: 1200469    

Description Sandro Bonazzola 2015-03-25 15:48:38 UTC
ovirt-ha-agent and ovirt-ha-broker doesn't handle properly service dependencies.

It should be needed to start only the root service (I guess ovirt-ha-agent), that should depend on the other service.

Once upgraded the %post should restart service if harmless and should be.

Currently it seems that only install dependencies are handled:

 [Install]
 WantedBy=multi-user.target
 Also=ovirt-ha-broker.service

Comment 1 Tomer Saban 2015-03-30 10:30:49 UTC
From what I see in the code the agent does depend on the broker.

hosted-engine-ha/initscripts/ovirt-ha-agent.service[3]:
"
Wants=ovirt-ha-broker.service
"

And according to the systemd.unit man page: 

Wants=
This is the recommended way to hook start-up of one unit to the start-up of another unit.


So Wants= create dependencies between services.

Comment 2 Tomer Saban 2015-03-30 10:55:46 UTC
After checking with Sandro it seems that the bug was fixed.