8efc754e23
Upgrade sriov-fec-operator application to v2.7.1: This change includes the following. - Version upgrade of the operator to v2.7.1 which upgrades pf-bb-config to v23.03. - Additional support for deployments that use igb_uio driver to bind vf interfaces. - Support for operator deployment when secure boot is enabled. - Support to configure FEC device resource names using the `system helm-overrides command`. - Support for multiple accelerator cards on the same node. Test Status: - PASS: Build application deb, generate tarball and build docker images copy to stx active controller. - PASS: Verify that app is uploaded, applied and operator pods are created. - PASS: Configure ACC100 using config file to create 1 VF. - PASS: Bringup test-pod, request FEC VFs and validate sample dpdk application test-bbdev. - PASS: App upload, apply, remove, delete verified in simplex mode. - PASS: Reboot test with operator method validated. - PASS: Shellcheck tool test. - PASS: N3000 testing. - PASS: Configure ACC200 using config file to create 2 VFs. Failure Tests: - PASS: Applying Clusterconfig shall fail when fec operator is not deployed. - PASS: Operator deployment shall fail when docker image download fails during system application-apply. - PASS: Applying Clusterconfig shall fail with Wrong values in clusterconfig yaml file: - set vfAmount to >16 or 0. - set wrong pci address. - set wrong hostname. - PASS: Removing the operator without deleting the clusterconfig fails to delete the FEC VFs and subsequent re-apply will also fail. - PASS: Modifying or Deleting sriovfecClusterconfig when test-pod is running with FEC VFs mapped, test-pod gets automatically deleted since FEC requested resources become unavailable. Story: 2010826 Task: 48373 Change-Id: I34d8c37c851acb671eeccf77c7d713e933ad458c Signed-off-by: Burla, Balendu <balendu.burla@intel.com>
82 lines
1.4 KiB
Bash
82 lines
1.4 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2023 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
IMAGE=$1
|
|
IMAGE_TAG=$2
|
|
export CONTAINER_TOOL=docker
|
|
|
|
echo "=============== build script ================"
|
|
echo image: "${IMAGE}"
|
|
echo image_tag: "${IMAGE_TAG}"
|
|
pwd
|
|
|
|
if [ -z "${IMAGE_TAG}" ]; then
|
|
echo "Image tag must be specified. build ${IMAGE} Aborting..." >&2
|
|
exit 1
|
|
fi
|
|
|
|
build_labeler_image() {
|
|
export SRIOV_FEC_LABELER_IMAGE=$1
|
|
|
|
echo "labeler_image: ${SRIOV_FEC_LABELER_IMAGE}"
|
|
|
|
pwd
|
|
make image-sriov-fec-labeler
|
|
|
|
echo "Labeler image build done"
|
|
|
|
return 0
|
|
}
|
|
|
|
build_daemon_image() {
|
|
export SRIOV_FEC_DAEMON_IMAGE=$1
|
|
|
|
echo "daemon_image: ${SRIOV_FEC_DAEMON_IMAGE}"
|
|
|
|
pwd
|
|
make image-sriov-fec-daemon
|
|
|
|
echo "Daemon image build done"
|
|
|
|
return 0
|
|
}
|
|
|
|
build_operator_image() {
|
|
|
|
export SRIOV_FEC_OPERATOR_IMAGE=$1
|
|
|
|
echo "operator_image: ${SRIOV_FEC_OPERATOR_IMAGE}"
|
|
|
|
pwd
|
|
make image-sriov-fec-operator
|
|
|
|
echo "Operator image build done"
|
|
|
|
return 0
|
|
}
|
|
|
|
case ${IMAGE} in
|
|
labeler)
|
|
echo "Build image: labeler"
|
|
build_labeler_image "${IMAGE_TAG}"
|
|
;;
|
|
daemon)
|
|
echo "build image: daemon"
|
|
build_daemon_image "${IMAGE_TAG}"
|
|
;;
|
|
operator)
|
|
echo "build image: Operator"
|
|
build_operator_image "${IMAGE_TAG}"
|
|
;;
|
|
*)
|
|
echo "Unsupported ARGS in ${image_build_file}: ${IMAGE}" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|