8 Commits

Author SHA1 Message Date
Igor Soares
817ce4acc5 Application versioning based on build release
This change will automatically adjust versioning of the application
tarball and python plugins to reflect the same version reported by
SW_VERION in /etc/build.info.

Test plan:
PASS: build-pkgs -a & build-image
PASS: Confirm that the tarball version matches the platform version
PASS: Apply application

Story: 2010929
Task: 49352

Change-Id: Icbe84813337d647f1644681d9b88e28ee60fce1a
Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>
2023-12-29 12:34:40 -03:00
Reed, Joshua
04597187d1 Update app Zuul Check Jobs.
Modify code to conform to flake8 and pylint.

Jobs are now flake8, pylint, py39 and metadata.

Test Plan
PASS - All zuul jobs pass as expected.

Story: 2010929
Task: 49267

Change-Id: Ibc3ce1b45d54412544f73b9bea2c87b91e397353
Signed-off-by: Reed, Joshua <Joshua.Reed@windriver.com>
2023-12-15 07:02:03 -07:00
Burla, Balendu
8efc754e23 sriov-fec-operator v2.7.1 system integration
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>
2023-08-02 15:41:15 -05:00
Teresa Ho
33b1b27a0a Revert "sriov-fec-operator system integration"
This reverts commit bc417508af619a217e2f05436bdd1222248436a8.

Reason for revert: build-pkgs failed with the following error:
^[[1;32mINFO^[[0m - [ Run - "dpkg-source --print-format /localdisk/loadbuild/tho/stx-master/std/python3-k8sapp-sriov-fec-operator/python3-k8sapp-sriov-fec-operator-1.0" ]
^[[1;34mDEBUG^[[0m - stderr: dpkg-source: error: source package has two conflicting values - python3-k8sapp-sriov-fec-operator and stx-sriov-fec-operator-helm
^[[1;31mERROR^[[0m - [ Command failed with a non-zero return code: "dpkg-source --print-format /localdisk/loadbuild/tho/stx-master/std/python3-k8sapp-sriov-fec-operator/python3-k8sapp-sriov-fec-operator-1.0" return code: 25 ]

Change-Id: I0cfa30714faa29ef7267ef167c18d22eb6eaec69
2023-08-02 16:25:42 +00:00
Nidhi Shivashankara Belur
bc417508af sriov-fec-operator system integration
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

Signed-off-by: Nidhi Shivashankara Belur <nidhi.shivashankara.belur@intel.com>
Change-Id: I3c1400dfa3b52ec77395a525171c99d52b4cc4a8
2023-08-01 20:41:53 +05:30
Teresa Ho
c8a6462efd Add component label to sriov-fec-operator namespace
The sriov-fec-operator platform application must mark its namespace
with the "app.starlingx.io/component=platform" label in order to
ensure that kubernetes knows to run it on the platform cores.

Test Plan:
PASS: Apply sriov-fec-operator app, check that the label is set to
      platform in the namespace
PASS: Update the label to application using system helm-override-update
      re-apply application. Check that the label is updated.
PASS: Setting the label to other than 'platform' or 'application
      does not change the label.

Story: 2010612
Task: 47984

Change-Id: I985040af6ece4975d2b8e2c82efd00ba816aeeba
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
2023-05-12 10:50:21 -04:00
Nidhi Shivashankara Belur
d8d7992709 sriov-fec-operator system integration
Upgrade sriov-fec-operator application to v2.6.1
- This change includes version upgrade of the operator to v2.6.1 which
  upgrades pf-bb-config to v22.11.
- This change is essential for operator deployment on the latest Intel
  4th gen Xeon scalable processors.
- Updated License headers.

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 upto 16 VFs.
- 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: 2010649
Task: 47661
Signed-off-by: Nidhi Shivashankara Belur <nidhi.shivashankara.belur@intel.com>
Change-Id: I1c6dc946d114a129cd728b8c53b3b00f31fda028
2023-04-11 11:25:36 -07:00
Leonardo Fagundes Luz Serrano
dcd76cd624 Standardize app configs
Fixed versioning and adjusted some build files
to bring them as close to a standard as possible.

- Removed centos files
- Added version tracking via GITREVCOUNT
- Fixed mismatch in plugin name, set to python3-k8sapp-<app>
- Standardized plugin debian files (rules, *.install)
- Plugin wheels saved to /plugin instead of /plugin/<app>

Test Plan:
PASS - Build-pkgs -a
PASS - Build-image
PASS - Install, bootstrap, unlock
PASS - app tarball contains wheel file
PASS - wheel versioning updated properly

Story: 2010542
Task: 47191

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: If383233094d6539483c93016264d62da6dc4753f
2023-01-20 15:41:34 +00:00