Adds deletion of alarms in case exception is thrown during scaling config 52/6652/4
authorBenjamin Diaz <bdiaz@whitestack.com>
Mon, 8 Oct 2018 19:25:36 +0000 (16:25 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Sun, 14 Oct 2018 21:38:20 +0000 (18:38 -0300)
commitf35f914f45080e150cc7c6a2928de47a9ae5c848
treecea8cefefb7887199bfae3f646464fe4b1acc263
parentd8e91c539f8a1657a93c6ed59dd5f9ad489684ef
Adds deletion of alarms in case exception is thrown during scaling config

If a exception is thrown during the configuration of a scaling group, POL
will check if there have been alarms created through MON, and if that is
the case, it will delete them.
Also, it adds validation of the MON alarm responses. It throws an exception
if MON returns status: False, meaning there was an error creating the alarm.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I4f5f0c95ae2cce0c71efb73ff2e06cdf8ea08864
osm_policy_module/common/mon_client.py
osm_policy_module/core/agent.py