Setup Kolla-ansible OpenStack Cluster in Vagrant 2020
This is a note on setting up kolla ansible openstack develop envrionment in your working machine.
I referred to this document: https://docs.openstack.org/kolla-ansible/latest/contributor/vagrant-dev-env.html
I had done this in 2020 May on my old mac mini with Catalina ;-). With 20 GiB disk and 6GiB RAM assigned to one Vagrant spawned (virtualbox), the OpenStack Cluster is running pretty well, comparing to my previous setups ( multi-VMs based manually deployment and VM based Mirantis Fuel 9.0 deployment), it’s obviously more reponsive with the help of the single node setup.
Here I leave the notes as a reference for you to have a playground easier.
Preparation
Install vagrant and plugins needed
Below is an example to do this on a macOS machine, to do that from other OS, refer to here
1 | brew cask install virtualbox vagrant |
Clone kolla repo
We need to clone below three repositories.
1 | git clone https://opendev.org/openstack/kolla-cli |
Customise Vagrant scripts
I found the configuration file out-of-box is no longer working/ out of repair for some time, below changes on Vagrantfile
, Vagrantfile.custom
, and bootstrap.sh
are needed.
For Vagrantfile.custom, we need to use Ubuntu 18.04 instead of 16.04, which comes with python3.6+ in apt repo.