Add volume migrate action

This patch adds volume migrate action.

Change-Id: I9f46931d2a7edff4c727d674ec315924b9ae30c2
Implements: blueprint volume-migrate-action
This commit is contained in:
Hidekazu Nakamura
2017-06-25 20:49:31 +09:00
parent 2266e2baa3
commit bff76de6f1
11 changed files with 1001 additions and 1 deletions

View File

@@ -47,7 +47,8 @@ class WeightPlanner(base.BasePlanner):
super(WeightPlanner, self).__init__(config)
action_weights = {
'nop': 60,
'nop': 70,
'volume_migrate': 60,
'change_nova_service_state': 50,
'sleep': 40,
'migrate': 30,
@@ -64,6 +65,7 @@ class WeightPlanner(base.BasePlanner):
'change_nova_service_state': 1,
'nop': 1,
'change_node_power_state': 2,
'volume_migrate': 2
}
@classmethod