0% found this document useful (0 votes)
149 views

Kolla

The document provides instructions for deploying OpenStack using Kolla Ansible on both CentOS 8 and Ubuntu 18.04 and 20.04. It covers installing prerequisites like Python, Ansible and Kolla Ansible. It also describes configuring the inventory files, global configuration files and deploying the OpenStack services with Kolla Ansible. The Ubuntu 20.04 section additionally covers logical volume configuration for Cinder storage.

Uploaded by

kemakann
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
149 views

Kolla

The document provides instructions for deploying OpenStack using Kolla Ansible on both CentOS 8 and Ubuntu 18.04 and 20.04. It covers installing prerequisites like Python, Ansible and Kolla Ansible. It also describes configuring the inventory files, global configuration files and deploying the OpenStack services with Kolla Ansible. The Ubuntu 20.04 section additionally covers logical volume configuration for Cinder storage.

Uploaded by

kemakann
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

network:

ethernets:
ens18:
addresses: [192.168.1.234/24]
gateway4: 192.168.1.254
nameservers:
addresses: [8.8.8.8,8.8.4.4]
dhcp4: no

ens19:
dhcp4: no
version: 2

auto ens3
iface ens3 inet dhcp

auto ens4
iface ens4 inet manual
up ip link set dev ens4 up
down ip link set dev ens4 down

/etc/init.d/networking restart
ip link sh

========CENTOS 8=============================================
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

sudo dnf update -y


sudo dnf install python3-devel libffi-devel gcc openssl-devel git tmux python3-
libselinux
sudo dnf install python3-pip
sudo pip3 install -U pip
pip -V

sudo dnf install epel-release -y


sudo dnf makecache
sudo dnf install ansible -y
ansible --version

sudo su -l root
pip install kolla-ansible --ignore-installed PyYAML
exit

sudo mkdir -p /etc/kolla


sudo chown $USER:$USER /etc/kolla

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

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

sudo mkdir /etc/ansible


sudo tee /etc/ansible/ansible.cfg<<EOF
[defaults]
host_key_checking=False
pipelining=True
forks=100
EOF

ssh-copy-id -i .ssh/id_rsa.pub stack@compute1


ssh-copy-id -i .ssh/id_rsa.pub stack@compute2
ssh-copy-id -i .ssh/id_rsa.pub stack@storage1

ansible -i multinode all -m ping

cat /etc/kolla/passwords.yml
kolla-genpwd
sed -i 's#keystone_admin_password:.*#keystone_admin_password: admin#g'
/etc/kolla/passwords.yml
sudo vim /etc/kolla/globals.yml
---
kolla_base_distro: "centos"
kolla_install_type: "source"
openstack_release: "victoria"
network_interface: "ensXX"
neutron_external_interface: "ensXX"
kolla_internal_vip_address: "10.0.10.10"
enable_neutron_provider_networks: "yes"
enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"
cinder_volume_group: "cinder-volumes"
nova_compute_virt_type: "kvm"
---

kolla-ansible -i multinode bootstrap-servers


kolla-ansible -i multinode prechecks
kolla-ansible -i multinode deploy
kolla-ansible post-deploy

pip install python-openstackclient


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

Ref:
https://ammarun.my.id/ngoprek/server/cloud/security/Integrate-CEPH-in-Kolla-
OPENSTACK/
https://medium.com/prastamaha/deploy-openstack-ussuri-multinode-685ff2a1fbb2

========UBUNTU 18============================================
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

#!/bin/bash

sudo apt-get update


sudo apt-get install python3-dev libffi-dev gcc libssl-dev
sudo apt-get install python3-pip -y
sudo pip3 install -U pip
pip -V
sudo pip install -U 'ansible<2.10'
ansible --version
sudo pip3 install kolla-ansible --ignore-installed PyYAML
sudo mkdir -p /etc/kolla
sudo chown $USER:$USER /etc/kolla
cp -r /usr/local/share/kolla-ansible/etc_examples/kolla/* /etc/kolla
cp /usr/local/share/kolla-ansible/ansible/inventory/* .
sudo mkdir /etc/ansible
sudo cp /usr/local/lib/python3.6/dist-
packages/ansible/galaxy/data/container/tests/ansible.cfg /etc/ansible/
sudo tee /etc/ansible/ansible.cfg<<EOF
[defaults]
host_key_checking=False
pipelining=True
forks=100
EOF

ansible -i all-in-one all -m ping


kolla-genpwd
sed -i 's#keystone_admin_password:.*#keystone_admin_password: admin#g'
/etc/kolla/passwords.yml
sudo vim /etc/kolla/globals.yml
.
.
.
kolla-ansible -i ./all-in-one bootstrap-servers
kolla-ansible -i ./all-in-one prechecks
kolla-ansible -i ./all-in-one deploy
kolla-ansible post-deploy

cp /etc/kolla/admin-openrc.sh .
pip install python-openstackclient --use-feature=2020-resolver
sudo apt install python-openstackclient
cp /usr/local/share/kolla-ansible/init-runonce .
./init-runonce

=============================|
========= script Ubuntu 20.04|
=============================|
# This is the network config written by 'subiquity'
network:
version: 2
renderer: networkd
ethernets:
ens192:
addresses: [192.168.1.15/24]
gateway4: 192.168.1.254
nameservers:
addresses: [8.8.8.8,8.8.4.4]
dhcp4: no
ens224:
dhcp4: no

pvcreate /dev/sdb
vgcreate cinder-volumes /dev/sdb

#!/bin/bash

sudo apt-get update -y


sleep 4
sudo apt-get install python3-dev libffi-dev gcc libssl-dev -y
sleep 4
sudo apt-get install python3-pip -y
sleep 4
sudo pip3 install -U pip
sleep 4
pip -V
sudo pip install -U 'ansible<2.10'
ansible --version
sleep 4
sudo pip3 install kolla-ansible --ignore-installed PyYAML
sleep 4
sudo mkdir -p /etc/kolla
sleep 4
sudo chown $USER:$USER /etc/kolla
sleep 4
cp -r /usr/local/share/kolla-ansible/etc_examples/kolla/* /etc/kolla
cp /usr/local/share/kolla-ansible/ansible/inventory/* .
sudo mkdir /etc/ansible
sudo cp /usr/local/lib/python3.6/dist-
packages/ansible/galaxy/data/container/tests/ansible.cfg /etc/ansible/
sleep 4
sudo tee /etc/ansible/ansible.cfg<<EOF
[defaults]
host_key_checking=False
pipelining=True
forks=100
EOF
sleep 4
cp multinode multinode.bak
vi multinode

----
[control]
controller

[network]
controller

[compute]
compute1
compute2

[monitoring]
controller

[storage]
storage

[deployment]
controller ansible_connection=local
----

ansible -i multinode all -m ping


kolla-genpwd
nano /etc/kolla/globals.yml
----
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "wallaby"
kolla_internal_vip_address: "192.168.1.10"
network_interface: "ens192"
neutron_external_interface: "ens224"
enable_neutron_provider_networks: "yes"
enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"
cinder_volume_group: "cinder-volumes"
nova_compute_virt_type: "qemu"
----

#!/bin/bash
kolla-ansible -i multinode bootstrap-servers
sleep 5
kolla-ansible -i multinode prechecks
sleep 5
kolla-ansible -i multinode deploy

kolla-ansible -i multinode post-deploy


cp /etc/kolla/admin-openrc.sh .
sudo pip install python-openstackclient / sudo apt install python-openstackclient
cp /usr/local/share/kolla-ansible/init-runonce .
./init-runonce

kolla-ansible destroy --include-images --yes-i-really-really-mean-it


vgremove cinder-volume

==== Tshoot
sudo apt-get install python-docker -y

REFF:
https://elatov.github.io/2018/01/openstack-ansible-and-kolla-on-ubuntu-1604/

You might also like