Skip to content

Home Lab

Notes from my learning sessions

Menu
Menu

Pre-requisites in Controller node

Posted on October 9, 2020December 4, 2020 by sandeep

Add MariaDB repository as we need v10.5

wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup

chmod +x mariadb_repo_setup

./mariadb_repo_setup --mariadb-server-version="mariadb-10.5"

apt update

apt -y upgrade

apt install -y mariadb-server python-pymysql

Create /etc/mysql/mariadb.conf.d/99-openstack.cnf with following contents. Note : since I had enough memory in controller node set the value of buffer pool size.

[mysqld]
bind-address = 10.1.1.60
innodb_buffer_pool_size = 8G
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8

Restart service, set password for root user, and disable root user login from remote system

service mysql restart
mysql_secure_installation

Install message queue component, add user account and set permissions

apt install -y rabbitmq-server

rabbitmqctl add_user openstack commonpass
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
systemctl enable rabbitmq-server.service

Install memcached

apt install -y memcached python-memcache

Edit the /etc/memcached.conf file and configure the service to use the management IP address of the controller node. This is to enable access by other nodes via the management network. Replace -l 127.0.0.1 to -l 10.1.1.60 (management ip address of controller node) and restart memcached

systemctl enable memcached
service memcached restart

Install etcd

apt install -y etcd

Edit the /etc/default/etcd file and set the ETCD_INITIAL_CLUSTER, ETCD_INITIAL_ADVERTISE_PEER_URLS, ETCD_ADVERTISE_CLIENT_URLS, ETCD_LISTEN_CLIENT_URLS to the management IP address of the controller node to enable access by other nodes via the management network. All default configurations were commented. So added the following

ETCD_NAME="controller"
ETCD_DATA_DIR="/var/lib/etcd"
ETCD_INITIAL_CLUSTER_STATE="new"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER="controller=http://10.1.1.60:2380"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://10.1.1.60:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://10.1.1.60:2379"
ETCD_LISTEN_PEER_URLS="http://0.0.0.0:2380"
ETCD_LISTEN_CLIENT_URLS="http://10.1.1.60:2379"

Restart etcd

systemctl enable etcd
systemctl restart etcd

Recent Posts

  • Openstack Xena on Ubuntu 20.04 – Cinder
  • Preparing custom Debian 11 MATE image
  • Setup Ubuntu 20.04 repository mirror server
  • Preparing custom Debian 11 server cloud image
  • Complile Linux Kernel (on Debian 11)
  • Openstack Xena – Test Home Lab
  • Openstack Xena on Ubuntu 20.04 – Horizon
  • Openstack Xena on Ubuntu 20.04 -Home Lab
  • Openstack Xena on Ubuntu 20.04 – Neutron
  • Openstack Xena on Ubuntu 20.04 – Nova

Archives

  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • October 2021
  • September 2021
  • October 2020
  • February 2020
  • January 2020
  • December 2019
© 2022 Home Lab | Powered by Minimalist Blog WordPress Theme