LoginSignup
3
3

More than 3 years have passed since last update.

5G基盤の為のOPNFV構築

Posted at

目的

5G基盤となるを構築可能なオープンソースOAI(OpenAirInterafce)を使用するための基盤を、OPNFV-apexにより構築する。
その際の備忘録 ※5G部分は本記事にはでてこない

OPNFVとは

簡単に、NFV関連のPoCに最適なOSS達を一括で構築し、ほとんど編集しなくても、ある程度の連携まで設定してくれるインストーラ
中ではRDO,TripleOとかが動いている。

参考:
RDOの公式ページ
TripleOの公式ページ

ハードウェアリソース

構成にもよるがOAIを動かすためには、それなりにメモリは必要。
今回はnoHA構成とした。

カーネル・OSバージョン

カーネル 3.10.0-957.5.1.el7.x86_64
CentOS Linux release 7.6.1810

 前提

  • インターネット接続
  • systemd 無効化
    • NetworkManager
    • Firewall
    • Postfix
  • Selinux 無効化

パッケージ収集

opnfv-apexの最新版は安定しないしドキュメントも中途半端なため、安定verであるfraserを使用

yum clean

yum -y groupinstall "Virtualization Host"

yum install -y epel-release screen

yum install -y https://repos.fedorapeople.org/repos/openstack/openstack-pike/rdo-release-pike-1.noarch.rpm

curl -o /etc/yum.repos.d/opnfv-apex.repo http://artifacts.opnfv.org/apex/fraser/opnfv-apex.repo

wget http://artifacts.opnfv.org/apex/fraser/opnfv-apex{,-undercloud,-python34}-6.2.noarch.rpm

mkdir -p images && wget -q -O-https://git.opnfv.org/functest/plain/functest/ci/download_images.sh?h=stable/fraser | bash -s --images && ls -1 images/*

yum install -y opnfv-apex{,-undercloud,-python34}-6.2.noarch.rpm

curl -sSL https://get.docker.com/ | sh
systemctl enable docker#
systemctl start docker

構築

デプロイファイル編集

# cp /etc/opnfv-apex/network_settings.yaml ~/network.yaml
# cp  /etc/opnfv-apex/os-nosdn-nofeature-ha.yaml ~/deploy.yaml

デプロイ

# opnfv-deploy -v -n ./network.yaml -d ./deploy.yaml --virtual-compute-ram 32 --virtual-default-ram 32 --virtual-cpus 12 

1時間近くかかる。。

2019-02-28 12:08:54,488 INFO: PLAY RECAP *********************************************************************
192.0.2.9                  : ok=4    changed=3    unreachable=0    failed=0

~~
正常終了したらこんな感じ↓
2019-02-28 12:08:54,536 INFO: Post Deploy Overcloud Configuration Complete for node overcloud-novacompute-0
2019-02-28 12:08:54,536 INFO: Apex deployment complete
2019-02-28 12:08:54,536 INFO: Undercloud IP: 192.168.122.40, please connect by doing 'opnfv-util undercloud'

途中失敗したらopnfv-clean後に再度実行
基本的にパッケージ関連なので、何かおきたらyum周りを見直して、力技でぶっこむ。

※リソースが足りないとSegvでコアダンプ吐き出して強制終了する。

openstack

デフォルトのセキュリティグループでSSH接続を有効にする設定を追加する必要がある。
多分Neutron,Nove,Keystoneあたりの連携の設定。(インスタンスに鍵は登録されている)

# openstack security group rule create --protocol icmp --ingress default

インスタンス同士を繋ぐ

# sudo echo "192.168.37.207  ran" >> /etc/hosts
# sudo echo "192.168.37.204  cn" >> /etc/hosts

# ssh ubuntu@ran

ubuntu@ran:~$
sudo -s

or

# ssh ubuntu@cn

ubuntu@cn:~$

ひとまず、OpenStackを構築し、インスタンス同士の接続を確認。
OpenStackのところ雑すぎる。。
また更新します。
あと、誰かOPNFVの最新版とか動いたって人がいたら簡単な構成教えていただけると幸いです。

参考

https://docs.opnfv.org/en/stable-gambia/release/installation.introduction.html
https://www.server-world.info/query?os=CentOS_7&p=openstack_ocata&f=13

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3