OPNFV(Colorado) Compass4nfv installation instructions¶
1. Abstract¶
This document describes how to install the Brahmaputra release of OPNFV when using Compass4nfv as a deployment tool covering it’s limitations, dependencies and required system resources.
2. Version history¶
Date | Ver. | Author | Comment |
2016-01-17 | 1.0.0 | Justin chi (HUAWEI) | Rewritten for Compass4nfv B release |
2015-12-16 | 0.0.2 | Matthew Li (HUAWEI) | Minor changes & formatting |
2015-09-12 | 0.0.1 | Chen Shuai (HUAWEI) | First draft |
3. Compass4nfv configuration¶
This document describes providing guidelines on how to install and configure the Colorado release of OPNFV when using Compass as a deployment tool including required software and hardware configurations.
Installation and configuration of host OS, OpenStack, OpenDaylight, ONOS, Ceph etc. can be supported by Compass on Virtual nodes or Bare Metal nodes.
The audience of this document is assumed to have good knowledge in networking and Unix/Linux administration.
3.1. Preconditions¶
Before starting the installation of the Colorado release of OPNFV, some planning must be done.
3.1.1. Retrieving the installation ISO image¶
First of all, The installation ISO is needed for deploying your OPNFV environment, it included packages of Compass, OpenStack, OpenDaylight, ONOS and so on.
The stable release ISO can be retrieved via OPNFV software download page
The daily build ISO can be retrieved via OPNFV artifacts repository:
NOTE: Search the keyword “compass4nfv/Colorado” to locate the ISO image.
E.g. compass4nfv/colorado/opnfv-2016-01-16_15-03-18.iso compass4nfv/colorado/opnfv-2016-01-16_15-03-18.properties
The name of iso image includes the time of iso building, you can get the daily ISO according the building time. The git url and sha1 of Compass4nfv are recorded in properties files, According these, the corresponding deployment scripts can be retrieved.
3.1.2. Getting the deployment scripts¶
To retrieve the repository of Compass4nfv on Jumphost use the following command:
NOTE: PLEASE DO NOT GIT CLONE COMPASS4NFV IN root DIRECTORY(Include subfolders).
To get stable /colorado release, you can use the following command:
- git checkout colorado.1.0
If you want to use a daily release ISO, please checkout the corresponding sha1 to get the deployment scripts:
E.g. Git sha1 in file “opnfv-2016-01-16_15-03-18.properties” is d5a13ce7cc2ce89946d34b0402ecf33c1d291851
- git checkout d5a13ce7cc2ce89946d34b0402ecf33c1d291851
3.2. Setup Requirements¶
If you have only 1 Bare Metal server, Virtual deployment is recommended. if more than or equal 3 servers, the Bare Metal deployment is recommended. The minimum number of servers for Bare metal deployment is 3, 1 for JumpServer(Jumphost), 1 for controller, 1 for compute.
3.2.1. Jumphost Requirements¶
The Jumphost requirements are outlined below:
- Ubuntu 14.04 (Pre-installed).
- Root access.
- libvirt virtualization support.
- Minimum 2 NICs.
- PXE installation Network (Receiving PXE request from nodes and providing OS provisioning)
- IPMI Network (Nodes power control and set boot PXE first via IPMI interface)
- External Network (Optional: Internet access)
- 16 GB of RAM for a Bare Metal deployment, 64 GB of RAM for a Virtual deployment.
- CPU cores: 32, Memory: 64 GB, Hard Disk: 500 GB, (Virtual Deloment needs 1 TB Hard Disk)
3.3. Bare Metal Node Requirements¶
Bare Metal nodes require:
- IPMI enabled on OOB interface for power control.
- BIOS boot priority should be PXE first then local hard disk.
- Minimum 3 NICs.
- PXE installation Network (Broadcasting PXE request)
- IPMI Network (Receiving IPMI command from Jumphost)
- External Network (OpenStack mgmt/external/storage/tenant network)
3.4. Network Requirements¶
Network requirements include:
- No DHCP or TFTP server running on networks used by OPNFV.
- 2-6 separate networks with connectivity between Jumphost and nodes.
- PXE installation Network
- IPMI Network
- Openstack mgmt Network*
- Openstack external Network*
- Openstack tenant Network*
- Openstack storage Network*
- Lights out OOB network access from Jumphost with IPMI node enabled (Bare Metal deployment only).
- External network has Internet access, meaning a gateway and DNS availability.
The networks with(*) can be share one NIC(Default configuration) or use an exclusive NIC(Reconfigurated in network.yml).
3.5. Execution Requirements (Bare Metal Only)¶
In order to execute a deployment, one must gather the following information:
- IPMI IP addresses of the nodes.
- IPMI login information for the nodes (user/pass).
- MAC address of Control Plane / Provisioning interfaces of the Bare Metal nodes.
4. Installation Guide (Bare Metal Deployment)¶
4.1. Nodes Configuration (Bare Metal Deployment)¶
The below file is the inventory template of deployment nodes:
“compass4nfv/deploy/conf/hardware_environment/huawei-pod1/dha.yml”
You can write your own IPMI IP/User/Password/Mac address/roles reference to it.
- name – Host name for deployment node after installation.
- ipmiVer – IPMI interface version for deployment node support. IPMI 1.0 or IPMI 2.0 is available.
- ipmiIP – IPMI IP address for deployment node. Make sure it can access from Jumphost.
- ipmiUser – IPMI Username for deployment node.
- ipmiPass – IPMI Password for deployment node.
- mac – MAC Address of deployment node PXE NIC .
- roles – Components deployed.
Assignment of different roles to servers
E.g. Openstack only deployment roles setting
TYPE: baremetal
FLAVOR: cluster
POWER_TOOL: ipmitool
ipmiUser: root
ipmiVer: '2.0'
hosts:
- name: host1
mac: 'F8:4A:BF:55:A2:8D'
interfaces:
- eth1: 'F8:4A:BF:55:A2:8E'
ipmiIp: 172.16.130.26
ipmiPass: Huawei@123
roles:
- controller
- ha
- name: host2
mac: 'D8:49:0B:DA:5A:B7'
interfaces:
- eth1: 'D8:49:0B:DA:5A:B8'
ipmiIp: 172.16.130.27
ipmiPass: huawei@123
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: baremetal
FLAVOR: cluster
POWER_TOOL: ipmitool
ipmiUser: root
ipmiVer: '2.0'
hosts:
- name: host1
mac: 'F8:4A:BF:55:A2:8D'
interfaces:
- eth1: 'F8:4A:BF:55:A2:8E'
ipmiIp: 172.16.130.26
ipmiPass: Huawei@123
roles:
- controller
- ha
- ceph-adm
- ceph-mon
- name: host2
mac: 'D8:49:0B:DA:5A:B7'
interfaces:
- eth1: 'D8:49:0B:DA:5A:B8'
ipmiIp: 172.16.130.27
ipmiPass: huawei@123
roles:
- compute
- ceph-osd
E.g. Openstack and ODL deployment roles setting
TYPE: baremetal
FLAVOR: cluster
POWER_TOOL: ipmitool
ipmiUser: root
ipmiVer: '2.0'
hosts:
- name: host1
mac: 'F8:4A:BF:55:A2:8D'
interfaces:
- eth1: 'F8:4A:BF:55:A2:8E'
ipmiIp: 172.16.130.26
ipmiPass: Huawei@123
roles:
- controller
- ha
- odl
- name: host2
mac: 'D8:49:0B:DA:5A:B7'
interfaces:
- eth1: 'D8:49:0B:DA:5A:B8'
ipmiIp: 172.16.130.27
ipmiPass: huawei@123
roles:
- compute
E.g. Openstack and ONOS deployment roles setting
TYPE: baremetal
FLAVOR: cluster
POWER_TOOL: ipmitool
ipmiUser: root
ipmiVer: '2.0'
hosts:
- name: host1
mac: 'F8:4A:BF:55:A2:8D'
interfaces:
- eth1: 'F8:4A:BF:55:A2:8E'
ipmiIp: 172.16.130.26
ipmiPass: Huawei@123
roles:
- controller
- ha
- onos
- name: host2
mac: 'D8:49:0B:DA:5A:B7'
interfaces:
- eth1: 'D8:49:0B:DA:5A:B8'
ipmiIp: 172.16.130.27
ipmiPass: huawei@123
roles:
- compute
4.2. Network Configuration (Bare Metal 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/network_cfg.yaml”. You can write your own reference to it.
The following figure shows the default network configuration.
+--+ +--+ +--+
| | | | | |
| | +------------+ | | | |
| +------+ Jumphost +------+ | | |
| | +------+-----+ | | | |
| | | | | | |
| | +------------+ +-----+ |
| | | | | |
| | +------------+ | | | |
| +------+ host1 +------+ | | |
| | +------+-----+ | | | |
| | | | | | |
| | +------------+ +-----+ |
| | | | | |
| | +------------+ | | | |
| +------+ host2 +------+ | | |
| | +------+-----+ | | | |
| | | | | | |
| | +------------+ +-----+ |
| | | | | |
| | +------------+ | | | |
| +------+ host3 +------+ | | |
| | +------+-----+ | | | |
| | | | | | |
| | +------------+ +-----+ |
| | | | | |
| | | | | |
+-++ ++-+ +-++
^ ^ ^
| | |
| | |
+-+-------------------------+ | |
| External Network | | |
+---------------------------+ | |
+-----------------------+---+ |
| IPMI Network | |
+---------------------------+ |
+-------------------------+-+
| PXE(Installation) Network |
+---------------------------+
4.3. Start Deployment (Bare Metal Deployment)¶
- Edit run.sh
- Set OS version and OpenStack version for deployment nodes.
- Compass4nfv Colorado supports three OS version based openstack mitaka.
E.g. .. code-block:: bash
##########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.
##########ISO_URL##########
export ISO_URL=file:///home/compass/opnfv-colorado.1.0.iso
#export ISO_URL=http://artifacts.opnfv.org/compass4nfv/colorado/opnfv-colorado.1.0.iso
Set PXE/Installation NIC for Jumphost. (set eth1 E.g.)
E.g.
##########Hardware_Deploy Jumpserver_NIC##########
export INSTALL_NIC=${INSTALL_NIC:-p1p1}
Set scenario that you want to deploy
E.g.
nosdn-nofeature scenario deploy sample
ocl-nofeature scenario deploy sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/hardware_environment/huawei-pod1/os-ocl-nofeature-ha.yml
export NETWORK=./deploy/conf/hardware_environment/huawei-pod1/network_ocl.yml
odl_l2-moon scenario deploy sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/hardware_environment/huawei-pod1/os-odl_l2-moon-ha.yml
export NETWORK=./deploy/conf/hardware_environment/huawei-pod1/network.yml
odl_l2-nofeature scenario deploy template
##########DHA and NETWORK##########
export DHA=./deploy/conf/hardware_environment/huawei-pod1/os-odl_l2-nofeature-ha.yml
export NETWORK=./deploy/conf/hardware_environment/huawei-pod1/network.yml
odl_l3-nofeature scenario deploy sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/hardware_environment/huawei-pod1/os-odl_l3-nofeature-ha.yml
export NETWORK=./deploy/conf/hardware_environment/huawei-pod1/network.yml
onos-nofeature scenario deploy sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/hardware_environment/huawei-pod1/os-onos-nofeature-ha.yml
export NETWORK=./deploy/conf/hardware_environment/huawei-pod1/network_onos.yml
onos-sfc deploy scenario sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/hardware_environment/huawei-pod1/os-onos-sfc-ha.yml
export NETWORK=./deploy/conf/hardware_environment/huawei-pod1/network_onos.yml
- Run
run.sh
./add.sh
5. Installation Guide (Virtual Deployment)¶
5.1. Nodes Configuration (Virtual Deployment)¶
The below file is the inventory template of deployment nodes:
“compass4nfv/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/network_cfg.yaml”. 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)¶
- 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.
##########ISO_URL##########
export ISO_URL=file:///home/compass/opnfv-colorado.1.0.iso
#export ISO_URL=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
ocl-nofeature scenario deploy sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/vm_environment/os-ocl-nofeature-ha.yml
export NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network_ocl.yml
odl_l2-moon scenario deploy sample .. code-block:: bash
##########DHA and NETWORK########## export DHA=./deploy/conf/vm_environment/os-odl_l2-moon-ha.ym export NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network.yml
odl_l2-nofeature scenario deploy sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/vm_environment/os-odl_l2-nofeature-ha.yml
export NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network.yml
odl_l3-nofeature scenario deploy sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/vm_environment/os-odl_l3-nofeature-ha.yml
export NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network.yml
onos-nofeature scenario deploy sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/vm_environment/os-onos-nofeature-ha.yml
export NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network_onos.yml
onos-sfc deploy scenario sample
##########DHA and NETWORK##########
export DHA=./deploy/conf/vm_environment/os-onos-sfc-ha.yml
export NETWORK=./deploy/conf/vm_environment/huawei-virtual1/network_onos.yml
- Run
run.sh
./add.sh
7. Expansion Guide¶
7.1. Bare Metal Expansion¶
7.1.1. Edit NETWORK File¶
The below file is the inventory template of deployment nodes:
”./deploy/conf/hardware_environment/huawei-pod1/network.yml”
You can edit the network.yml which you had edited before the first deployment.
NOTE: External subnet’s ip_range should be changed as the first 6 IPs are already taken by the first deployment.
7.1.2. Edit DHA File¶
The below file is the inventory template of deployment nodes:
”./deploy/conf/hardware_environment/expansion-sample/hardware_cluster_expansion.yml”
You can write your own IPMI IP/User/Password/Mac address/roles reference to it.
- name – Host name for deployment node after installation.
- ipmiIP – IPMI IP address for deployment node. Make sure it can access from Jumphost.
- ipmiUser – IPMI Username for deployment node.
- ipmiPass – IPMI Password for deployment node.
- mac – MAC Address of deployment node PXE NIC .
E.g. Only increase one compute node
TYPE: baremetal
FLAVOR: cluster
POWER_TOOL: ipmitool
ipmiUser: root
ipmiPass: Huawei@123
hosts:
- name: host6
mac: 'E8:4D:D0:BA:60:45'
interfaces:
- eth1: '08:4D:D0:BA:60:44'
ipmiIp: 172.16.131.23
roles:
- compute
E.g. Increase two compute nodes
TYPE: baremetal
FLAVOR: cluster
POWER_TOOL: ipmitool
ipmiUser: root
ipmiPass: Huawei@123
hosts:
- name: host6
mac: 'E8:4D:D0:BA:60:45'
interfaces:
- eth1: '08:4D:D0:BA:60:44'
ipmiIp: 172.16.131.23
roles:
- compute
- name: host6
mac: 'E8:4D:D0:BA:60:78'
interfaces:
- eth1: '08:4D:56:BA:60:83'
ipmiIp: 172.16.131.23
roles:
- compute
7.1.3. Start Expansion¶
- Edit add.sh
YOUR_ISO is your iso’s absolute path.
E.g.
export ISO_URL=file:///home/compass/compass4nfv/work/build/compass.iso
YOUR_DHA is your dha.yml’s path YOUR_NETWORK is your network.yml’s path
E.g.
export DHA=/home/compass/compass4nfv/deploy/conf/hardware_environment/
expansion-sample/hardware_cluster_expansion.yml
export NETWORK=/home/compass/compass4nfv/deploy/conf/hardware_environment/
huawei-pod1/network.yml
Comment out VIRT_NUMBER
E.g.
#export VIRT_NUMBER=1
Modify the install NIC
E.g.
INSTALL_NIC=${INSTALL_NIC:-eth1}
Check the environment variable.
NOTE: The OS version and OpenStack version should be same as the first deployment.
- Run
add.sh
./add.sh
7.2. Virtual Expansion¶
7.2.1. Edit network.yml¶
The below file is the inventory template of deployment nodes:
”./deploy/conf/vm_environment/huawei-virtual1/network.yml”
You can edit the network.yml which you had edited before the first deployment.
NOTE: External subnet’s ip_range should be changed as the first 6 IPs are already taken by the first deployment.
7.2.2. Edit dha.yml¶
The below file is the inventory template of deployment nodes:
”./deploy/conf/vm_environment/virtual_cluster_expansion.yml”
You can edit host names and roles.
E.g. Only increase one compute node
TYPE: virtual
FLAVOR: cluster
hosts:
- name: host6
roles:
- compute
E.g. Increase two compute nodes
TYPE: virtual
FLAVOR: cluster
hosts:
- name: host6
roles:
- compute
- name: host7
roles:
- compute
7.2.3. Start Expansion¶
- Edit add.sh
YOUR_ISO is your iso’s absolute path.
E.g.
export ISO_URL=file:///home/compass/compass4nfv/work/build/compass.iso
YOUR_DHA is your dha.yml’s path YOUR_NETWORK is your network.yml’s path
E.g.
export DHA=/home/liyuenan/compass4nfv_add/deploy/conf/vm_environment/
virtual_cluster_expansion.yml
export NETWORK=/home/liyuenan/compass4nfv_add/deploy/conf/vm_environment/
huawei-virtual1/network.yml
You can decide hou many nodes you need expansion by modify the VIRT_NUMBER
E.g.
export VIRT_NUMBER=2
Comment out NIC
E.g.
#INSTALL_NIC=${INSTALL_NIC:-eth1}
Check the environment variable.
NOTE: The OS version and OpenStack version should be same as the first deployment.
- Run
add.sh
./add.sh