...
- The build .yaml file and the associated build .env file are used to invoke the VM which will build the image. The build .yaml will invoke the build script “v_gmux_build.sh”.
- This will build vpp and honeycomb code, it may take 30-40 minutes
- Log into the VM as the 'ubuntu' user and check that build script has finished executing.
- cat /opt/script_status.txt
- If the script has executed completely and successfully, the output will be “Execution of vG-MUX build script completed”.
- If the script has failed to execute successfully, the output will should specify the reason for its failure. For more information, query the contents of the systemd journal using the ‘journalctl’ command. See also: Debugging and troubleshooting.
- Clean up some files not required for the final image (this will save several gigabytes):
sudo
su
-
rm
-fr
/opt/vpp
/opt/hc2vpp
/opt/demo
/opt/script_status.txt
- Save an image of the VNF.
openstack
server
image
create
--name
vgmux-base-ubuntu-16-04
<VM
Name
or
ID>
"vgmux-base-ubuntu-16-04" will be the name of the new vG-MUX image
Instantiate a VNF based on the pre-built Image
Change the base .env file to use the VNF image created using the process described above.
For example - replace "ubuntu-16-04-cloud-amd64" with "vgmux-base-ubuntu-16-04" in "base_vcpe_vgmux.env".
- Ensure the base .yaml file does not have the install script commented out.
- For example, ensure "v_gmux_install.sh" is not commented out in "base_vcpe_vgmux.yaml".
- Create a 'stack'
openstack
stack
create
-t
base_vcpe_vgmux.yaml
-e
base_vcpe_vgmux.env
vGMUX
- Note, remove the "vGMUX" stack that was created during the "Building a VNF Image" stage.
- Using the image created above, the install script will perform some configuration steps and complete much more quickly since the VPP and Honeycomb code has already been compiled.
...
Prebuilt images in the ONAP-vCPE Project (as of 08/15/18):
VNF | ONAP-vCPE Image Name | Checksum |
vBRG | vbrg-casa-base-ubuntu-16-04 | a7e1bb0b991f8807e2c6ee9008b83e21 |
vBNG | vbng-casa-base-ubuntu-16-04 | f30e6f8d07bf68450f0315a6d593e138 |
vG-MUX | vgmux-casa-base-ubuntu-16-04 | f6b46d1133e5576afff245650a354768 |
vGW | vgw-casa-base-ubuntu-16-04 | 2482ae8dbe3d7a339f7ffa47478c995e |
Compatibility with Amsterdam and Beijing Releases
...
To see the full output of the build script:
Info journalctl
To check that the build script is running:
Info ps aux | grep v_xxx_build.sh
To check that vpp and honeycomb are running:
Info systemctl status vpp.service
systemctl status honeycomb.service
Note that the vpp service should be ‘inactive’ after the completion of the build script, and it should be ‘running’ on all machines after the completion of the install script.
...
This can also be confirmed by running ‘cat /var/log/honeycomb.log’:
To check status on vGW of dhcp server:
systemctl statusInfo service isc-dhcp-server status
To check whether a package is installed using dpkg:
Info dpkg -s [package name]
- For example: dpkg -s vpp
...
VNF Specific Usage Information
...
Info | ||
---|---|---|
| ||
vppctl ip route add 10.3.0.0/24 via 10.1.0.10 GigabitEthernet0/4/0 |
· To check whether a package is installed using dpkg:
o dpkg -s [package name]
...