AIO Tungsten Fabric & OpenStack Queens

Tungsten Fabric adalah controller Software Defined Networking

dengan menggunakan 2 node, 1 node deployer ansible dan 1 node AIO dengan spesifikasi:

  • Centos 7.5
  • Single Interface (10.200.200.0/24)
  • 16 GB RAM
  • 4 Core CPU
  • Allow SSH Password Access

Dengan alokasi IP:

  • AIO Node (10.200.200.210)
  • Deployer Node (10.200.200.100)

Deployer Node

  • Install Paket yang diperlukan
yum -y install git nano screen
yum -y install ansible
  • Clone Repository Tungsten Fabric
git clone http://github.com/Juniper/contrail-ansible-deployer
  • Edit Konfigurasinya
cd contrail-ansible-deployer
nano config/instances.yaml

Berikut adalah contoh dari konfigurasi yang digunakan:

provider_config:
  bms:
    ssh_pwd: PASSWORD_SSH_AIO
    ssh_user: root
    domainsuffix: local
    ntpserver: time.google.com

instances:
  server1:
    provider: bms
    ip: 10.200.200.210
    roles:
      config_database:
      config:
      control:
      analytics_database:
      analytics:
      webui:
      vrouter:
      openstack:
      openstack_compute:

contrail_configuration:
  CONTRAIL_VERSION: latest

  CLOUD_ORCHESTRATOR: openstack
  OPENSTACK_VERSION: queens

  VROUTER_GATEWAY: 10.200.200.1

  AUTH_MODE: keystone
  KEYSTONE_AUTH_URL_VERSION: /v3

  UPGRADE_KERNEL: true
  JVM_EXTRA_OPTS: "-Xms1g -Xmx2g"

  CONFIG_DATABASE_NODEMGR__DEFAULTS__minimum_diskGB: "2"
  DATABASE_NODEMGR__DEFAULTS__minimum_diskGB: "2"


kolla_config:
  kolla_globals:
    enable_haproxy: "no"
    enable_swift: "no"
    enable_ironic: "no"
    enable_ceilometer: "no"
    enable_heat: "no"
    enable_barbican: "no"
  kolla_passwords:
    keystone_admin_password: PASSWORD_OPENSTACK_TUNGSTEN
  • Jalankan Deployer Ansible
ansible-playbook -i inventory/ -e orchestrator=openstack playbooks/configure_instances.yml
ansible-playbook -i inventory/ playbooks/install_openstack.yml
ansible-playbook -i inventory/ -e orchestrator=openstack playbooks/install_contrail.yml

AIO Node

  • Cek Status Tungsten Fabric
[root@zu-tfAIO ~]# contrail-status
Pod              Service         Original Name                          State    Id            Status         
                 redis           contrail-external-redis                running  e8bc9df4aef4  Up 25 minutes  
analytics        api             contrail-analytics-api                 running  5c0816a2a4d7  Up 18 minutes  
analytics        collector       contrail-analytics-collector           running  a83681f6f6f7  Up 18 minutes  
analytics        nodemgr         contrail-nodemgr                       running  529955e420fa  Up 18 minutes  
config           api             contrail-controller-config-api         running  f07f5d6ed230  Up 22 minutes  
config           device-manager  contrail-controller-config-devicemgr   running  65a580b8657f  Up 22 minutes  
config           nodemgr         contrail-nodemgr                       running  d3e4c2ab2381  Up 22 minutes  
config           schema          contrail-controller-config-schema      running  9cda86a93859  Up 22 minutes  
config           svc-monitor     contrail-controller-config-svcmonitor  running  f15e61dd35a1  Up 22 minutes  
config-database  cassandra       contrail-external-cassandra            running  f1e4d3aa27c7  Up 24 minutes  
config-database  nodemgr         contrail-nodemgr                       running  2310be457b5d  Up 24 minutes  
config-database  rabbitmq        contrail-external-rabbitmq             running  34c4bfd6f46c  Up 24 minutes  
config-database  zookeeper       contrail-external-zookeeper            running  d801b5b337b4  Up 24 minutes  
control          control         contrail-controller-control-control    running  61e2d60238f4  Up 20 minutes  
control          dns             contrail-controller-control-dns        running  c6ad343501f0  Up 20 minutes  
control          named           contrail-controller-control-named      running  705c7be5c654  Up 20 minutes  
control          nodemgr         contrail-nodemgr                       running  f129ecfded91  Up 20 minutes  
database         cassandra       contrail-external-cassandra            running  ec21c6644035  Up 19 minutes  
database         nodemgr         contrail-nodemgr                       running  afcfc6630fff  Up 19 minutes  
database         query-engine    contrail-analytics-query-engine        running  37c4bc069a09  Up 19 minutes  
device-manager   dnsmasq         contrail-external-dnsmasq              running  e5410f66129a  Up 22 minutes  
vrouter          agent           contrail-vrouter-agent                 running  7821fe322e08  Up 15 minutes  
vrouter          nodemgr         contrail-nodemgr                       running  9ad6131e8c0c  Up 16 minutes  
webui            job             contrail-controller-webui-job          running  5f7036acd14e  Up 20 minutes  
webui            web             contrail-controller-webui-web          running  787bb9a54a52  Up 20 minutes  

WARNING: container with original name 'contrail-external-redis' have Pod or Service empty. Pod: '' / Service: 'redis'. Please pass NODE_TYPE with pod name to container's env

vrouter kernel module is PRESENT
== Contrail control ==
control: active
nodemgr: active
named: active
dns: active

== Contrail config-database ==
nodemgr: active
zookeeper: active
rabbitmq: active
cassandra: active

== Contrail database ==
nodemgr: active
query-engine: active
cassandra: active

== Contrail analytics ==
nodemgr: active
api: active
collector: active

== Contrail webui ==
web: active
job: active

== Contrail vrouter ==
nodemgr: active
agent: active

== Contrail device-manager ==

== Contrail config ==
svc-monitor: active
nodemgr: active
device-manager: active
api: active
schema: active
  • Buka OpenStack Dashboard & Tungsten Fabric Dashboard
http://10.200.200.210/auth/login/
https://10.200.200.210:8143/
  • Jika Dashboard Tungsten Fabric tidak bisa dibuka, apply patch berikut:
docker exec -it webui_web_1 bash
cd webroot/reports/udd/api/

vi udd.api.js

docker exec -it webui_job_1 bash
cd webroot/reports/udd/api/

vi udd.api.js

# Restart container
docker restart webui_web_1
docker restart webui_job_1

 

Comments are closed.