Replies: 2 comments
-
On first reading I found it confusing that the node which generates an event can be referred to as the TARGET. This is correct since we define policies as being targetted at nodes but if TARGET is to be used this way it would need to be explained. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, the policy grammar is very confusing:
None of this is very well thought through, and more work is required to get this in decent shape. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a need to define event/condition/action policies in TOSCA using the policy definition syntax. I'm running into a couple of issues:
condition
clause in policy triggers specifies a Boolean function that itself may need to access property values within the service, including property values specified in the policy definition. The spec is unclear about the context within which these functions are evaluated (i.e. what is the meaning of SELF within a policy). I see three options:SELF
is not supported.target
node that generated the event that triggered the policy action (i.e. SELF refers to that target node).I propose the third approach, where SELF refers to the policy. That would all the different use cases:
$get_property: [SELF, threshold]
: This accesses the value of a property named threshold within the policy$get_attribute: [SELF, TARGET, utilization]
: This accesses the value of an attribute named utilization within the target node that generated the event. Note that this would be a new use for theTARGET
keyword in TOSCA Path.$get_property: [server, max_capacity]
: This accesses the value of a property named max_capacity in a node named server in the service that defines the policy.Beta Was this translation helpful? Give feedback.
All reactions