HOS 2.1 ネットワークカスタマイズ付きCephインストール (7/8)

2016-02-16

HOS 2.1 ネットワークカスタマイズ付きCephインストール (7/8)

Machine-translated from English. Read the English original

# インストール検証

インストーラーが正常に完了し、Ansibleのsites.ymlプレイブックがエラーなしで完了し、Cephが統合されたら、検証と設定を開始できます。

:強迫性障害(OCD)をお持ちの方へ、はい、これは以前の1〜6のブログ記事で使用された環境とはわずかに異なるビルドです。このブログ記事を書く機会を得て以来、その環境は再構築されています。ただし、プロセスは同じです。

ログインアカウントの詳細を確認

cd ~/scratch/ansible/next/hos/ansible/group_vars/

# admin user
grep admin_pwd *

# demo user
grep demo_pwd *

# kibana user
grep kibana_p *

password details

デプロイヤー /etc/hosts

update hlm alias

ネットワークの検証

ssh helion-cp1-c0-m1-mgmt

#IFS=$' ,\t\n'
while read ip name aliasname; do
    if [[ $ip != \#* ]] && [[ $ip != "" ]] ; then
                echo -n "Pinging hostname $name, $ip ..."
                ping -c2 "$name" &>/dev/null && echo success || echo fail
        fi
done < /etc/hosts

basic networking check

Cinderボリュームタイプの設定

source ~/service.osrc

cinder type-create ceph-standard

cinder type-key ceph-standard set volume_backend_name=another-fruity-ceph

cinder extra-specs-list

volumetypeCreate

source ~/service.osrc

cinder list

cinder create --volume_type ceph-standard --display_name allthingscloud.eu-volume 5

cinder show <volume-id>

cinder delete <volume-id>

cinder list

volumecreate

外部ネットワーク(フローティングIP)の設定

source ~/service.osrc

neutron net-create --shared --router:external ext-net

neutron subnet-create ext-net 172.16.62.0/24 --gateway 172.16.62.1 --allocation-pool start=172.16.62.150,end=172.16.62.200 --enable-dhcp

neutron net-external-list

ext-net

プライベートネットワークの追加

source demo-openrc.sh

neutron --insecure net-create private-demo-net

neutron --insecure subnet-create private-demo-net 192.168.100.0/24 --name private-demo-subnet --dns-nameserver 172.16.1.5 --gateway 192.168.100.1

neutron --insecure router-create demo-router

neutron --insecure router-interface-add demo-router private-demo-subnet

neutron --insecure router-gateway-set demo-router ext-net

接続性の検証

ssh helion-cp1-c1-m1-mgmt

source service.osrc

ip netns

neutron router-port-list demo-router

ping -c 4 <external gateway ip address>

verifyExternalGateway

テストイメージのアップロード

cd ~/scratch/ansible/next/hos/ansible

ansible-playbook -i hosts/verb_hosts glance-cloud-configure.yml -e proxy="http://172.16.1.5:8080"

imageDownload

Tempest検証テストの設定

cd ~/scratch/ansible/next/hos/ansible

ansible-playbook -i hosts/verb_hosts cloud-client-setup.yml

source /etc/environment

TempestPrep

Tempestの実行

cd ~/scratch/ansible/next/hos/ansible

ansible-playbook -i hosts/verb_hosts tempest-run.yml

Tempestの結果

TempestResults

Horizonへのアクセス

grep vip-HZN-WEB /etc/hosts

HorizonIP

Horizonポータル

運用コンソールへのアクセス

http://vip:9095

運用ポータル

ELK – 集中ログへのアクセス

http://vip:5601

ELKPortal

今回はこれで終わりです。このシリーズの最後のブログ記事では、インストールプロセス中に遭遇したいくつかのエラーについてカバーします。

Originally published on allthingscloud.eu (2016-02-16).

← All posts