0% found this document useful (0 votes)
61 views6 pages

The Ip - 4

Uploaded by

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

The Ip - 4

Uploaded by

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

To set up OpenStack using Kolla-Ansible with a single network and single storage,

you can modify the instructions in the guide you provided. Here's how to proceed:

1. Preparation

1.​ System Requirements


○​ Ubuntu 22.04 (Jammy) as your base OS.
○​ At least 8GB RAM, 4 VCPUs, and two storage disks (one for the system,
one for OpenStack storage).
2.​ Network Configuration

Single NIC setup for simplicity:​


yaml​
Copy code​
network:

ethernets:

enp0s3:

dhcp4: true

version: 2

○​

Adjust /etc/hosts:​
bash​
Copy code​
sudo tee /etc/hosts << EOT

$(hostname -i) $(hostname)

EOT

○​

Install Updates​
bash​
Copy code​
sudo apt update && sudo apt full-upgrade -y

3.​
2. Install Kolla-Ansible

Set Up Dependencies​
bash​
Copy code​
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 python3-docker -y

pip install -U pip

pip install wheel

pip install 'ansible-core>=2.15,<2.16.99'

pip install 'kolla-ansible==18.0.0'

1.​

Prepare Configurations​
bash​
Copy code​
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/* .

2.​

3. Configure OpenStack

Edit the /etc/kolla/globals.yml file with the following adjustments for single
network and storage:

yaml

Copy code
# General settings

kolla_base_distro: "ubuntu"

kolla_install_type: "source"

openstack_release: "master"

kolla_internal_vip_address: "192.168.1.10" # Adjust based on your


subnet

kolla_external_vip_address: "192.168.1.10" # Same as internal for


single network

network_interface: "enp0s3" # Single NIC

neutron_external_interface: "enp0s3"

# Nova settings

nova_compute_virt_type: "qemu" # For non-nested virtualization


environments

# Cinder settings

enable_cinder: "yes"

enable_cinder_backend_lvm: "yes"

cinder_volume_group: "cinder-volumes"

# TLS (optional, based on guide settings)

kolla_enable_tls_external: "no"

kolla_enable_tls_internal: "no"

# Monitoring (optional)

enable_prometheus: "no"
enable_grafana: "no"

4. Set Up Storage

Initialize your secondary disk for Cinder volumes:​


bash​
Copy code​
sudo pvcreate /dev/sdb

sudo vgcreate cinder-volumes /dev/sdb

sudo vgs

1.​

5. Deploy OpenStack

Generate Passwords:​
bash​
Copy code​
kolla-genpwd

sed -i 's#keystone_admin_password:.*#keystone_admin_password:
kolla#g' /etc/kolla/passwords.yml

1.​

Run Deployment:​
bash​
Copy code​
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
2.​

6. Verify Setup

Source the admin credentials:​


bash​
Copy code​
source /etc/kolla/admin-openrc.sh

openstack server list

1.​
2.​ Access the Horizon Dashboard:
○​ URL: http://192.168.1.10 (or the IP used in
kolla_internal_vip_address)
○​ Username: admin
○​ Password: kolla

Would you like to dive deeper into any specific part of the setup?

4o

You said:

(kolla-venv) root@cloud:/home/cloud# sudo pvcreate /dev/sdb sudo vgcreate


cinder-volumes /dev/sdb sudo vgs sudo: pvcreate: command not found sudo:
vgcreate: command not found sudo: vgs: command not found (kolla-venv)
root@cloud:/home/cloud#

ChatGPT said:

ChatGPT

The commands pvcreate, vgcreate, and vgs are part of the LVM (Logical Volume
Manager) utilities, which are not installed by default on all Linux systems. You need to
install the required package to use these commands.

Install LVM Utilities

Run the following command to install LVM utilities on Ubuntu:

bash

Copy code
sudo apt-get install lvm2 -y

Verify Installation

After installing, you can verify the availability of the commands:

bash

Copy code

which pvcreate vgcreate vgs

Retry LVM Setup

Once the tools are installed, retry the commands:

bash

Copy code

sudo pvcreate /dev/sdb

sudo vgcreate cinder-volumes /dev/sdb

sudo vgs

This should set up the physical volume and volume group required for Cinder
storage.

You might also like