参考URL
OpenStack Docs: OpenStack Installation Guide
以下作業をUbuntu 16.04LTS最小インストール後のコントローラ3台に実施する。
①apparmor無効化
$ sudo systemctl stop apparmor.service $ sudo systemctl disable apparmor.service $ sudo shutdown -r now
②NW設定
/etc/network/interfaces
※ipaddressはノード毎に適宜変更
source /etc/network/interfaces.d/* auto lo iface lo inet loopback auto ens3 iface ens3 inet static address 192.168.0.51 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 192.168.0.1 auto ens9 iface ens9 inet static address 192.168.1.51 netmask 255.255.255.0
/etc/hostname
※ノード毎に適宜変更
$ cnt1
設定ファイル変更し再起動(networklingサービス再起動では反映されない。以下URL参照)
Ubuntuでネットワーク設定の変更をする - Qiita
③OpenSSHセットアップ
$ sudo apt install openssh-server
④時刻同期設定
$ sudo apt -y install chrony $ sudo systemctl disable systemd-timesyncd $ sudo systemctl enable chrony $ sudo shutdown -r now
再起動後、時刻同期確認
$ chronyc sources
⑤hostsファイル編集
/etc/hosts
127.0.0.1 localhost 192.168.1.50 cnt.local cnt 192.168.1.51 cnt1.local cnt1 192.168.1.52 cnt2.local cnt2 192.168.1.53 cnt3.local cnt3 192.168.1.61 nw1.local nw1 192.168.1.62 nw2.local nw2 192.168.1.71 cm1.local cm1 192.168.1.72 cm2.local cm2 192.168.1.1 nfs.local nfs # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
⑥OpenStackレポジトリ追加&パッケージ最新化&パッケージインストール
$ sudo add-apt-repository cloud-archive:pike $ sudo apt update && sudo apt full-upgrade $ sudo apt -y install python-openstackclient nfs-common crudini apt-file
※apt-fileはyum provides同等機能を提供