harish-r
2/24/2017 - 8:23 PM

Openstack Kolla Install

Openstack Kolla Install

#! /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