Make a post after heat scaleUp and scaleDown

asked 2017-02-13 07:14:23 -0500

Rogerio gravatar image

Is there a way to make a REST call to an external API to notify that a VM has been successfully scaled up or down at a Heat template?

We have to do some external configurations to inventory, automation and so on, but it doesn´t seem to have a clear way of doing this.

I thought of making a webhook in the ceilometer alarm to an external broker that would identify the scaling process and make the call to an alarm_url to do the actual scaling in heat, but that seems a little too complicated to just do something simple.

If I could make a REST call to the external broker after the scaling process finished with the new instance information, it would be a lot better. If I could make one befor and after, it would be even better.


edit retag flag offensive close merge delete


Probably you can use OS::Heat::SoftwareComponent actions (CREATE, UPDATE, SUSPEND, DELETE, RESUME) to make "scaled up/down" VMs send signals by their own? gravatar ( 2017-02-13 09:12:40 -0500 )edit

Not really. Every VM should be created in the inventory, even if it does not have a floating IP. Also, there may be security issues that prevent giving access to every VM to the inventory broker.

Rogerio gravatar imageRogerio ( 2017-02-13 09:30:36 -0500 )edit