summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAhmed Elkhouly <ahmed.h.elkhouly@gmail.com>2016-02-17 12:13:05 -0500
committerZane Bitter <zbitter@redhat.com>2016-02-24 18:00:44 -0500
commitf52d77f0d291ee34f58276f45ac44f177883a31b (patch)
tree7bd09688e70dff2bf3b4844b61eee97e3bd01008 /etc
parent42c1ebaf579a43b160de8a31326286c4f91c3f5c (diff)
downloadheat-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.json1
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",