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