OpenStack Ussuri : Pre-Requirements2020/06/08 |
This is the exmaple of Cloud Computiong by OpenStack Ussuri.
Install some services that some components of OpenStack needs for system requirements on here.
This example is based on the environment like follows. eth0|10.0.0.30 +-----------+-----------+ | [ Control Node ] | | | | MariaDB RabbitMQ | | Memcached | +-----------------------+ |
[1] | |
[2] | |
[3] | Add Repository of Openstack Ussuri and also Upgrade CentOS System. Especially, it needs to upgrade some Python3 packages from Openstack Ussuri repository. |
[root@dlp ~]# dnf -y install centos-release-openstack-ussuri [root@dlp ~]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-OpenStack-ussuri.repo [root@dlp ~]# dnf --enablerepo=centos-openstack-ussuri -y upgrade |
[4] | Install RabbitMQ, Memcached. |
[root@dlp ~]#
vi /etc/my.cnf.d/mariadb-server.cnf # add into [mysqld] section [mysqld] ..... ..... # default value 151 is not enough on Openstack Env max_connections=500
[root@dlp ~]#
vi /etc/sysconfig/memcached # line 5: change (listen all) OPTIONS="-l 0.0.0.0,:: "
[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 SELinux is enabled, change policy. |
[root@dlp ~]#
vi rabbitmqctl.te # create new module rabbitmqctl 1.0; require { type rabbitmq_t; type rabbitmq_var_log_t; type rabbitmq_var_lib_t; type etc_t; type init_t; class file write; class file getattr; } #============= rabbitmq_t ============== allow rabbitmq_t etc_t:file write; #============= init_t ================== allow init_t rabbitmq_var_lib_t:file getattr; allow init_t rabbitmq_var_log_t:file getattr; checkmodule -m -M -o rabbitmqctl.mod rabbitmqctl.te [root@dlp ~]# semodule_package --outfile rabbitmqctl.pp --module rabbitmqctl.mod [root@dlp ~]# semodule -i rabbitmqctl.pp |
[6] | If Firewalld is running, allow ports for services. |
[root@dlp ~]# firewall-cmd --add-service={mysql,memcache} --permanent success [root@dlp ~]# firewall-cmd --add-port=5672/tcp --permanent success [root@dlp ~]# firewall-cmd --reload success |
Sponsored Link |