Whamcloud - gitweb
EX-3342 tests: fix Lustre ver in skip checks in sanity-flr
authorAlena Nikitenko <anikitenko@ddn.com>
Tue, 28 Dec 2021 17:26:53 +0000 (20:26 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 3 Feb 2022 00:05:36 +0000 (00:05 +0000)
commit86f7ab1aeb3e18aa12b364066ebbe43f8fdc8ded
tree3f5f8fd24ec8ee5b007c94e439d88d1d8b4bbfeb
parenta8d68a0bce02b577a2502327273dc0872097759d
EX-3342 tests: fix Lustre ver in skip checks in sanity-flr

Many patches land to the EXAScaler branches as ports from
other branches.  Sometimes the tests that are included with
the ported patches check the version of Lustre to ensure
that the feature it tests exists in this version of Lustre.
These version values are not always changed when patches
are ported from one branch to another.

Sanity-flr tests 0b, 0h, 37 were modified.

Performing test steps on versions >= 2.12.56 or between
versions 2.12.2 and 2.12.50 makes no sense for b_es5_2
branch, because all Lustre tags on this branch are lower
than 2.12.50.
Similar checks happen in all three of the modified tests.
Checks in tests 0b and 0h will be changed to >= 2.12.3.1
which is a tag for the patches that added these tests to
this branch. Test 37 check doesn't need elif statement,
because original test excludes versions between 2.12.50
and 2.12.52, which doesn't make sense for b_es5_2 branch.
It will be replaced with else statement.

Fixes: 3a8d96a1ebf ("LU-11022 lfs: remove mirror by pool name")
Fixes: 79346930b34 ("LU-11485 lod: disallow setting the last non-stale mirror as stale")
Fixes: 24f181513fb ("LU-10258 lfs: lfs mirror copy command")

Lustre-change: https://review.whamcloud.com/45949
Lustre-commit: 896b18bf3dd169641147ad382314f86d482ad670

Test-Parameters: env=ONLY="0b 0h 37" serverversion=2.10.8 \
serverdistro=el7.6 testlist=sanity-flr
Test-Parameters: trivial env=ONLY="0b 0h 37" testlist=sanity-flr

Signed-off-by: Alena Nikitenko <anikitenko@ddn.com>
Change-Id: Ie417f72b7ccafff600a762f78f5c2c1605e00221
Reviewed-on: https://review.whamcloud.com/45949
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46414
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-flr.sh