OpenStack Pike Volet 1
OpenStack Pike Volet 1
2017/09/03
Volet 1
2
[root@dlp ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-OpenStack-pike.repo
[root@dlp ~]#
yum --enablerepo=centos-openstack-pike -y install mariadb-server
[4] Install RabbitMQ, Memcached.
# install from EPEL
[root@dlp ~]#
yum --enablerepo=epel -y install rabbitmq-server memcached
[root@dlp ~]#
systemctl start rabbitmq-server memcached
4
[root@dlp ~]#
systemctl enable rabbitmq-server memcached
# add openstack user (set any password you like for "password")
[root@dlp ~]#
rabbitmqctl add_user openstack password
success
[root@dlp ~]#
firewall-cmd --reload
success
5
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.1.20-MariaDB MariaDB Server
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
create database keystone;
Bye
6
[root@dlp ~]#
yum --enablerepo=centos-openstack-pike,epel -y install openstack-keystone openstack-utils
python-openstackclient httpd mod_wsgi
[3] Configure Keystone.
[root@dlp ~]#
vi /etc/keystone/keystone.conf
# line 529: uncomment and specify Memcache server
memcache_servers =
10.0.0.30:11211
# line 662: add ( MariaDB connection info )
connection = mysql+pymysql://keystone:[email protected]/keystone
[token]
# line 2715: add
provider = fernet
driver = memcache
[root@dlp ~]#
su -s /bin/bash keystone -c "keystone-manage db_sync"
# initialize keys
[root@dlp ~]#
keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
[root@dlp ~]#
keystone-manage credential_setup --keystone-user keystone --keystone-group keystone
# define own host (controller host)
[root@dlp ~]#
export controller=10.0.0.30
# bootstrap keystone (replace any password you like for "adminpassword" section)
[root@dlp ~]#
keystone-manage bootstrap --bootstrap-password adminpassword \
--bootstrap-admin-url http://$controller:35357/v3/ \
--bootstrap-internal-url http://$controller:35357/v3/ \
--bootstrap-public-url http://$controller:5000/v3/ \
--bootstrap-region-id RegionOne
[4] If SELinux is enabled, change boolean settings.
[root@dlp ~]#
setsebool -P httpd_use_openstack on
7
[root@dlp ~]#
setsebool -P httpd_can_network_connect on
[root@dlp ~]#
setsebool -P httpd_can_network_connect_db on
success
[root@dlp ~]#
firewall-cmd --reload
success
[6] Enableconfig for Keystone ans start Apache httpd.
[root@dlp ~]#
ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
[root@dlp ~]#
systemctl start httpd
[root@dlp ~]#
systemctl enable httpd