OpenStack kolla 多 region 部署配置

region one:

 cat /etc/kolla/globals.yml

 openstack_region_name: "RegionOne"
multiple_regions_names:
- "{{ openstack_region_name }}"
- "RegionTwo" enable_keystone: "yes"

region two:(region_one_vip:regionOne的keystone IP)

 cat /etc/kolla/globals.yml

 openstack_region_name: "RegionTwo"

 kolla_internal_fqdn_r1: region_one_vip
keystone_admin_url: "{{ admin_protocol }}://{{ kolla_internal_fqdn_r1 }}:{{ keystone_admin_port }}"
keystone_internal_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn_r1 }}:{{ keystone_public_port }}" openstack_auth:
auth_url: "{{ admin_protocol }}://{{ kolla_internal_fqdn_r1 }}:{{ keystone_admin_port }}"
username: "admin"
password: "{{ keystone_admin_password }}"
project_name: "admin"
domain_name: "default" enable_keystone: "no"

region two:

 [root@controller ~]# cat /etc/kolla/config/global.conf
[keystone_authtoken]
auth_uri = {{ keystone_internal_url }}
auth_url = {{ keystone_admin_url }}
 [root@controller ~]# cat /etc/kolla/config/mistral.conf
[keystone_authtoken]
auth_uri = {{ keystone_internal_url }}/v3
auth_url = {{ keystone_admin_url }}/v3
[openstack_actions]
default_region = RegionTwo
 [root@controller ~]# cat /etc/kolla/config/heat.conf
[DEFAULT]
region_name_for_services = RegionTwo
[trustee]
auth_uri = {{ keystone_internal_url }}
auth_url = {{ keystone_internal_url }}
[ec2authtoken]
auth_uri = {{ keystone_internal_url }}
[clients_keystone]
auth_uri = {{ keystone_internal_url }}
 [root@controller ~]# cat /etc/kolla/config/nova.conf
[placement]
auth_url = {{ keystone_admin_url }}

两个region节点都要执行kolla-ansible deploy

上一篇:设置输入域(input/textarea)中文本光标的位置


下一篇:关于float的感悟