Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • D Dashboard Task Ui
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • shabnam mahboubi
  • Dashboard Task Ui
  • Issues
  • #1
Closed
Open
Issue created Sep 13, 2025 by Mojtaba Mobasher Amini@mojtaba.mobasher

Install OpenStack with Kolla ansible(zed verion)

Install OpenStack with Kolla Ansible

OpenStack version "2023.2"

Install Python build and virtual environment dependencies:

apt update -y apt install python3-dev libffi-dev gcc libssl-dev python3-selinux python3-setuptools python3-venv -y

## Create a virtual environment and activate it:

python3 -m venv kolla-venv echo "source ~/kolla-venv/bin/activate" >> ~/.bashrc source ~/kolla-venv/bin/activate

## Installing Ansible:
`Remember it might not be available to iranin, so use DNS or vpn`

pip install -U pip pip install 'ansible-core>=2.14,<2.16' ansible --version pip install "git+https://opendev.org/openstack/kolla-ansible@refs/tags/2023.2-eol" kolla-ansible install-deps

Initiating Kolla Base:

mkdir -p /etc/kolla chown USER:USER /etc/kolla

Copying global and password configs:

cp -r ~/kolla-venv/share/kolla-ansible/etc_examples/kolla/* /etc/kolla cp ~/kolla-venv/share/kolla-ansible/ansible/inventory/* .

Creating file `ansible.cfg`:

mkdir /etc/ansible vim /etc/ansible/ansible.cfg [defaults] host_key_checking=False pipelining=True forks=100

Generate Password and certificates:

kolla-genpwd

Setting global config file:

vim /etc/kolla/globals.yml workaround_ansible_issue_8743: yes kolla_base_distro: "ubuntu" openstack_release: "master" kolla_internal_vip_address: "127.0.0.1" kolla_external_vip_address: "127.0.0.1" kolla_external_vip_interface: "lo" neutron_external_interface: "ens3" neutron_plugin_agent: "openvswitch" enable_openstack_core: "yes" enable_fluentd: "no" enable_neutron_provider_networks: "yes" neutron_ovn_distributed_fip: "no"

# deploying actual OpenStack:

Before you start, ensure that libvirt is either not installed or stopped and disabled on compute systems.

Bootstrap servers with kolla deploy dependencies

kolla-ansible bootstrap-servers -i multinode

Do pre-deployment checks for hosts

kolla-ansible prechecks -i multinode

Finally, proceed to the actual OpenStack deployment

kolla-ansible deploy -i multinode

Do post-deploy after OpenStack is successfully deployed

kolla-ansible post-deploy -i multinode

Install OpenStack Client

pip3 install python-openstackclient

sourceing necessary info:

cp /etc/kolla/admin-openrc.sh ~/keystonerc
source keystonerc
OpenStack project list

Now you should be able to see the project list and log in to the web(Horizon) and enjoy.

adding images to OpenStack:

Adding Ubuntu images:
wget http://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img
openstack image create "Ubuntu2204" --file ubuntu-22.04-server-cloudimg-amd64.img --disk-format qcow2 --container-format bare --public



Note that I had to make an Issue as I didn't have the necessary permission to fork the project.
Edited Sep 13, 2025 by Mojtaba Mobasher Amini
Assignee
Assign to
Time tracking