Ask Your Question
0

senlin -- how to execute action with policy

asked 2016-05-27 01:17:25 -0500

yuanruijie gravatar image

I have a question about executing action with policy.

For example. I create a cluster and bind it to scaling policy. Then use the cluster and the scaling policy and SCALE_IN or SCALE_OUT action to create a receiver.

After all, bind the cluster to deleting policy.

Now the question is that if I trigger the receiver(scaling policy+SCALE_IN) to reduce the size of the cluster. Whether the action follow the deletion policy?

From the source code, it seems that the deletion policy will be forced to be executed if you bind it to the cluster.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-11 22:17:25 -0500

Qiming gravatar image

senlin has a different modeling of policies. Policies in senlin are rules set to be checked and enforced before (or after) certain action is executed.

Take deletion policy as an example, it will be triggered not matter how the actions are triggered. The policy only cares about this: when someone wants to shrink a cluster, it will check if something has to be taken care of.

This is different from AWS or Heat where you use an action to trigger a policy directly.

Back to your question, yes, deletion policy will always be effected, if it is in enabled status.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-05-27 01:17:25 -0500

Seen: 62 times

Last updated: Oct 11 '16