dcdbe44190
Add support for basic multiple regions, that is to say, many OpenStack with a shared Keystone (same users) and Horizon. The shared Keystone and Horizon are deployed into one region, for instance RegionOne. Services of other regions have an access to this Keystone. This support assumes that the operator knows the name of all OpenStack regions in advance, and considers as many Kolla runs as there are regions. The new variable, multiple_regions_names, contains the name of regions. It is needed by the region that includes Keystone and Horizon. In register.yml, it specifies to create as many Keystone endpoints as there are regiones, so that services of other regions can connect to Keystone. In local_settings.j2, it changes the render to support multiple regions in Horizon. The multi-regions.rst explains how to perform a multiple regions deployment. Implements: blueprint multi-kolla-config Change-Id: Icab2aebfc4de0e3bc609950956e0af397705f403
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
---
|
|
- name: Waiting for nova-compute service up
|
|
command: >
|
|
docker exec kolla_toolbox openstack
|
|
--os-interface internal
|
|
--os-auth-url {{ keystone_admin_url }}
|
|
--os-identity-api-version 3
|
|
--os-project-domain-name default
|
|
--os-tenant-name admin
|
|
--os-username admin
|
|
--os-password {{ keystone_admin_password }}
|
|
--os-user-domain-name default
|
|
compute service list -f json --service nova-compute
|
|
register: nova_compute_services
|
|
changed_when: false
|
|
run_once: True
|
|
delegate_to: "{{ groups['nova-api'][0] }}"
|
|
retries: 20
|
|
delay: 10
|
|
until:
|
|
- nova_compute_services | success
|
|
- nova_compute_services.stdout | from_json | length != 0
|
|
|
|
- name: Running nova simple cell setup
|
|
command: docker exec nova_api nova-manage cell_v2 simple_cell_setup
|
|
register: cell_setup
|
|
changed_when:
|
|
- cell_setup | success
|
|
- '"Cell0 is already setup" not in cell_setup.stdout'
|
|
failed_when:
|
|
- cell_setup.rc != 0
|
|
- '"No hosts found to map to cell, exiting." not in cell_setup.stdout'
|
|
run_once: True
|
|
delegate_to: "{{ groups['nova-api'][0] }}"
|