13 Commits

Author SHA1 Message Date
Alyson Deives Pereira
1a1aad921b Add accel-config to stx-debian-tools-dev docker image
accel-config is a utility library for controlling and configuring
Intel DSA (Data Streaming Accelerator Architecture) sub-system in the
Linux kernel.

accel-config-test utility has test cases that exercise the DSA subsysem.
It uses libaccel-config API to configure workqueues and issues ENQCMD
and MOVDIR64 instructions to move memory.

Intel DSA is a high-performance data copy and transformation accelerator
integrated into processors starting with 4th Generation Intel Xeon
processors. It is targeted for optimizing streaming data movement and
transformation operations common with applications for high-performance
storage, networking, persistent memory, and various data processing
applications.

Test Plan:
PASS: Build accel-config package.
PASS: Build local stx-debian base image
      (from cgcs-root/build-tools/build-docker-images directory):
      ./build-stx-base.sh --local
PASS: Build stx-debian-tools-dev using the previous built image as base:
      ./build-stx-images.sh --base <your_user>/stx-debian:11.2
      --no-pull-base --only stx-debian-tools-dev
PASS: Run stx-debian-tools-dev container and confirm that accel-config
      utility is present and is executable with:
      accel-config list
      NOTE: Executing on stx kernel 5.10 returns that idxd module can
      not be loaded. Running with stx kernel 6.6 gives the right output.
PASS: Replace accel-config-demo pod image from [1] to the recently built
      stx-debian-tools-dev image. Create the pod and verify its logs:
      kubectl logs dsa-accel-config-demo | tail
      NOTE: You need stx intel-device-plugins app with
      intel-device-plugins-dsa chart enabled [2]

[1] https://github.com/intel/intel-device-plugins-for-kubernetes/blob
/release-0.29/demo/dsa-accel-config-demo-pod.yaml

[2] https://opendev.org/starlingx/app-intel-device-plugins

Story: 2011040
Task: 49717

Change-Id: I87012212c210b0f63d6346faf1dcbd42b80efce6
Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
2024-03-21 12:20:34 -03:00
Luan Nunes Utimura
75ddbe2409 Debian: Add build structure for utilities/pci-irq-affinity-agent
This change adds the necessary files for the pci-irq-affinity-agent
package to be built for Debian.

Test Plan:
PASS: Build pci-irq-affinity-agent package
PASS: Build stx-pci-irq-affinity-agent image

Story: 2010072
Task: 47091

Signed-off-by: Luan Nunes Utimura <LuanNunes.Utimura@windriver.com>
Change-Id: I7972ea7e8beb1e869bb38cef533d782db64eaa8c
2023-01-16 15:43:53 -03:00
Charles Short
bd9062c1c0 debian: Remove debian-integration package
Remove the debian-integration package and
drop from the ISO.

Test Plan:
PASS Build the ISO

Story: 2009968
Task: 46991

Depends-On: https://review.opendev.org/c/starlingx/tools/+/866600

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I4f141f82c69fcfad90965662b9c1a0f9758e1155
2022-12-06 08:01:23 -05:00
Rogerio Ferraz
f3883b3e71 OPAE tools in container image stx-debian-tools-dev
The Open Programmable Acceleration Engine (OPAE) tools, and its
required dependencies, are introduced in the stx-debian-tools-dev
container, for the vRAN enablement with Intel hardware.

The OPAE tools deliverables consist of the following packages, which are
derived from the same source, but handled as individual packages. The
OPAE Intel FGPA driver is not required in the container, because it is
already supported in StarlingX kernel.

  - opae-sdk-1.3.7-5
  - python3-opae.admin-1.0.3
  - python3-opae.pacsign-1.0.4
  - opae-intel-fpga-driver-2.0.1

When building OPAE from upstream source code, binaries are installed in
bin directory, though privileged commands should be located in sbin.
According to the upstream documentation, most OPAE commands need to be
run in privileged mode, but the description is not always clear.
Hence, in order to provide a consistent CLI interface in StarlingX, the
OPAE binaries are installed in the proper standard directories.

Test Plan:
  - Container image is built successfully on Debian (PASS)
  - OPAE packages are successfully installed (PASS)
  - Run time testing of the OPAE tools (WIP)

Story: 2010138
Task: 46170

Depends-On: https://review.opendev.org/c/starlingx/tools/+/862743

Signed-off-by: Rogerio Ferraz <RogerioOliveira.Ferraz@windriver.com>
Change-Id: I9430fb34362ee487b0de76b4dbef78331446f5f3
2022-11-02 16:35:50 +00:00
Adriano Oliveira
a203821616 K8s Coredump Handler: initial package
Currently, it is not possible to set the core_pattern [1] on a per Pod
basis. That is, the kernel.core_pattern sysctl is not namespaced and
applies to the entire node.

Applications demands exclusive access to the core dump data for
debugging and support without enabling full access to the host OS files.

In order to meet both the platform and application requirements, a new
Kubernetes aware core dump handler is proposed.

This review covers the initial code and packaging of this handler, which
still represents limited functionality, only applying to very basic
testing.

Reference to coredump configuration:
1. https://man7.org/linux/man-pages/man5/coredump.conf.5.html

Test Plan:
PASS: Basic functionality after bootstrap (call handler directly)
PASS: Check handler is called upon coredump (core_pattern config)

Story: 2010261
Task: 46156
Depends-On: https://review.opendev.org/c/starlingx/integ/+/854682
Co-Authored-By: Samuel Presa Toledo <samuel.presatoledo@windriver.com>
Co-Authored-By: Heron Vieira <heron.vieira@windriver.com>

Signed-off-by: Adriano Oliveira <adriano.oliveira@windriver.com>
Change-Id: I7e18b27a6de1e74d8df3e4c28661959763ce7468
2022-09-27 12:10:14 -04:00
rferraz
a8290e83f2 PCM tools on container image stx-debian-tools-dev
Processor Counter Monitor (PCM) tools are introduced on the
container stx-debian-tools-dev.

The container includes a selection of Dev tools for the vRAN tools
enablement with Intel hardware on Debian. It is a continuation of story
2009990, which introduced this feature on CentOS.

Test Plan: Successfully build image on Debian (PASSED)

Story: 2010138
Task: 46168

Depends-On: https://review.opendev.org/c/starlingx/tools/+/856842

Signed-off-by: rferraz <RogerioOliveira.Ferraz@windriver.com>
Change-Id: Ic5bc9ef0db71b76106b0a38400aa4be18fd1b893
2022-09-09 17:39:49 +00:00
Hugo Brito
30ec09b069 Debian: Remove pci-irq-affinity-agent debian
This removes all build files for pci-irq-affinity-agent
on a debian build. The agent is a stx-openstack container
now.

Test Plan:
PASS: bootstrap finished successfully
PASS: unlock finished successfully

Story: 2009299
Task: 45254

Depends-On: https://review.opendev.org/c/starlingx/tools/+/840364

Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
Change-Id: Ieb32f7fb0b3cf9e672022176e1fb75769c22e463
2022-05-10 16:41:44 +00:00
Al Bailey
4c250dd96c Adding temporary debian integration scripts
In order to bootstrap and unlock on debian, there are
several workarounds required while the code is being modified
to properly support both Centos and Debian.

This is considered a temporary folder because eventually all
the workarounds should end up being resolved and removed
from the scripts.

Updated tox to exclude the two scripts from bashate

Story: 2009101
Task: 44827
Co-Authored-By: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I0cca8e564c1f30333ef7d060ea7f8a6089187d1a
2022-03-22 15:29:35 +00:00
Dan Voiculeasa
af5d4d4902 debian: Enable ceph-manager build
This work is part of Debian integration effort.
This affects only Debian.

Update debian_pkg_dirs.

Tests:
PASS: build-pkgs, build-image
PASS: install iso

Story: 2009101
Task: 44189
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Ibbed20a50f820d395ad0edf35f3db52f02979685
2022-03-08 19:02:16 +02:00
Leonardo Fagundes Luz Serrano
31b5fc78b6 Update debian_pkg_dirs for stx/utilities
Update file to include pkgs:
collector, engtools/hostdata-collectors, build-info,
logmgmt, namespace-utils, nfscheck, pci-irq-affinity-agent,
stx-extensions, update-motd, worker-utils

Story: 2009101
Task: 43906

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: Idb6428ad2ba87f4a6889324c20d0aa07ce5a82f1
2022-01-24 04:19:43 -03:00
Robert Church
eab6204713 debian: Enable build-info package build
Update debian_pkg_dirs to include build-info

Change-Id: Idd47b7bb78a2ec309f09e96447fc7b1679bbcaf8
Story: 2009101
Task: 43887
Signed-off-by: Robert Church <robert.church@windriver.com>
2022-01-11 21:47:10 -05:00
Charles Short
297a22a401 Add debian_pkg_dirs for starlingx/utilties
Add config repo to debian_pkg_dirs. This way they will be picked up
by the build system and packages built.

Instead of having merge conflicts for each utilties project review
provide a single commit updating debian_pkg_dirs.

Story: 2009101
Task: 43446

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I58e558a5bfb45c7e3d31466cede66deaa643ee8f
2021-10-19 17:22:43 -04:00
Charles Short
6d7ee3067f Add debian package for platform-util
Add debian packaging infrastructure for platform-util.

Story: 2009101
Task: 43073

Depends-On: I4a3b9903c7510ecb3177a8341d6f83b750fbc01b
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ia64b128eb8f4cd0050c0d0b34729a365adfe26a0
2021-10-18 16:06:05 +03:00