This guide instructs how to build and install an Akraino Edge Stack (AES) Regional Controller node.
...
Clone the Redfish Bootstrapping Script repository for use as part of Akraino tools:
Code Block |
---|
|
mkdir -p /opt/akraino/tools
## Download the latest redfish artifacts from LF Nexus ##
Run
the
belowmkdir commands in sequence
-p /opt/akraino/tools
NEXUS_URL=https://nexus.akraino.org
PROJECT=redfish
VERSION=0.0.2-SNAPSHOT
XMLFILE="${NEXUS_URL}curl -L "$NEXUS_URL/service/local/artifact/repositoriesmaven/snapshots/content/org/akraino/${PROJECT}/${PROJECT}/${VERSION}/maven-metadata.xml"
curl -O "${XMLFILE}"
V2=`grep value maven-metadata.xml | sed -e 's;</value>;;' -e 's;.*<value>;;' | uniq`
TGZFILE="${NEXUS_URL}/service/local/repositories/snapshots/content/org/akraino/${PROJECT}/${PROJECT}/${VERSION}/${PROJECT}-${V2}.tgz"
curl -O "${TGZFILE}"
echo “Latest code from LF Nexus is $V2”
tar -xzvf "${PROJECT}-${V2}.tgz" -C /opt/akraino/tools
|
Clone the Akraino Regional Controller repository:
Code Block |
---|
|
mkdir -p /opt/akraino/region
## Download the latest Regional_controller artifacts from LF Nexus ##
NEXUS_URL=https://nexus.akraino.org
PROJECT=regional_controller
VERSION=0.0.2-SNAPSHOT
XMLFILE="${NEXUS_URL}/service/local/repositories/snapshots/content/org/akraino/${PROJECT}/${PROJECT}/${VERSION}/maven-metadata.xml"
curl -O "${XMLFILE}"
V2=`grep value maven-metadata.xml | sed -e 's;</value>;;' -e 's;.*<value>;;' | uniq`
TGZFILE="${NEXUS_URL}/service/local/repositories/snapshots/content/org/akraino/${PROJECT}/${PROJECT}/${VERSION}/${PROJECT}-${V2}.tgz"
curl -O "${TGZFILE}"
echo “Latest code from LF Nexus is $V2”
tar -xzvf "${PROJECT}-${V2}.tgz" -redirect?r=snapshots&g=org.akraino.redfish&a=redfish&v=0.0.2-SNAPSHOT&e=tgz" | tar -xozv -C /opt/akraino/tools
|
Clone the Akraino Regional Controller repository:
Code Block |
---|
|
## Download the latest Regional_controller artifacts from LF Nexus ##
mkdir -p /opt/akraino/region
NEXUS_URL=https://nexus.akraino.org
curl -L "$NEXUS_URL/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.regional_controller&a=regional_controller&v=0.0.2-SNAPSHOT&e=tgz" | tar -xozv -C /opt/akraino/region
|
Configuration
...
SRV_NAME
is the Bare Metal Server nameSRV_OOB_IP
is the Bare Metal Server iDRAC IPSRV_IP
is the Bare Metal Server IP- Update Ubuntu version to 16.04.5 by setting SRV_BLD_SCRIPT=script-hwe-16.04.5-amd64.ipxe
- Remove all references to
BUILD_WEBIP
and BUILD_WEBPORT
SRV_OOB_IP
is the Bare Metal Server iDRAC or iLO IPSRV_IP
is the Bare Metal Server IP- Passwords are chosen for
SRV_OOB_PWD
and SRV_PWD
- All remaining
SRV_
prefixed options are adjusted as deemed appropriate for the Bare Metal server and network
Code Block |
---|
|
# host name for server
SRV_NAME=aknode44
# server oem - Dell or HPE (case sensitive)
SRV_OEM=Dell
# out of band interface information for server (idrac/ilo/etc)
SRV_OOB_IP=192.168.41.44
SRV_OOB_USR=root
SRV_OOB_PWD=ROOT_PASSWORD
# mac address of server to be used during the build - not required for Dell servers
# SRV_MAC=3c:fd:fe:b8:10:60
# name of network interface used during build when ipxe.efi is booted and when os is booted
# ipxe numbers ports from 0-n in pci bus order.
# the netx value will depend on how many nics are in the server
# and which pci device number is assigned to the slot
SRV_IPXE_INF=net8
# the build interface is the nic used by the Ubuntu installed to load the OS
SRV_BLD_INF=enp135s0f0
# the boot device is the device name on which the OS will be loaded
SRV_BOOT_DEVICE=sdg
# ipxe script to use - based on the os version and kernel to install
# valid options are script-hwe-16.04.5-amd64.ipxe or script-16.04.5-amd64.ipxe
SRV_BLD_SCRIPT=script-hwe-16.04.5-amd64.ipxe
# template xml file to set bios and raid configuration settings
SRV_BIOS_TEMPLATE=dell_r740_g14_uefi_base.xml.template
SRV_BOOT_TEMPLATE=dell_r740_g14_uefi_httpboot.xml.template
SRV_HTTP_BOOT_DEV=NIC.Slot.7-1-1
# VLAN to use during build and for final network configuration
SRV_VLAN=41
# basic network information for dhcp config and final server network settings
SRV_MTU=9000
SRV_IP=192.168.2.44
SRV_SUBNET=192.168.2.0
SRV_NETMASK=255.255.255.0
SRV_GATEWAY=192.168.2.200
SRV_DNS=192.168.2.85
SRV_DOMAIN=lab.akraino.org
SRV_DNSSEARCH=lab.akraino.org
SRV_NTP=ntp.ubuntu.org
# root password for server being built
SRV_PWD=SERVER_PASSWORD
# network bond information
SRV_BOND=bond0
SRV_SLAVE1=enp135s0f0
SRV_SLAVE2=enp135s0f1 |
...
Warning |
---|
|
The Regional Controller installation is not idempotent at this time. If errors are encountered during this phase, it is recommended that the errors be triaged and resolved, followed by an Operating System re-installation. This will ensure a "clean slate" Bare Metal Server before trying again. |
A successful installation will end as follows. Note that any time estimates (e.g., "This step could take up to 15 minutes") and elapsed times are likely inaccurate.
Code Block |
---|
|
...
Setting up tempest content/repositories
Setting up ONAP content/repositories
Setting up sample tempestvnf repositorycontent/repositories
Setting up yaml builds repositoryairshipinabottle content/repositories
Setting up ONAPredfish repositorytools Setting up sample vnf repository
Setting up airshipinabottle repository
SUCCESS: content/repositories
SUCCESS: Portal can be accessed at http://192.168.2.44:8080/AECPortalMgmt/
SUCCESS: Portal install completed |
The Regional Controller Node installation is now complete.
...