diff options
author | Ahmed Elkhouly <ahmed.h.elkhouly@gmail.com> | 2016-02-17 12:13:05 -0500 |
---|---|---|
committer | Zane Bitter <zbitter@redhat.com> | 2016-02-24 18:00:44 -0500 |
commit | f52d77f0d291ee34f58276f45ac44f177883a31b (patch) | |
tree | 7bd09688e70dff2bf3b4844b61eee97e3bd01008 /etc | |
parent | 42c1ebaf579a43b160de8a31326286c4f91c3f5c (diff) | |
download | heat-f52d77f0d291ee34f58276f45ac44f177883a31b.tar.gz |
Resource mark unhealthy RPC and ReST API
There may exist resources that the user (or application) knows are
unhealthy where Heat has no way of determining that.
Add a PATCH handler to the Resource endpoint::
/stacks/<stack_name>/<stack_id>/resources/<resource_id>
The PATCH method will accept a JSON body of the form::
{
'mark_unhealthy': <bool>,
'resource_status_reason': <string>
}
This patch Implements:
- RPC API to mark resources as CHECK_FAILED in both the legacy and
convergence architectures in heat-engine
- ReST front end to the RPC API call in heat-api
Change-Id: Ifa48b179723a2100fff548467db9e162bc669d13
Partially-implements: blueprint mark-unhealthy
Diffstat (limited to 'etc')
-rw-r--r-- | etc/heat/policy.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/heat/policy.json b/etc/heat/policy.json index b4980d977..40c54d9c2 100644 --- a/etc/heat/policy.json +++ b/etc/heat/policy.json @@ -36,6 +36,7 @@ "resource:index": "rule:deny_stack_user", "resource:metadata": "", "resource:signal": "", + "resource:mark_unhealthy": "rule:deny_stack_user", "resource:show": "rule:deny_stack_user", "stacks:abandon": "rule:deny_stack_user", "stacks:create": "rule:deny_stack_user", |