Programatically restart Openstack services

asked 2014-12-01 21:45:34 -0500

Pradip gravatar image

Is there a way one can programatically restart a few OpenStack services? (e.g. cinder-scheduler, heat-cfn etc.)?

Understood it can be done through bash scripting. But is there any other programatic way of doing so. For example: if one would like to restart a service from the life-cycle methods of the custom heat resource.

Thanks. Pradip

edit retag flag offensive close merge delete



do you want to restart, or use it for other functionality ? there are two ways to do it. 1) use http calls on the endpoints. 2) use the binding like python-cinderclient, python-novaclient both ways you can programmatically use these services.

chitranshi-shubham gravatar imagechitranshi-shubham ( 2014-12-02 00:39:26 -0500 )edit

I would like to 'restart'. Can it be possible to please point how to use the python-cinderclient binding to restart it programatically? Just wanna give it a try.

Pradip gravatar imagePradip ( 2014-12-02 01:09:26 -0500 )edit