kolla单节点部署openstack

Posted tozh

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kolla单节点部署openstack相关的知识,希望对你有一定的参考价值。

virtualbox环境:

双网卡:enp0s3(桥接)   192.168.102.194

    enp0s8(仅主机)   192.168.42.3

块存储  50G

关闭防火墙,selinux。

配置yum源:wget  http://mirrors.aliyun.com/repo/Centos-7.repo

      yum install epel-release -y

配置主机名:hostnamectl set-hostname kolla

      vi /etc/hosts

      192.168.42.3  kolla

配置互信:ssh-keygen

     ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

 

 

一,安装依赖

     yum install python-pip

     pip install -U pip

     yum install python-devel libffi-devel gcc openssl-devel libselinux-python

     pip install -U ansible

     mkdir  /etc/ansible

     vi  /etc/ansible/ansible.cfg

      [defaults]

   host_key_checking=False

   pipelining=True

   forks=100



二,安装kolla-ansible

      pip install kolla-ansible

      cp -r /usr/share/kolla-ansible/etc_examples/kolla /etc/kolla/

       cp /usr/share/kolla-ansible/ansible/inventory/* .

    将all-in-one文件中的localhost那一行注释,并在下行添加kolla

  vi  /etc/kolla/global.yml

   kolla_base_distro: "centos"

   kolla_install_type: "source"

   openstack_release: "queens"

    network_interface: "enp0s8"

   kolla_internal_vip_address: "192.168.42.3"

  neutron_external_interface: "enp0s8"

   enable_cinder: "no"

   enable_haproxy: "no"

   nova_compute_virt_type: "qemu"           全虚拟化模式

   keystone_token_provider: ‘fernet‘

  生成随机密码文件

   kolla-genpwd

  vi /etc/kolla/password.yml

  keystone_admin_password: admin

三,部署

   kolla-ansible -i all-in-one bootstrap-servers

   kolla-ansible -i all-in-one prechecks

   kolla-ansible -i all-in-one pull                      #第一次执行若有failed,再执行一次

   kolla-ansible -i deploy

生成环境变量脚本

  kolla-ansible post-deploy -i all-in-one

        .  /etc/kolla/admin-openrc.sh

安装openstack命令行客户端

  pip install python-openstackclient python-glanceclient python-neutronclient --ignore-installed

初始化运行环境

  . /usr/share/kolla-ansible/init-runonce

 

 


日志:/var/lib/docker/volumes/kolla_logs/_data/

销毁环境:kolla-ansible destroy -i all-in-one --yes-i-really-really-mean-it

 

 

 

参考:https://docs.openstack.org/project-deploy-guide/kolla-ansible/queens/quickstart.html

   https://my.oschina.net/LastRitter/blog/1617079

 








以上是关于kolla单节点部署openstack的主要内容,如果未能解决你的问题,请参考以下文章

kolla-ansible部署单节点OpenStack-Pike

Ceph单节点部署

Kolla安装单节点Ocata

用Kolla在阿里云部署10节点高可用OpenStack

kolla快速集成openstack-ocata和opencontrail-4.0.1.0单节点

使用考拉(kolla)和docker构建单节点openstack