Contrail コマンドと instances.yml を使用した Contrail クラスターのインストール
Contrail Networking では、Contrail Command と instances.yml ファイルを使用した Contrail クラスターの導入がサポートされています。YAML ファイルは、インスタンス設定を指定するための簡潔な形式を提供します。
ほとんどの Contrail Networking 導入環境では、Contrail Command をインストールし、Contrail Command から Contrail クラスターを展開することをお勧めします。 「Contrail コマンドをインストールし、Contrail クラスターをプロビジョニングする方法」を参照してください。このドキュメントの手順は、推奨される手順を使用しない強い理由がある場合にのみ使用してください。
システム要件
以下を備えた VM または物理サーバー。
4個のvCPU
32 GB RAM
100 GB ディスク
物理サーバー(以降、Contrail Commandサーバーと呼びます)との間のインターネットアクセス
(推奨)Contrail コマンドをインストールするためのベースOSとしてCentOS 7.6を搭載したx86サーバー
すべての Contrail Networking リリースでサポートされているプラットフォームの一覧については、「 Contrail Networkingでサポートされているプラットフォームの一覧」を参照してください。
Contrail リリース 5.1 は、Contrail Cluster instances.yml ファイルを使用したコマンドラインからの Contrail Insights の導入をサポートしていません。
始める前に
docker-py
PythonモジュールはPythonモジュールにdocker
取って代わられました。Contrail コマンド UI をインストールするすべてのノードから Python パッケージを削除するdocker-py
docker
必要があります。
pip uninstall docker-py docker
構成
Contrail コマンドと instances.yml ファイルを使用して Contrail クラスターを展開するには、次の手順を実行します。
すべての RedHat ノードでサブスクリプションを有効にします。
sudo subscription-manager register --username <USERNAME> –-password <PASSWORD> sudo subscription-manager attach --pool pool_id sudo subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-rh-common-rpms --enable=rhel-ha-for-rhel-7-server-rpms --enable=rhel-7-server-extras-rpms
サンプルinstances.ymlファイル
global_configuration: CONTAINER_REGISTRY: hub.juniper.net/contrail CONTAINER_REGISTRY_USERNAME: < container_registry_username > CONTAINER_REGISTRY_PASSWORD: < container_registry_password > provider_config: bms: ssh_pwd: <Pwd> ssh_user: root ntpserver: <NTP Server> domainsuffix: local instances: bms1: provider: bms ip: <BMS IP> roles: config_database: config: control: analytics_database: analytics: webui: vrouter: openstack: openstack_compute: bms2: provider: bms ip: <BMS2 IP> roles: openstack: bms3: provider: bms ip: <BMS3 IP> roles: openstack: bms4: provider: bms ip: <BMS4 IP> roles: config_database: config: control: analytics_database: analytics: webui: bms5: provider: bms ip: <BMS5 IP> roles: config_database: config: control: analytics_database: analytics: webui: bms6: provider: bms ip: <BMS6 IP> roles: config_database: config: control: analytics_database: analytics: webui: bms7: provider: bms ip: <BMS7 IP> roles: vrouter: PHYSICAL_INTERFACE: <Interface name> VROUTER_GATEWAY: <Gateway IP> openstack_compute: bms8: provider: bms ip: <BMS8 IP> roles: vrouter: # Add following line for TSN Compute Node TSN_EVPN_MODE: True openstack_compute: contrail_configuration: CLOUD_ORCHESTRATOR: openstack CONTRAIL_VERSION: latest or <contrail_container_tag> RABBITMQ_NODE_PORT: 5673 KEYSTONE_AUTH_PUBLIC_PORT: 5005 VROUTER_GATEWAY: <Gateway IP> ENCAP_PRIORITY: VXLAN,MPLSoUDP,MPLSoGRE AUTH_MODE: keystone KEYSTONE_AUTH_HOST: <Internal VIP> KEYSTONE_AUTH_URL_VERSION: /v3 CONTROLLER_NODES: < list of mgmt. ip of control nodes > CONTROL_NODES: <list of control-data ip of control nodes> OPENSTACK_VERSION: queens kolla_config: kolla_globals: openstack_release: queens kolla_internal_vip_address: <Internal VIP> kolla_external_vip_address: <External VIP> openstack_release: queens enable_haproxy: "no" ("no" by default, set "yes" to enable) enable_ironic: "no" ("no" by default, set "yes" to enable) enable_swift: "no" ("no" by default, set "yes" to enable) keystone_public_port: 5005 swift_disk_partition_size = 10GB keepalived_virtual_router_id: <Value between 0-255> kolla_passwords: keystone_admin_password: <Keystone Admin Password>
この代表的な instances.yaml ファイルは、 と KEYSTONE_AUTH_PUBLIC_PORT:を設定することで、keystone_public_port:デフォルト以外のキーストーンポートを設定します。