sh Openstack Kolla安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Openstack Kolla安装相关的知识,希望对你有一定的参考价值。
#! /bin/bash
# Script to install Openstack Kolla (Mitaka Release) in Ubuntu 16.04
# Script START
# Upgrade to latest kernel
apt-get install -y linux-image-generic-lts-wily
# Update packages
sudo apt-get update
# Install depenedencids
sudo apt-get install -y curl wget python-pip python-dev libffi-dev gcc libssl-dev ntp
# Install Dockr
sudo curl -fsSL https://test.docker.com | sh
# Create drop in config file for docker
sudo mkdir -p /etc/systemd/system/docker.service.d
# Update docker settings
sudo tee /etc/systemd/system/docker.service.d/kolla.conf <<-'EOF'
[Service]
MountFlags=shared
EOF
# Restart docker service
sudo systemctl daemon-reload
sudo systemctl restart docker
# Clone the kolla git repository stable/mitaka branch
cd ~
sudo git clone -b stable/mitaka https://git.openstack.org/openstack/kolla
# Install python dependencies
sudo pip install kolla/
sudo pip install -U python-openstackclient python-neutronclient
# install ansible
sudo pip install -U ansible==1.9.4
# Copy configuration files to from etc/kolla to /etc
sudo cd kolla
sudo cp -r etc/kolla /etc/
# Build Kolla Images (Only core service)
# -b --baseOS [centos | ubuntu]
# -t --type [binary | source]
sudo kolla-build -p default -b ubuntu -t binary
# Script END
# /etc/kolla/globals.yml
# Change COPY_STRATEGY: "COPY ALWAYS"
# change base os to "ubuntu"
# change type to "binary"
# change kolla_internal_vip: <unsed address, if no un-used address, then give network interface, add enable_haproxy: "no" in file>
# change network_interface: <internal network interface>
# change neutron_external_interface: <external network, with internet access>
# enerate passwords in passwords.yml - Command below
# sudo kolla-genpwd
# Check if all-in-one hosts are ready
# sudo kolla-ansible prechecks
# Deploy kolla
# sudo kolla-ansible deploy
以上是关于sh Openstack Kolla安装的主要内容,如果未能解决你的问题,请参考以下文章
kolla-ansible部署openstack yoga版本
kolla-ansible部署openstack yoga版本
openstack 之 kolla安装镜像
安装社区O版OpenStack
使用考拉(kolla)和docker构建单节点openstack
kolla快速集成openstack-ocata和opencontrail-4.0.1.0单节点