0% found this document useful (0 votes)
54 views7 pages

OpenStack Pike Volet 1

Travaux de synthèse en anglais : - Installation et configuration de Openstack sous CentOS volet 1; - Etc.

Uploaded by

IRIE
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)
54 views7 pages

OpenStack Pike Volet 1

Travaux de synthèse en anglais : - Installation et configuration de Openstack sous CentOS volet 1; - Etc.

Uploaded by

IRIE
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/ 7

OpenStack Pike

2017/09/03

Travaux de synthèse : Taylor VOLI

Volet 1
2

OpenStack Pike : Overview


2017/09/03

This is the Example of building Cloud Computing infrastracture by OpenStack Pike.


Please learn simply description about OpenStack below before building.
(1) Main Components of OpenStack

Service Code Name Description

Identity Service Keystone User Management

Compute Service Nova Virtual Machine Management

Image Service Glance Manages Virtual image like kernel image


or disk image

Dashboard Horizon Provides GUI console via Web browser

Object Storage Swift Provides Cloud Storage

Block Storage Cinder Storage Management for Virtual Machine

Network Service Neutron Virtual Networking Management

Orchestration Service Heat Provides Orchestration function for Virtual


Machine

Metering Service Ceilometer Provides the function of Usage


measurement for accounting

Database Service Trove Database resource Management

Data Processing Service Sahara Provides Data Processing function

Bare Metal Provisioning Ironic Provides Bare Metal Provisioning function

Messaging Service Zaqar Provides Messaging Service function

Shared File System Manila Provides File Sharing Service

DNS Service Designate Provides DNS Server Service


3

Key Manager Service Barbican Provides Key Management Service

OpenStack Pike : Pre-Requirements


2017/09/03

This is the exmaple of Cloud Computiong by OpenStack Pike.


Install some services that some components of OpenStack needs for system requirements on
here.
This example is based on the emvironment like follows.
eth0|10.0.0.30
+-----------+-----------+
| [ Control Node ] |
| |
| MariaDB RabbitMQ |
| Memcached |
+-----------------------+

[1] Install NTP Server to adjusts the date, refer to here.


[2] Add the repository of Openstack Pike.
[root@dlp ~]#
yum -y install centos-release-openstack-pike

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

Install MariaDB server.


It's possible to use MariaDB 5.5 on CentOS Base repository though, but on this exmaple,
[3]
Install MariaDB 10.1 provided from CentOS Release Openstack Newton above.
After installation, Configure basic settings, refer to here.
# install from Openstack Pike

[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

Creating user "openstack" ...


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

Setting permissions for user "openstack" in vhost "/" ...


...done.
[5] If Firewalld is running, allow ports for services.
[root@dlp ~]#
firewall-cmd --add-port={11211/tcp,5672/tcp} --permanent

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

success
5

OpenStack Pike : Configure Keystone#1


2017/09/03

Install and Configure OpenStack Identity Service (Keystone).


This example is based on the emvironment like follows.
eth0|10.0.0.30
+-----------+-----------+
| [ Control Node ] |
| |
| MariaDB RabbitMQ |
| Memcached httpd |
| Keystone |
+-----------------------+

[1] Add a User and Database on MariaDB for Keystone.


[root@dlp ~]#
mysql -u root -p

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

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>
create database keystone;

Query OK, 1 row affected (0.00 sec)


MariaDB [(none)]>
grant all privileges on keystone.* to keystone@'localhost' identified by 'password';

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]>
grant all privileges on keystone.* to keystone@'%' identified by 'password';

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]>
flush privileges;

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]>
exit

Bye
6

[2] Install Keystone.


# install from Pike, EPEL

[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

[5] If Firewalld is running, allow ports for services.


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

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

You might also like