region one:
1 cat /etc/kolla/globals.yml 2 3 openstack_region_name: "RegionOne" 4 multiple_regions_names: 5 - "{{ openstack_region_name }}" 6 - "RegionTwo" 7 8 enable_keystone: "yes"
region two:(region_one_vip:regionOne的keystone IP)
1 cat /etc/kolla/globals.yml 2 3 openstack_region_name: "RegionTwo" 4 5 kolla_internal_fqdn_r1: region_one_vip 6 keystone_admin_url: "{{ admin_protocol }}://{{ kolla_internal_fqdn_r1 }}:{{ keystone_admin_port }}" 7 keystone_internal_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn_r1 }}:{{ keystone_public_port }}" 8 9 openstack_auth: 10 auth_url: "{{ admin_protocol }}://{{ kolla_internal_fqdn_r1 }}:{{ keystone_admin_port }}" 11 username: "admin" 12 password: "{{ keystone_admin_password }}" 13 project_name: "admin" 14 domain_name: "default" 15 16 enable_keystone: "no"
region two:
1 [root@controller ~]# cat /etc/kolla/config/global.conf 2 [keystone_authtoken] 3 auth_uri = {{ keystone_internal_url }} 4 auth_url = {{ keystone_admin_url }}
1 [root@controller ~]# cat /etc/kolla/config/mistral.conf 2 [keystone_authtoken] 3 auth_uri = {{ keystone_internal_url }}/v3 4 auth_url = {{ keystone_admin_url }}/v3 5 [openstack_actions] 6 default_region = RegionTwo
1 [root@controller ~]# cat /etc/kolla/config/heat.conf 2 [DEFAULT] 3 region_name_for_services = RegionTwo 4 [trustee] 5 auth_uri = {{ keystone_internal_url }} 6 auth_url = {{ keystone_internal_url }} 7 [ec2authtoken] 8 auth_uri = {{ keystone_internal_url }} 9 [clients_keystone] 10 auth_uri = {{ keystone_internal_url }}
1 [root@controller ~]# cat /etc/kolla/config/nova.conf 2 [placement] 3 auth_url = {{ keystone_admin_url }}
两个region节点都要执行kolla-ansible deploy