Openstack (mitaka)のインストール

更新日 2016-08-16 (火) 16:08:04

CentOSのインストール

OpenstackをインストールするOSはVMwareにインストール

VMWareの設定

CentOSのインストール

openstack1.png

openstack2.png

openstack3.png

openstack4.png

openstack5.png

openstack6.png

openstack7.png

openstack8.png

openstack9.png

openstack10.png

openstack11.png

Openstackのインストール

OS環境設定

# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
# systemctl stop NetworkManager

# systemctl restart network

# yum -y install net-tools
時間は正確に合わせる
# yum install -y ntp

# service ntpd start
Redirecting to /bin/systemctl start  ntpd.service

# systemctl enable ntpd

/etc/sysconfig/network-scripts/ifcfg-eno16777736

TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=eno16777736
DEVICE=eno16777736
ONBOOT=yes
IPADDR=192.168.10.96
PREFIX=24
GATEWAY=192.168.10.245
DNS1=192.168.10.46
DOMAIN=ism21.net

/etc/selinux/config

SELINUX=disabled

# reboot

Openstack Install

# yum install -y centos-release-openstack-mitaka
# yum install -y openstack-packstack
# yum update -y
# packstack --gen-answer-file answer-file.txt

answer-file.txt

CONFIG_HEAT_INSTALL=y
 オーケストレーション機能を有効化
CONFIG_SAHARA_INSTALL=y 
 データ処理サービスを有効化
CONFIG_LBAAS_INSTALL=y 
 ロードバランスサービスを有効化
CONFIG_NEUTRON_FWAAS=y 
 ファイアウォールサービスを有効化
CONFIG_TROVE_INSTALL=y 
 データベースサービスを有効化
CONFIG_HORIZON_SSL=y 
 ダッシュボードアクセスをhttpsに変更
CONFIG_KEYSTONE_ADMIN_PW=admin
 パスワードをadminに変更
CONFIG_NTP_SERVERS=133.243.238.244
NTPサーバのアドレスを設定(ntp.nict.jp)
CONFIG_PROVISION_DEMO=n
デモ機能の無効化
CONFIG_NOVA_COMPUTE_PRIVIF=lo
CONFIG_NOVA_NETWORK_PUBIF=eno16777736
CONFIG_NOVA_NETWORK_PRIVIF=lo
# packstack --answer-file answer-file.txt
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20160730-061121-YCkNPH/openstack-setup.log
Packstack changed given value  to required value /root/.ssh/id_rsa.pub

Installing:
Clean Up                                             [ DONE ]
Discovering ip protocol version                      [ DONE ]
Setting up ssh keys                                  [ DONE ]
Preparing servers                                    [ DONE ]
(略)

192.168.10.96_postscript.pp:                         [ DONE ]
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

**** Installation completed successfully ******

環境設定

/etc/sysctl.conf

net.ipv4.tcp_keepalive_intvl=1
net.ipv4.tcp_keepalive_time=5
net.ipv4.tcp_keepalive_probes=5
net.bridge.bridge-nf-call-ip6tables=0
net.bridge.bridge-nf-call-iptables=0
net.bridge.bridge-nf-call-arptables=0

# Add JE2ISM
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.all.forwarding = 1
#cp ifcfg-eno16777736 ifcfg-br-ex

ifcfg-eno16777736

TYPE=OVSPort
DEVICE=eno16777736
ONBOOT=yes
DEVICETYPE=ovs
OVS_BRIDGE=br-ex

ifcfg-br-ex

BOOTPROTO=static
DEVICE=br-ex
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSBridge
IPADDR=192.168.10.96
PREFIX=24
GATEWAY=192.168.10.245
DNS1=192.168.10.46
DOMAIN=ism21.net
# systemctl disable firewalld
# systemctl stop firewalld

systemctl disable iptables
Removed symlink /etc/systemd/system/basic.target.wants/iptables.service.

# reboot

ネットワークの確認

# ovs-vsctl show
a54ec695-21b6-4ca6-8b5a-e17a667f6939
    Bridge br-tun
        fail_mode: secure
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
         Port br-tun
            Interface br-tun
                type: internal
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
         Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
         Port "eno16777736"
            Interface "eno16777736"
    ovs_version: "2.5.0"

ダッシュボードにアクセス

dashboard1.png

参考


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS