kolla部署openstack

安装命令行工具

sudo add-apt-repository cloud-archive:openstack版本名称
sudo apt install python3-heatclient
sudo apt install python3-openstackclient

最近又使用kolla部署了openstack,主要卡在了外网不通的问题上,主要是使用virtualbox创建虚拟机要记得把网卡的混杂模式设置为全部允许。使用kolla部署十分简单,kolla-ansible环境搭建按照官网说明进行即可,主要工作在于配置文件的编写,这里把改动列出来

先要配置一下lvm,编辑配置文件

sudo vim /etc/lvm/lvm.conf

配置允许访问的磁盘设备和拒绝访问的,记得把系统盘加进拒绝访问

devices {
...
filter = [ "a/sda/", "a/sdb/", "r/.*/"]

上面把sda也加进来,因为系统盘有创建卷

/etc/kolla/global.yml

# Valid options are ['centos', 'debian', 'rhel', 'ubuntu']
kolla_base_distro: "ubuntu"

# Valid options are [ binary, source ]
kolla_install_type: "source"

# Do not override this unless you know what you are doing.
# 使用的openstack版本
openstack_release: "wallaby"

# This should be a VIP, an unused IP on your network that will float between
# the hosts running keepalived for high-availability. If you want to run an
# All-In-One without haproxy and keepalived, you can set enable_haproxy to no
# in "OpenStack options" section, and set this value to the IP of your
# 'network_interface' as set in the Networking section below.
kolla_internal_vip_address: "10.0.0.253"

# This interface is what all your api services will be bound to by default.
# Additionally, all vxlan/tunnel and storage network traffic will go over this
# interface by default. This interface must contain an IP address.
# It is possible for hosts to have non-matching names of interfaces - these can
# be set in an inventory file per host or per group or stored separately, see
#     http://docs.ansible.com/ansible/intro_inventory.html
# Yet another way to workaround the naming problem is to create a bond for the
# interface on all hosts and give the bond name here. Similar strategy can be
# followed for other types of interfaces.
network_interface: "enp0s8"

# This is the raw interface given to neutron as its external network port. Even
# though an IP address can exist on this interface, it will be unusable in most
# configurations. It is recommended this interface not be configured with any IP
# addresses for that reason.
neutron_external_interface: "enp0s3"

# Valid options are [ openvswitch, ovn, linuxbridge, vmware_nsxv, vmware_nsxv3, vmware_dvs ]
# if vmware_nsxv3 is selected, enable_openvswitch MUST be set to "no" (default is yes)
# 也可以使用默认的openvswitch
neutron_plugin_agent: "openvswitch"

# Enable core OpenStack services. This includes:
# glance, keystone, neutron, nova, heat, and horizon.
enable_openstack_core: "yes"

# 高可用开启
enable_haproxy: "yes"

enable_mariadb: "yes"
enable_memcached: "yes"
enable_aodh: "yes"
enable_ceilometer: "yes"
enable_ceilometer_ipmi: "yes"
enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"
enable_gnocchi: "yes"
enable_gnocchi_statsd: "yes"
enable_neutron_qos: "yes"
enable_octavia: "yes"

cinder_volume_group: "cinder-volumes"

# Valid options are [ qemu, kvm, vmware ]
# 使用虚拟机或者没有硬件虚拟化支持的使用qemu
nova_compute_virt_type: "qemu"

##########################################
# Octavia - openstack loadbalancer Options
##########################################
...
octavia_certs_country: CN
octavia_certs_state: xxxx
octavia_certs_organization: xxxx
octavia_certs_organizational_unit: xxxx

先运行

kolla-ansible octavia-certificates

生成octavia需要的证书

multinode文件是ansible使用的主机组配置,只要按照情况配置即可,记得所用主机使用管理网络的ip,简单部署只需要配置control,network,compute,monitoring,storage,deployment几个主机组即可,后面其他的主机组都是对这几个主机组的引用

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值