[openstack-dev] [oslo.service] Lifecycle Hooks
Davanum Srinivas
davanum at gmail.com
Wed May 11 13:35:32 UTC 2016
Kanagaraj,
Who is the first consumer? for what specific purpose?
Thanks,
Dims
On Wed, May 11, 2016 at 9:27 AM, Kanagaraj Manickam <mkr1481 at gmail.com> wrote:
> Hi,
>
> When OpenStack service components are started/stooped,
> operators or OpenStack Services want to execute some actives
> before and/or after component is started/stopped.
> Most of the time, operator needs to depends
> on the start-up scripts to do it, which is an installer
> dependent, while OpenStack service can't use this approach.
>
> Also using start-up script does not suite for below situations:
> oslo.service spawns component in more than one processes
> when workers count is more than 1. In this case, if we want
> to execute some activities before/after on each process, start-up
> script does not help.
>
> So to support these scenarios, thinking of below enhancement
> in oslo.service as mentioned in blueprint [1]
>
> Most of the projects in OpenStack does make use of oslo.service
> library to create/start/stop the service api and back-end components.
> And by providing an configurable python hooks as below, and
> enhance oslo.service to execute them appropriately.
>
> [oslo_service]
> List of of pre-hook executed in sequence
> pre-hook=<comma separated python module used as hooks>
> List of of pre-hook executed in sequence
> post-hook=<comma separated python module used as hooks>
>
> And to make sure the hooks does not break the running process,
> try to execute them in try block.
>
> Kindly provide your comments/inputs. Thanks
>
> [1]: https://blueprints.launchpad.net/oslo.service/+spec/service-hook
>
> Regards,
> Kanagaraj M
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
--
Davanum Srinivas :: https://twitter.com/dims
More information about the OpenStack-dev
mailing list