7661995b69
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
19 lines
496 B
YAML
19 lines
496 B
YAML
# Ensure the nova configuration directory exists before writing the policy
|
|
# file to it.
|
|
- name: Create nova conf dir
|
|
file:
|
|
path: '{{ nova_config_dir }}'
|
|
state: directory
|
|
owner: stack
|
|
become: yes
|
|
|
|
# Write the policy file rule for multi-cell resize.
|
|
- name: Setup multi-cell policy
|
|
copy:
|
|
content: |
|
|
# Enable cross-cell resize.
|
|
"compute:servers:resize:cross_cell": "rule:admin_or_owner"
|
|
dest: '{{ nova_config_dir }}/policy.yaml'
|
|
owner: stack
|
|
become: yes
|