Rework policy check logic for built-in policy types

Registered by Yanyan Hu

We classify all Senlin policies into two categories:

1. Built-in policy: for this type of policy, currently including scaling policy, lb policy, deletion policy, placement policy, their check timing are fixed:
e.g for cluster_scale_out action, built-in policies should be checked in following sequence:
scaling policy --> placement policy --> action execution --> lb policy

for cluster_scale_in action, built-in policies should be checked in following sequence:
scaling policy --> placement policy --> deletion policy --> lb policy --> action execution

So we decide to fix the priority of these built-in policies with the following value:
---------------------------
scaling policy: 100
region placement policy: 200
zone placement policy: 300
deletion policy: 400
lb policy: 500

2. Customized policy: for this type of policies, developer is allowed to customize their priority attribute to decide their check timing;

Blueprint information

Status:
Complete
Approver:
Qiming Teng
Priority:
High
Drafter:
Yanyan Hu
Direction:
Approved
Assignee:
Yanyan Hu
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-2
Started by
Qiming Teng
Completed by
Qiming Teng

Related branches

Sprints

Whiteboard

Just revised the name to be shorter so that referencing it in patches would be easier.

Gerrit topic: https://review.openstack.org/#q,topic:bp/rework-policy-check,n,z

Addressed by: https://review.openstack.org/264669
    Rework get_details of nova server profile

Addressed by: https://review.openstack.org/264670
    [WIP]Rework policy check for built-in policy types

Addressed by: https://review.openstack.org/269477
    Fix getting node addrress logic in os lbaas driver

Addressed by: https://review.openstack.org/269478
    Add fixed priority for built-in policies

Gerrit topic: https://review.openstack.org/#q,topic:bug/1535508,n,z

Gerrit topic: https://review.openstack.org/#q,topic:functional-test,n,z

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.