diff options
| author | Kubernetes Prow Robot <k8s-ci-robot@users.noreply.github.com> | 2020-03-13 06:06:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-13 06:06:40 -0700 |
| commit | 878861ddeeafedd6b8392575abb60bde2392be89 (patch) | |
| tree | 7b3f636cea6a6dacabd5f4674100f2f0a9c5e8d6 | |
| parent | d3769dd35891146b4db8d62b37439d9bc17cb740 (diff) | |
| parent | f03752f021b98eca6c91eaff923a37b76b7cc01a (diff) | |
Merge pull request #4503 from fromanirh/topomgr-notes
document the configuration for topology manager
| -rw-r--r-- | contributors/devel/sig-node/e2e-node-tests.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/contributors/devel/sig-node/e2e-node-tests.md b/contributors/devel/sig-node/e2e-node-tests.md index 31c0459c..786076dd 100644 --- a/contributors/devel/sig-node/e2e-node-tests.md +++ b/contributors/devel/sig-node/e2e-node-tests.md @@ -251,3 +251,43 @@ The PR builder runs tests against the images listed in [jenkins-pull.properties] The post submit tests run against the images listed in [jenkins-ci.properties](https://git.k8s.io/kubernetes/test/e2e_node/jenkins/jenkins-ci.properties) + +# Notes on the Topology Manager tests + +The Topology Manager tests require a multi-numa node box (two or more nodes) with at least one SRIOV device installed to run. +The tests automatically skip if the conditions aren't met. + +The test code statically includes the manifests needed to configure the SRIOV device plugin. +However, is not possible to anticipate all the possible configuration, hence the included configuration is intentionally minimal. + +It is recommended you supply a ConfigMap describing the cards installed in the machine running the tests using TEST_ARGS. +[Here's the upstream reference](https://github.com/intel/sriov-network-device-plugin/blob/master/deployments/configMap.yaml) +```sh +make test-e2e-node TEST_ARGS='--sriovdp-configmap-file="/path/to/sriovdp-config-map.yaml"' +``` + +You must have the Virtual Functions (VFs) already created in the node you want to run the test on. +Example command to create the VFs - please note the PCI address of the SRIOV device depends on the host +system hardware. +```bash +cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sriov_numvfs +echo 7 > /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sriov_numvfs +``` + +Some topology manager tests require minimal knowledge of the host topology in order to be performed. +The required information is to which NUMA node in the system are the SRIOV device attached to. +The test code tries to autodetect the information it needs, skipping the relevant tests if the autodetection fails. + +You can override the autodetection adding annotations to the the config map like this example: +```yaml +metadata: + annotations: + pcidevice_node0: "1" + pcidevice_node1: "0" + pcidevice_node2: "0" + pcidevice_node3: "0" +``` + +Please note that if you add the annotations, then you must provide the full information: +you must should specify the number of SRIOV devices attached to each NUMA node in the system, +even if the number is zero. |
