CentOS 7
Sponsored Link

OpenStack Train : Pre-Requirements
This is the exmaple of Cloud Computiong by OpenStack Train.
Install some services that some components of OpenStack needs for system requirements on here.
This example is based on the emvironment like follows.
|    [ Control Node ]   |
|                       |
|  MariaDB    RabbitMQ  |
|  Memcached            |

[2] Add Repository of Openstack Train.
[root@dlp ~]#
yum -y install centos-release-openstack-train

[root@dlp ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-OpenStack-train.repo

[3] Install MariaDB server.
On this exmaple, Install MariaDB 10.3 provided from CentOS Release Openstack above.
After installation, Configure basic settings with [mysql_secure_installation], refer to here.
# install from Openstack Train

[root@dlp ~]#
yum --enablerepo=centos-openstack-train -y install mariadb-server
[4] Install RabbitMQ, Memcached.
# install from Openstack Train

[root@dlp ~]#
yum --enablerepo=centos-openstack-train -y install rabbitmq-server memcached
[root@dlp ~]#
vi /etc/my.cnf.d/mariadb-server.cnf
# add into [mysqld] section

# default value 151 is not enough on Openstack Env
# because sometimes it happens errors with utf8mb4 on Openstack DB

[root@dlp ~]#
vi /etc/sysconfig/memcached
# line 5: change (listen all)

[root@dlp ~]#
systemctl restart mariadb rabbitmq-server memcached

[root@dlp ~]#
systemctl enable mariadb rabbitmq-server memcached

# add openstack user (set any password you like for "password")

[root@dlp ~]#
rabbitmqctl add_user openstack password

Creating user "openstack"
[root@dlp ~]#
rabbitmqctl set_permissions openstack ".*" ".*" ".*"

Setting permissions for user "openstack" in vhost "/"
[5] If Firewalld is running, allow ports for services.
[root@dlp ~]#
firewall-cmd --add-service=mysql --permanent

[root@dlp ~]#
firewall-cmd --add-port={11211/tcp,5672/tcp} --permanent

[root@dlp ~]#
firewall-cmd --reload

Matched Content