5. Installation Guide (Virtual Deployment)

5.1. Nodes Configuration (Virtual Deployment)

The below file is the inventory template of deployment nodes:

”./deploy/conf/vm_environment/huawei-virtual1/network.yml”

You can write your own address/roles reference to it.

  • name – Host name for deployment node after installation.
  • roles – Components deployed.

Assignment of different roles to servers

E.g. Openstack only deployment roles setting

TYPE: virtual
FLAVOR: cluster

hosts:
  - name: host1
    roles:
      - controller
      - ha

  - name: host2
    roles:
      - compute

NOTE: IF YOU SELECT MUTIPLE NODES AS CONTROLLER, THE ‘ha’ role MUST BE SELECT, TOO.

E.g. Openstack and ceph deployment roles setting

TYPE: virtual
FLAVOR: cluster

hosts:
  - name: host1
    roles:
      - controller
      - ha
      - ceph-adm
      - ceph-mon

  - name: host2
    roles:
      - compute
      - ceph-osd

E.g. Openstack and ODL deployment roles setting

TYPE: virtual
FLAVOR: cluster

hosts:
  - name: host1
    roles:
      - controller
      - ha
      - odl

  - name: host2
    roles:
      - compute

E.g. Openstack and ONOS deployment roles setting

TYPE: virtual
FLAVOR: cluster

hosts:
  - name: host1
    roles:
      - controller
      - ha
      - onos

  - name: host2
    roles:
      - compute

5.2. Network Configuration (Virtual Deployment)

Before deployment, there are some network configuration to be checked based on your network topology.Compass4nfv network default configuration file is “compass4nfv/deploy/conf/vm_environment/huawei-virtual1/network.yml”. You can write your own reference to it.

The following figure shows the default network configuration.

+--+                          +--+
|  |                          |  |
|  |      +------------+      |  |
|  +------+  Jumphost  +------+  |
|  |      +------+-----+      |  |
|  |             |            |  |
|  |             +------------+  |
|  |                          |  |
|  |      +------------+      |  |
|  +------+    host1   +------+  |
|  |      +------+-----+      |  |
|  |             |            |  |
|  |             +------------+  |
|  |                          |  |
|  |      +------------+      |  |
|  +------+    host2   +------+  |
|  |      +------+-----+      |  |
|  |             |            |  |
|  |             +------------+  |
|  |                          |  |
|  |      +------------+      |  |
|  +------+    host3   +------+  |
|  |      +------+-----+      |  |
|  |             |            |  |
|  |             +------------+  |
|  |                          |  |
|  |                          |  |
+-++                          ++-+
  ^                            ^
  |                            |
  |                            |
+-+-------------------------+  |
|      External Network     |  |
+---------------------------+  |
       +-----------------------+---+
       |    Installation Network   |
       +---------------------------+

5.3. Start Deployment (Virtual Deployment)

  1. Edit run.sh
Set OS version and OpenStack version for deployment nodes.
Compass4nfv Colorado supports three OS version based openstack mitaka.

E.g.

########## Ubuntu14.04 Mitaka ##########
export OS_VERSION=trusty
export OPENSTACK_VERSION=mitaka

########## Ubuntu16.04 Mitaka ##########
# export OS_VERSION=xenial
# export OPENSTACK_VERSION=mitaka_xenial

########## Centos7 Mitaka ##########
# export OS_VERSION=centos7
# export OPENSTACK_VERSION=mitaka

Set ISO image that you want to deploy

E.g.

# YOUR_ISO is your iso's absolute path
export YOUR_ISO=file:///home/compass/compass4nfv.iso
# or
# export YOUR_ISO=http://artifacts.opnfv.org/compass4nfv/colorado/opnfv-colorado.1.0.iso

Set scenario that you want to deploy

E.g.

nosdn-nofeature scenario deploy sample

# YOUR_DHA is your dha.yml's path
export YOUR_DHA=./deploy/conf/vm_environment/os-nosdn-nofeature-ha.yml

# YOUR_NETWORK is your network.yml's path
export YOUR_NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network.yml

ocl-nofeature scenario deploy sample

# YOUR_DHA is your dha.yml's path
export YOUR_DHA=./deploy/conf/vm_environment/os-ocl-nofeature-ha.yml

# YOUR_NETWORK is your network.yml's path
export YOUR_NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network_ocl.yml

odl_l2-moon scenario deploy sample

# YOUR_DHA is your dha.yml's path
export YOUR_DHA=./deploy/conf/vm_environment/os-odl_l2-moon-ha.yml

# YOUR_NETWORK is your network.yml's path
export YOUR_NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network.yml

odl_l2-nofeature scenario deploy sample

# YOUR_DHA is your dha.yml's path
export YOUR_DHA=./deploy/conf/vm_environment/os-odl_l2-nofeature-ha.yml

# YOUR_NETWORK is your network.yml's path
export YOUR_NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network.yml

odl_l3-nofeature scenario deploy sample

# YOUR_DHA is your dha.yml's path
export YOUR_DHA=./deploy/conf/vm_environment/os-odl_l3-nofeature-ha.yml

# YOUR_NETWORK is your network.yml's path
export YOUR_NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network.yml

onos-nofeature scenario deploy sample

# YOUR_DHA is your dha.yml's path
export YOUR_DHA=./deploy/conf/vm_environment/os-onos-nofeature-ha.yml

# YOUR_NETWORK is your network.yml's path
export YOUR_NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network_onos.yml

onos-sfc deploy scenario sample

# YOUR_DHA is your dha.yml's path
export YOUR_DHA=./deploy/conf/vm_environment/os-onos-sfc-ha.yml

# YOUR_NETWORK is your network.yml's path
export YOUR_NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network_onos.yml
  1. Run run.sh
./run.sh