containerized-data-importer/tools/vddk-test
Matthew Arnold 27dc66bb7b
CNV-52722: Pass through extra VDDK configuration options to importer pod. (#3572)
* Add annotation for extra VDDK library arguments.

The VDDK library itself accepts infrequently-used arguments in a
configuration file, and some of these arguments have been tested to show
a significant transfer speedup in some environments. This adds an
annotation that references a ConfigMap holding the contents of this VDDK
configuration file, and mounts it to the importer pod. The first file in
the mounted directory is passed to the VDDK.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add functional test for VDDK args annotation.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add unit test for extra VDDK arguments annotation.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Add documentation for extra VDDK arguments.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Simplify new functional test annotation creation.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Look for specific file instead of first file.

Instead of listing the mounted VDDK arguments directory and filtering
out hidden files, just hard-code the expected file name and ConfigMap
key.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Move extra VDDK arguments functional test.

Put this in import_test and assert the values there, instead of in the
VDDK test plugin. The VDDK plugin logs the given values, and then the
test scans the log for what it expects to see.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Clean up lint error.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Move VDDK configuration test back, change test ID.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Avoid using kubectl for scanning nbdkit logs.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Temporary: show whole nbdkit log after failure.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Revert "Temporary: show whole nbdkit log after failure."

This reverts commit 488849f8fd.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Copy extra VDDK args annotation for populators.

Also add a related unit test.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

* Correct VDDK args config map mount comment.

Signed-off-by: Matthew Arnold <marnold@redhat.com>

---------

Signed-off-by: Matthew Arnold <marnold@redhat.com>
2025-01-20 18:30:50 +01:00
..
BUILD.bazel s390x enablement WIP (#3357) 2024-08-31 05:03:56 +02:00
entrypoint.sh Use centos:stream9 as a base image, cleanup unused code (#1983) 2022-04-20 19:37:51 +02:00
vddk-test-plugin.c CNV-52722: Pass through extra VDDK configuration options to importer pod. (#3572) 2025-01-20 18:30:50 +01:00