summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2019-05-01 11:24:27 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2019-12-23 10:10:57 -0500
commit7661995b69c3302533646dc72446fcdea496e589 (patch)
tree091e600c4db9a320f88661ae963fd250e1c2c36e /playbooks
parent6ebee92445d799a2e610116cf72b4bf3d3d6a2f3 (diff)
downloadnova-7661995b69c3302533646dc72446fcdea496e589.tar.gz
Enable cross-cell resize in the nova-multi-cell job
This changes the nova-multi-cell job to essentially force cross-cell resize and cold migration. By "force" I mean there is only one compute in each cell and resize to the same host is disabled, so the scheduler has no option but to move the server to the other cell. This adds a new role to write the nova policy.yaml file to enable cross-cell resize and a pre-run playbook so that the policy file setup before tempest runs. Part of blueprint cross-cell-resize Change-Id: Ia4f3671c40e69674afc7a96b5d9b198dabaa4224
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/nova-multi-cell/pre.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/playbooks/nova-multi-cell/pre.yaml b/playbooks/nova-multi-cell/pre.yaml
new file mode 100644
index 0000000000..329f51b1f9
--- /dev/null
+++ b/playbooks/nova-multi-cell/pre.yaml
@@ -0,0 +1,7 @@
+- hosts: controller
+ roles:
+ # /etc/nova/policy.yaml is going to be owned by the stack user so we need
+ # to make sure that user exists on the controller host first.
+ - setup-stack-user
+ # Write rules to the /etc/nova/policy.yaml file.
+ - setup-multi-cell-policy