Add init hook for Service subclasses

Bug #1050367 reported by Mark McLoughlin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Won't Fix
Wishlist
Unassigned
oslo.service
Won't Fix
Undecided
Unassigned

Bug Description

In Nova, most Manager subclasses can override the init_host() method if it needs to do stuff when the server is started

We should make the Service base class know to call an init() method on the RPC manager or WSGI application as appropriate

Revision history for this message
Angus Salkeld (asalkeld) wrote :

We have removed the manager concept, so in nova we implement Manager and the init()
then call it from a class inherited from rpc.Service (in the start())

In other projects they just inherit from Service and do what ever they need in start()
or at least that was the intention of the current code.

Mark McLoughlin (markmc)
affects: openstack-common → oslo
Revision history for this message
Angus Salkeld (asalkeld) wrote :
Changed in oslo-incubator:
importance: Medium → Wishlist
Changed in oslo-incubator:
status: Confirmed → Won't Fix
Changed in oslo.service:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.