Whamcloud - gitweb
LU-16822 tests: Force IPv6 testing in mixed environment 22/55422/9
authorSrikanth Ramamurthy <srramamu@microsoft.com>
Mon, 17 Jun 2024 17:57:40 +0000 (11:57 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Jul 2024 20:07:58 +0000 (20:07 +0000)
commitc8ca47daac7af4268a0ea698f962e441f8a69108
tree7ede9a08de06a23daee3a014680332465027eb1e
parentd1866b210733b3b2e9815dc54d55b7e5ede901dd
LU-16822 tests: Force IPv6 testing in mixed environment

When an interface has both IPv4 and v6 addresses LNet will, by
default, configure the NI using the v4 address. The '--large' option
to lnetctl lnet configure tells LNet to configure the NI using the
v6 address instead. This patch adds a test-framework environment
variable that, when set, passes the --large option to lnet configure.
This allows us to force testing of IPv6 when running in a mixed v4/v6
environment.

This patch implements ip_is_v6() which is needed by some of the
router tests when using IPv6 NIDs.

Some test cases are added to the except list:
 - 230 requires lctl conn_list to be updated to work with large nids.
 - 303, and 500 have been found to trip LU-17460 bug.

Change-Id: I8934a87bfd836779b167df39c5d09d97ff78debf
Test-Parameters: trivial
Signed-off-by: Srikanth Ramamurthy <srramamu@microsoft.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55422
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-lnet.sh
lustre/tests/test-framework.sh