Rework policy check logic for built-in policies

Registered by Yanyan Hu

Before action execution, whether an attached policy will be checked depends on its "TARGET" definition, including both action type and check timing. Developer is allowed to customized the TARGET attribute when developing their own policy type. However, for some built-in policy types, e.g. senlin.policy.loadbalance and senlin.policy.deletion, their target action and check timing are invariable, e.g. lb policy should always takes effect after new node(s) being added to cluster and before existing node(s) being removed from cluster. Therefore, for these policy types, we should embed their checking logic into corresponding action routine rather than check them in policy_check routine together with other customized policies.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Yanyan Hu
Direction:
Needs approval
Assignee:
Yanyan Hu
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
milestone icon mitaka-2
Completed by
Yanyan Hu

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.