I just want to deploy an Openstack Caracal Version (you can follow the update of Openstack Release on here) on my Ubuntu Jammy as LAB. I do on VirtualBox. You can see my previous article here, i just deploy Openstack Xena on Ubuntu Focal in Cloud/VM.
- I want to deploy single node with all role of Openstack (Management & Compute) Caracal on branch Master on top of Ubuntu Jammy (22.04LTS) on VirtualBox
- I want to access with FQDN
os.test.link
for External &osint.test.link
for Internal FQDN - I want to use secondary Disk for VM Volumes (Cinder)
- I want to makesure all service call with TLS
- I want to login to horizon with
kolla
password - I want to deploy monitoring but just prometheus agent, cause the Grafana i already have existing
All that point please reffer to /etc/kolla/globals.yml
configuration below.
- 3 NIC
- NIC 1 -> NAT (enp0s3)
- NIC 2 -> Host Only Adapter (enp0s8)
- NIC 3 -> Bridge Mode (enp0s9)
- 50 GB for /dev/sda
- 50 GB for /dev/sdb
- 4 VCPU
- 8GB RAM
- Ubuntu Jammy (22.04 LTS)
192.168.56.2 osint.gbesar.link
192.168.56.3 os.gbesar.link
hostnamectl set-hostname node1
network:
ethernets:
enp0s3:
dhcp4: true
set-name: enp0s3
enp0s8:
dhcp4: true
enp0s9: {}
version: 2
sudo apt update -y && sudo apt-get full-upgrade -y
sudo tee /etc/hosts << EOT
$(hostname -i) $(hostname)
EOT
sudo pvcreate /dev/sdb
sudo vgcreate cinder-volumes /dev/sdb
sudo vgs
You can see on here for VG/PV/LV on Linux Concept/LAB
sudo apt-get install python3-dev libffi-dev gcc libssl-dev python3-selinux python3-setuptools python3-venv -y
python3 -m venv kolla-venv
source kolla-venv/bin/activate
apt install -y python3-docker
pip install -U pip
pip install wheel
pip install 'ansible-core>=2.15,<2.16.99'
sudo mkdir -p /etc/ansible
sudo nano /etc/ansible/ansible.cfg
[defaults]
host_key_checking=False
pipelining=True
forks=100
You can reffer to here. We will try to deploy Caracal version so we can use kolla-ansible==18.0.0
pip install 'kolla-ansible==18.0.0'
sudo mkdir -p /etc/kolla
sudo chown $USER:$USER /etc/kolla
cp -r kolla-venv/share/kolla-ansible/etc_examples/kolla/* /etc/kolla
cp kolla-venv/share/kolla-ansible/ansible/inventory/* .
ansible -i all-in-one all -m ping
kolla-genpwd
sed -i 's#keystone_admin_password:.*#keystone_admin_password: kolla#g' /etc/kolla/passwords.yml
- Please read this for
nova_compute_virt_type
You can use "qemu" or "kvm" if using "kvm", make sure Nested Virtualization is on. To check : cat /sys/module/kvm_intel/parameters/nested Y is activated.
nano /etc/kolla/globals.yml
## general
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "master"
kolla_internal_vip_address: "192.168.56.2"
kolla_external_vip_address: "192.168.56.3"
network_interface: "enp0s8"
neutron_external_interface: "enp0s9"
enable_openstack_core: "yes"
enable_haproxy: "no"
enable_neutron_provider_networks: "yes"
nova_compute_virt_type: "qemu"
## fqdn
kolla_external_fqdn: "os.test.link"
kolla_internal_fqdn: "osint.test.link"
## cinder
enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"
cinder_volume_group: "cinder-volumes"
enable_cinder_backup: "no"
## tls
kolla_enable_tls_external: "yes"
kolla_copy_ca_into_containers: "yes"
openstack_cacert: "/etc/ssl/certs/ca-certificates.crt"
kolla_enable_tls_internal: "yes"
kolla_enable_tls_backend: "yes"
## monitoring
enable_prometheus: "yes"
enable_prometheus_openstack_exporter: "yes"
enable_grafana: "no"
enable_prometheus_node_exporter: "no"
kolla-ansible install-deps
kolla-ansible -i ./all-in-one certificates
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
On Virtual Environment :
pip install python-openstackclient
pip install python-magnumclient
On OS :
apt install python3-openstackclient
we can use template admin-openrc.sh from /etc/kolla/
cp /etc/kolla/admin-openrc* /root/
source admin-openrc.sh
source admin-opnerc-system.sh
## Test Network Component
openstack network agent list
If you want to use Openstack CLI, you must have kolla root certificate, you can use this template for admin-openrc.sh
& admin-openrc-system.sh
. Please add this on bottom of admin-openrc.sh
export OS_CACERT=/etc/kolla/certificates/ca/root.crt
source /etc/kolla/admin-openrc.sh
openstack server list
You can access with kolla_external_fqdn
/ kolla_internal_fqdn
or kolla_internal_vip_address
/ kolla_external_vip_address
Username : admin
Password : kolla
TYPE : flat
physnet1