1、先说什么是多Region
2、多Region的应用场景:
•1、Openstack 集群位于不同的区域时,可以用多Region来管理,比如阿里云的北京地区的云主机、上海区的云主机等
•2、可用于异构管理,比如当Kvm和Vcenter 同时被Openstack管理时,由于网络、镜像等原因 必须使用独立的环境来纳管,此时使用多Region来管理。
正式对接
env
RegionOne上的配置文件
[root@com1 kolla]# cat globals.yml
---
#multi region 主要是改这个地方
openstack_region_name: "RegionOne"
multiple_regions_names:
- "{{ openstack_region_name }}"
- "RegionTwo"
##################
#cinder
enable_cinder: "yes"
cinder_backend_ceph: "yes"
enable_cinder_backup: "no"
ceph_cinder_keyring: "ceph.client.cinder.keyring"
ceph_cinder_user: "cinder"
ceph_cinder_pool_name: "volumes"
#
glance_backend_ceph: "yes"
#
#nova
nova_backend_ceph: "yes"
ceph_nova_keyring: "ceph.client.cinder.keyring"
ceph_nova_user: "{{ ceph_cinder_user }}"
ceph_nova_pool_name: "vms"
#
kolla_base_distro: "rocky"
kolla_install_type: "source"
openstack_release: "yoga"
kolla_internal_vip_address: "192.168.200.10"
docker_registry: 192.168.200.10:4000
docker_namespace: "kolla"
network_interface: "ens160"
neutron_external_interface: "ens224"
enable_haproxy: "no"
enable_mariadb: "yes"
enable_fluentd: "no"
enable_freezer: "no"
enable_gnocchi: "no"
enable_gnocchi_statsd: "no"
enable_ironic: "no"
enable_kuryr: "no"
enable_magnum: "no"
enable_manila: "no"
enable_manila_backend_generic: "no"
enable_manila_backend_hnas: "no"
enable_manila_backend_cephfs_native: "no"
enable_manila_backend_cephfs_nfs: "no"
enable_manila_backend_glusterfs_nfs: "no"
enable_mariabackup: "no"
enable_masakari: "no"
enable_mistral: "no"
enable_monasca: "no"
enable_multipathd: "no"
enable_murano: "no"
enable_neutron_vpnaas: "no"
enable_neutron_sriov: "no"
enable_neutron_dvr: "no"
enable_neutron_qos: "no"
enable_neutron_agent_ha: "no"
enable_neutron_bgp_dragent: "no"
enable_neutron_provider_networks: "no"
enable_neutron_segments: "no"
enable_neutron_sfc: "no"
enable_neutron_trunk: "no"
enable_neutron_metering: "no"
enable_neutron_infoblox_ipam_agent: "no"
enable_neutron_port_forwarding: "no"
enable_nova_serialconsole_proxy: "no"
enable_nova_ssh: "yes"
enable_octavia: "no"
enable_ovs_dpdk: "no"
enable_osprofiler: "no"
enable_placement: "{{ enable_nova | bool or enable_zun | bool }}"
enable_prometheus: "no"
nova_compute_virt_type: "qemu"
enable_prometheus: "yes"
enable_grafana: "yes"
[root@com1 kolla]#
regiontwo上的配置文件
[root@con1 kolla]# cat globals.yml
---
# multi region
enable_keystone: "no"
enable_horizon: "no"
openstack_region_name: "RegionTwo"
kolla_internal_fqdn_r1: "192.168.200.10"
#keystone_public_port: "5000"
keystone_admin_password: 'GLx84NiCCkKLOY2enF8EdgeNL27Nw6cwX672z7Gn'
default_user_domain_name: 'Default'
keystone_admin_project: 'admin'
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: "{{ keystone_admin_url }}"
username: "{{ keystone_admin_user }}"
password: "{{ keystone_admin_password }}"
user_domain_name: "{{ default_user_domain_name }}"
system_scope: "all"
#cinder
enable_cinder: "yes"
cinder_backend_ceph: "yes"
enable_cinder_backup: "no"
ceph_cinder_keyring: "ceph.client.cinder.keyring"
ceph_cinder_user: "cinder"
ceph_cinder_pool_name: "volumes"
#
glance_backend_ceph: "yes"
#
#nova
nova_backend_ceph: "yes"
ceph_nova_keyring: "ceph.client.cinder.keyring"
ceph_nova_user: "{{ ceph_cinder_user }}"
ceph_nova_pool_name: "vms"
#
kolla_base_distro: "rocky"
kolla_install_type: "source"
openstack_release: "yoga"
kolla_internal_vip_address: "192.168.200.7"
docker_registry: 192.168.200.10:4000
docker_namespace: "kolla"
network_interface: "ens160"
neutron_external_interface: "ens224"
enable_haproxy: "no"
enable_mariadb: "yes"
enable_fluentd: "no"
enable_freezer: "no"
enable_gnocchi: "no"
enable_gnocchi_statsd: "no"
enable_ironic: "no"
enable_kuryr: "no"
enable_magnum: "no"
enable_manila: "no"
enable_manila_backend_generic: "no"
enable_manila_backend_hnas: "no"
enable_manila_backend_cephfs_native: "no"
enable_manila_backend_cephfs_nfs: "no"
enable_manila_backend_glusterfs_nfs: "no"
enable_mariabackup: "no"
enable_masakari: "no"
enable_mistral: "no"
enable_monasca: "no"
enable_multipathd: "no"
enable_murano: "no"
enable_neutron_vpnaas: "no"
enable_neutron_sriov: "no"
enable_neutron_dvr: "no"
enable_neutron_qos: "no"
enable_neutron_agent_ha: "no"
enable_neutron_bgp_dragent: "no"
enable_neutron_provider_networks: "no"
enable_neutron_segments: "no"
enable_neutron_sfc: "no"
enable_neutron_trunk: "no"
enable_neutron_metering: "no"
enable_neutron_infoblox_ipam_agent: "no"
enable_neutron_port_forwarding: "no"
enable_nova_serialconsole_proxy: "no"
enable_nova_ssh: "yes"
enable_octavia: "no"
enable_ovs_dpdk: "no"
enable_osprofiler: "no"
enable_placement: "{{ enable_nova | bool or enable_zun | bool }}"
enable_prometheus: "no"
nova_compute_virt_type: "qemu"
enable_prometheus: "yes"
enable_grafana: "yes"
直接开始部署
kolla-ansible -i all-in-one deploy
完成后,直接在dashboard上查看
内容来源于: OpenStack课程中的部分内容
详情点击: “爱思”云
标签:enable,no,region,nova,ceph,ansible,kolla,cinder,neutron From: https://blog.csdn.net/weixin_47860868/article/details/144682754