首页 > 其他分享 >kolla-ansible 部署多region集群

kolla-ansible 部署多region集群

时间:2024-12-24 10:26:58浏览次数:5  
标签:enable no region nova ceph ansible kolla cinder neutron

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

相关文章

  • Ansible(自动化运维)环境搭建及ansible-vault加密配置
    前言:原先这篇博客是在《Linux系统综合配置:yum源设置、逻辑卷制作》里的,现在想着ansible-vault加密配置是可以单独出一期的,就拆分出来了。一、安装ansible命令:sudodnfupdate命令:sudodnfinstallpython3查看版本:python3-V命令:sudodnfinstallpython3-pip命令:p......
  • 实践项目-Ansible+Playbook自动化部署服务器上线
    (241223)环境系统ip主机名域名debian12.8192.168.100.6ansible-mainansible-main.example.comdebian12.8192.168.100.12ansible-node1ansible-node1.example.comdebian12.8192.168.100.15ansible-node2ansible-node2.example.comdebian12.8192.168.......
  • Ansible:一键部署Keepalived高可用集群
    使用Ansible工具一键部署Keepalived服务1.需求分析使用ansible部署keepalived服务的过程中,需要实现:1.1多系统支持根据不同的系统,自动选择对应的安装方式。可通过相关的环境变量结合 when实现。1.2源码安装考虑到rpm安装的方式会需要依赖一些基础环境,以及版本较低,将采用源......
  • 自动化工具ansible部署和实践
    1介绍和部署1.1介绍ansible的功能我爱你在当今的IT自动化领域,Ansible无疑是一个无法被忽视的重要角色。其便利性和高效性受到了广大开发者和系统管理员的一致好评,成为了配置管理和应用部署的首选工具。然而,对于一些初学者来说,Ansible的概念和架构可能会显得有些复杂和难......
  • 【转载】Ansible - 基础应用
    原作:https://www.cnblogs.com/keerya/p/7987886.htmlansible自动化运维工具实现了批量系统配置、批量程序部署、批量运行命令等功能。 使用yum安装我们需要先安装一个 epel-release 包,然后再安装我们的ansible即可。yuminstallepel-release-yyuminstallans......
  • Rocky 9 的ansible中没有mount模块
    报错Themodulemountwasredirectedtoansible.posix.mount,whichcouldnotbeloaded.[root@master-61~]#ansibletest-mmount-a'src=172.16.1.31:/datapath=/usr/share/nginx/htmlfstype=nfsopts=defaultsstate=mounted'172.16.1.110|FAILED!=&g......
  • Ansible Playbook 简介
    你每做一件事,相当于扮演了一个角色,你必须剧本,做什么,该怎么做,做事的流程Playbook是ansible用于配置,部署,和管理被控节点的剧本。通过Playbook的详细描述,执行其中的一系列tasks,可以让远端主机达到预期的状态。playbook就像Ansible控制器给被控节点列出的的一系列......
  • Ansible基础使用-多主机批量执行脚本和一些特性介绍
    提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录1.基础用法1.1定义清单1.2静态清单指定受控主机1.3验证清单1.4自定义清单文件2管理配置文件2.1配置ansible2.2配置文件优先级2.3管理配置文件中的设置2.4配置连接2.4.1清单位置2.4.2......
  • 2024-2025 ICPC, NERC, Southern and Volga Russian Regional Contest
    自己vp了一下这一场,赛时7题,比较简单,但是有几题也是卡了蛮久。都是思维题。C感觉结论比较显然但是实现上被卡住了。用map没过,重构的时候把多个数压缩成一个数处理ac了,对拍发现是因为循环逻辑导致错误了。。#include<bits/stdc++.h>usingnamespacestd;#defineLLlonglon......
  • Ansible实验
    一、实验环境二、实验步骤剧本编写遵循yaml语法:冒号(冒号后面需要空格)短横杠(后面跟空格)缩进(两字符,默认Tab键四个字符)playbook语法:ansible-playbook选项文件路径选项:--list-hosts:列出清单--list-tasks:列出任务--list-tags:列出标签--syntax-check:语法检查核心......