
Previously, when running one of the following commands: kolla-ansible deploy --check kolla-ansible genconfig --check deployment or configuration generation fails for various reasons. MariaDB fails to lookup the existing cluster. Keystone fails to generate cron config. Nova-cell fails to get the cell settings. Closes-Bug: #2002661 Change-Id: I5e765f498ae86d213d0a4379ca5d473db1499962
28 lines
889 B
YAML
28 lines
889 B
YAML
---
|
|
- name: Get a list of existing cells
|
|
vars:
|
|
nova_conductor: "{{ nova_cell_services['nova-conductor'] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "start_container"
|
|
command: bash -c 'sudo -E kolla_set_configs && nova-manage cell_v2 list_cells --verbose'
|
|
common_options: "{{ docker_common_options }}"
|
|
detach: False
|
|
image: "{{ nova_conductor.image }}"
|
|
labels:
|
|
BOOTSTRAP:
|
|
name: "nova_list_cells"
|
|
restart_policy: no
|
|
volumes: "{{ nova_cell_bootstrap_default_volumes + nova_cell_bootstrap_extra_volumes }}"
|
|
register: existing_cells_list
|
|
changed_when: false
|
|
failed_when:
|
|
- existing_cells_list.rc != 0
|
|
check_mode: false
|
|
|
|
- name: Extract current cell settings from list
|
|
vars:
|
|
nova_conductor: "{{ nova_cell_services['nova-conductor'] }}"
|
|
set_fact:
|
|
nova_cell_settings: "{{ existing_cells_list | extract_cell(nova_cell_name) }}"
|