From 61d9d93684262dcd20b8279b8400a8cc3c48d5e5 Mon Sep 17 00:00:00 2001 From: Elisamara Aoki Goncalves Date: Mon, 9 Sep 2024 18:06:44 +0000 Subject: [PATCH] Update DSA Test Case yaml with SYS_RAWIO capabilities Fix yaml. Closes-bug: 2080002 Change-Id: Icb58878a62489c6f939ecdb8e447f9be22a768cc Signed-off-by: Elisamara Aoki Goncalves --- ...ata-streaming-accelerator-db88a67c930c.rst | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/doc/source/node_management/kubernetes/data-streaming-accelerator-db88a67c930c.rst b/doc/source/node_management/kubernetes/data-streaming-accelerator-db88a67c930c.rst index 7d5196082..176e943ab 100644 --- a/doc/source/node_management/kubernetes/data-streaming-accelerator-db88a67c930c.rst +++ b/doc/source/node_management/kubernetes/data-streaming-accelerator-db88a67c930c.rst @@ -119,7 +119,7 @@ The plugin can be tested by deploying a pod using the |VRAN| tools image #. Create a yaml file for the test pod: - .. code-block:: none + .. code-block:: yaml $ cat << 'EOF' > dsa-accel-config-demo.yml apiVersion: v1 @@ -131,19 +131,23 @@ The plugin can be tested by deploying a pod using the |VRAN| tools image spec: containers: - name: dsa-accel-config-demo - image: registry.local:9001/docker.io/starlingx/stx-debian-tools-dev:stx.10.0-v1.0.0 + image: docker.io/starlingx/stx-debian-tools-dev:stx.10.0-v1.0.0 imagePullPolicy: "Always" workingDir: "/usr/libexec/accel-config/test/" command: - - "./dsa_user_test_runner.sh" + - "./dsa_user_test_runner.sh" args: - - "--skip-config" + - "--skip-config" resources: - limits: + limits: dsa.intel.com/wq-user-shared: 1 + securityContext: + capabilities: + add: + ["SYS_RAWIO"] restartPolicy: Never - imagePullSecrets: - - name: default-registry-key + + EOF #. Apply the yaml file. @@ -155,7 +159,8 @@ Review the job's log: .. code-block:: none - $ kubectl logs dsa-accel-config-demo | tail [ info] Checking Src & Dst buffers + $ kubectl logs dsa-accel-config-demo | tail + [ info] Checking Src & Dst buffers [ info] compsts: 1 [ info] Checking All Tags [ info] All Tags Validated @@ -235,7 +240,7 @@ passed by defining the config name with ``dsa-.conf``. The default ``DSA`` device configuration is as follow: -.. code-block:: none +.. code-block:: yaml $ cat << 'EOF' > dsa-override.yml overrideConfig: @@ -348,13 +353,14 @@ The default ``DSA`` device configuration is as follow: ] } ] + EOF The |DSA| device configuration can be customized via application overrides. For example, the following config uses dedicated queues for all nodes: -.. code-block:: none +.. code-block:: yaml $ cat << 'EOF' > dsa-override.yml overrideConfig: @@ -467,6 +473,7 @@ For example, the following config uses dedicated queues for all nodes: ] } ] + EOF Apply the override file: