Zdenek Kabelac
37d603268f
tests: for 4.18 use already 1.20 logic
...
Looks like there was some missed versioning increase during devel.
So with kernel >= 4.18 version 1.19 is enough to look like 1.20
However backported 1.19 targets seems to not provide all
the capabilities.
2021-03-27 23:16:52 +01:00
Zdenek Kabelac
f07a793813
tests: correct thin-pool version
...
Use thin-pool target version 1.20 for changed behavior.
2021-03-27 00:34:00 +01:00
Zdenek Kabelac
53338cf566
tests: increase mirror throttling
2021-03-27 00:29:28 +01:00
Zdenek Kabelac
8e9bc52b15
tests: more skipped tests for lvmpolld
2021-03-26 22:13:37 +01:00
Zdenek Kabelac
a55f4a8fe2
tests: use shell comment
2021-03-26 22:12:42 +01:00
Zdenek Kabelac
1d6e1d08a8
tests: update for newer thin-pool
...
Newer thin-pool handle metadata read-only recovery better.
2021-03-26 20:39:41 +01:00
Zdenek Kabelac
51ac56a05e
tests: use blkid without caching
...
Always use blkid without caching to avoid poluting
cache stored in /run/blkid or /etc on older distros
2021-03-26 20:39:41 +01:00
Zdenek Kabelac
02e02a5ccc
tests: use aux mdadm_assemble wrapper
2021-03-26 20:39:41 +01:00
Zdenek Kabelac
5ef8d84569
tests: better reporting of problematic services
2021-03-26 20:39:40 +01:00
Zdenek Kabelac
49575a6ce1
tests: skip more tests for lvmpolld pass
...
These test do not test polling, so skip them for lvmpolld pass.
2021-03-26 20:39:40 +01:00
Zdenek Kabelac
6db533c439
tests: try to observe some unusual problem
...
Lets see, why it's very occasionaly able to active LV.
2021-03-26 11:36:22 +01:00
Zdenek Kabelac
3ed79d8dfe
tests: move setting of dmeventd pid
...
Added comment the 'lvs' already initiates dmeventd
Note: we don't have any query mechanism to check if dmeventd
is already running except access of socket which basically
starts dmeventd if it's not running.
2021-03-26 11:16:32 +01:00
Zdenek Kabelac
85fae836c0
tests: add basic validation of running services
...
For determinist test results lvm2/dm service shall not be present
and running in the system as it may randomize test results.
In case they are found present, this test ends with warning (not failure).
2021-03-26 11:13:56 +01:00
Zdenek Kabelac
9bcc76b63c
tests: add should for racy test
...
Depending on kernel, the race may or may not happen.
2021-03-26 00:43:44 +01:00
Zdenek Kabelac
5feb99dda6
tests: add workaround for older mdadm
...
Some older instancies of 'mdadm' opened legs in RW and
closed and opened again and expected exlusive access.
But here udev rule can be fired - so on these versions
slow down whole mdadm runtime by using strace, to
give system a bit more time to finish udev rule.
2021-03-26 00:35:28 +01:00
Zdenek Kabelac
2151b71819
tests: check fsadm with missing filesystem
2021-03-24 16:38:12 +01:00
Zdenek Kabelac
9684e82cc4
tests: ignore incosistent raid status
...
Just like lvm command ignores 0/xxxx report from judging the status.
Avoid using infinite loop and limit report checking to 100 checks.
If it would need more - something is not right.
2021-03-24 12:40:17 +01:00
Zdenek Kabelac
afd43a75f2
tests: skip stray testing on real dev dir
...
Do not modify /dev dir maintained by udev.
2021-03-24 12:23:07 +01:00
Zdenek Kabelac
18f2475fa1
tests: query info instead of table
...
No need to access table when we just check presence,
so generate smaller error message about missing device.
2021-03-24 12:22:27 +01:00
Zdenek Kabelac
8df0a32abb
tests: this test has race in it depending on kernel
...
Some kernel seems to keep 'lvextend' busy so long,
that actual resize already happens.
So ATM use 'should' until something better is invented.
2021-03-23 21:32:51 +01:00
Zdenek Kabelac
14a3c34983
tests: increase required version
...
Seems like version 1.13.2 remains crashing kernel - so increase
the required version for this reshaping test.
2021-03-23 14:39:13 +01:00
Zdenek Kabelac
d0644fb2c3
tests: use prefix for VG name
2021-03-23 14:38:54 +01:00
Zdenek Kabelac
26d76d31c5
tests: use mirror throttling
...
Combination of throttling and slowed device is a bit faster.
Also add FIXME about the mutliple spawn polling processing
when activating invidual LV for a pvmove.
2021-03-23 11:34:34 +01:00
Zdenek Kabelac
0b2a037c80
tests: try to move more date
...
Throttling was not helping with race - try to use more data.
2021-03-23 10:53:02 +01:00
Zdenek Kabelac
acac3cb524
tests: test needs to have playable locking dir
2021-03-23 09:48:47 +01:00
Zdenek Kabelac
7575c7ae5c
tests: set known locking dir
...
Tests running in the system may use locking dir of the system.
2021-03-23 01:15:29 +01:00
Zdenek Kabelac
a7d7471906
tests: convert to use mdadm_create
...
Flip usage from prepare_md_dev to mdadm_create.
2021-03-22 22:50:36 +01:00
Zdenek Kabelac
b1483dcbac
tests: more usage of new aux mdadm_create
...
Condense tests and use the new mdadm_create.
2021-03-22 22:49:11 +01:00
Zdenek Kabelac
76d203517b
tests: use mdadm support
...
Use for testing new mdadm_create aux wrapper.
Place functionality into a 2 pass loop - one for 'auto' other for 'start'.
Share same tests between raid level 0 and level 1 version of raid.
2021-03-22 22:46:21 +01:00
Zdenek Kabelac
daca6e2c22
tests: even more aggressive throttling
...
Try if the test gets slowed down with slower mirroring (1)
or we would need something better to beat the race.
2021-03-22 22:36:37 +01:00
Zdenek Kabelac
bee8027cfa
tests: skip only portion of test
...
Seems this kernel bug is taking more time to get it fixed,
so skipping only failing portion of test and ending with WARNING.
2021-03-22 22:36:37 +01:00
Zdenek Kabelac
f1858d209d
tests: remove incorrect check
...
We would need to be check same status value - otherwise
we can hit race in validating 2 different states.
2021-03-22 22:36:37 +01:00
Zdenek Kabelac
d6bc11bf72
tests: use mirror throttling
...
With small mirrors its better to throttle speed of mirror in dm-mirror.
2021-03-20 10:52:24 +01:00
Zdenek Kabelac
2dd43a7314
tests: slow down device more
...
Make the race with too fast merging less likely to occure.
2021-03-20 10:52:24 +01:00
Zdenek Kabelac
94c4af232c
tests: prohibit 4K brd device with integrity
...
Older kernels hit these errors:
device-mapper: integrity: Bio not aligned on 8 sectors: 0x8ffc, 0x4
2021-03-20 10:52:24 +01:00
Zdenek Kabelac
179f59a0ca
tests: add FIXME to raid test
...
We have here some kind of catch-22 - since older kernels do
use 'resync' while new 'recover' for initial raid synchronization.
So now - how do we recognize in which state of raid we are.
ATM seems to be simplest to simply keep disabled droping of primary raid
leg unless we are in sync.
FIXME: we should add a target version check and enable removal
2021-03-20 10:52:24 +01:00
Zdenek Kabelac
e27baa791f
tests: drop status workaround
...
lvconvert should now recognize resync from older kernels.
2021-03-20 00:05:01 +01:00
Zdenek Kabelac
ed90a3d9b4
tests: copy more data
...
Give pvmove --abort bigger aborting window.
2021-03-20 00:05:01 +01:00
Zdenek Kabelac
fe3ef6867f
tests: require newer raid version
...
Tests needs reshape support - so require newer target version
as quick fix.
TODO: inspect indiviual supportable conversion with older versions.
2021-03-20 00:05:01 +01:00
Zdenek Kabelac
26fb6b5e8d
tests: check for raid sync in progress
...
TODO: this needs to be built-in in lvm command itself.
2021-03-18 19:12:00 +01:00
Zdenek Kabelac
accf324ccb
tests: add check for lvconvert without zeroing
...
Check lvconvert -Zn does not zero thin-pool metadata.
Also check --type zero is usable for thin-pool data.
2021-03-18 18:57:45 +01:00
Zdenek Kabelac
c06325263f
tests: check mixing striped with error and zero
2021-03-18 18:57:45 +01:00
Zdenek Kabelac
583cf413d5
tests: avoid leaking unkilled commands
...
Between each new test here we want to kill previous commands,
otherwise they will influence results of next test.
2021-03-17 00:59:50 +01:00
Zdenek Kabelac
fda7bc1297
tests: wait for Aa status
2021-03-17 00:59:50 +01:00
Zdenek Kabelac
80d0f200d0
tests: increase version of targets for progress
2021-03-17 00:59:50 +01:00
Zdenek Kabelac
e793ff1e18
tests: workaround for some raid targets
...
Problem with some target is that shortly after initialization it
returns incorrect status letters.
2021-03-17 00:59:50 +01:00
Zdenek Kabelac
db37905d7f
tests: no further fixes likely to be expected
...
Skip tests for these kernels.
2021-03-17 00:59:50 +01:00
Zdenek Kabelac
87659256f0
tests: require newer version of raid target
2021-03-17 00:59:50 +01:00
Zdenek Kabelac
92ee16f7c0
tests: update mirror test
...
Log results of uniq.
Remove few unneeded lvs calls.
2021-03-17 00:59:50 +01:00
Zdenek Kabelac
53bad89a7b
tests: added check for kernel version
...
With older kernels this test can't work reliable,
since 'suspend' used to clean all dirty blocks
(taking even several seconds).
2021-03-17 00:59:50 +01:00