Joe Thornber
232f779db4
[bcache] add bcache_abort()
...
This gives us a way to cope with write failures.
2020-01-16 14:53:17 +00:00
Joe Thornber
b6e6ea2d65
[bcache] Bring bcache into sync with master branch
2020-01-16 14:20:35 +00:00
Joe Thornber
e552103027
[radix-tree] Bring radix-tree up to date with the master branch
2020-01-16 14:03:42 +00:00
Marian Csontos
61c321d110
test: Fix handling leftovers from previous tests
...
teardown fails current PREFIX is prefix of previously failed test with
leftovers in dmtable.
(cherry picked from commit 1e669ab315
)
2019-11-20 15:31:21 +01:00
Zdenek Kabelac
fa4ce13e3f
tests: fix else path
...
Code when raid is present has some 'extra' effect that can't be skipped.
2019-11-11 18:00:27 +01:00
Zdenek Kabelac
7581cc20c9
tests: add test of resize of different segtypes
2019-11-11 17:50:03 +01:00
Zdenek Kabelac
2f615e73de
tests: add extra settle
...
To avoid removing, while 'add' might not have been processed yet.
(when emulating reboot in pvmove-restart)
2019-11-08 15:12:51 +01:00
Zdenek Kabelac
0e3e974bff
tests: skip unneeded status check
...
If 'remove' was succesful - we can break loop immediatelly.
2019-11-08 15:12:51 +01:00
Zdenek Kabelac
343d80a7fe
tests: be happy with less then 90 percent
...
Thin metadata evolve between kernel version, so it's not always
precisely predictible its usage - so let's met test happy,
when it gets bellow 90%.
2019-11-01 16:21:52 +01:00
Zdenek Kabelac
a611f24751
tests: larger are needs to be disabled
...
Since we 'disable' lvmetad via --repair of 'raid'
if such target is not present, we simply skip
all tests expecting disabled lvmetad.
2019-11-01 16:12:39 +01:00
Zdenek Kabelac
4ae481bb30
tests: skip test if scsi_debug is not available
2019-11-01 16:12:39 +01:00
Zdenek Kabelac
2cd30c0d44
tests: needs some raid
...
Add explicit check for at least 'some' raid being present.
Slowdown 'delay' more.
2019-11-01 16:12:39 +01:00
Zdenek Kabelac
010062cf03
tests: conversion only of exclusive lv
...
We can 'cache' only exclusively active LV in cluster.
2019-11-01 15:59:17 +01:00
Zdenek Kabelac
df00a62fd0
tests: avoid checking command result in cluster
...
When running cluster test with clvmd, the actual 'monitoring'
happens in cluster - so the 'already monitored' message
is also logged within clvmd code and the command cannot
see such effect.
clvmd was incapable to report this information back to command
so it cannot be displayed this way.
Add 'lvs -o+seg_monitor' validation which also works in clustered mode.
2019-11-01 15:56:03 +01:00
Zdenek Kabelac
50ab7b3ceb
tests: reduce space requirements
...
Test well runs on smaller test machines.
2019-10-31 13:14:50 +01:00
Zdenek Kabelac
8b741b3bba
tests: needs exclusive activation for conversion
...
For online convertion LVs must be activated localy exclusive as
cache can only work for exclusive activation.
2019-10-30 09:36:10 +01:00
Zdenek Kabelac
9a8bff003b
tests: explicit testing of thin snapshot
...
Check merging of old snapshot of thin LV.
2019-10-26 00:46:33 +02:00
Zdenek Kabelac
bc200e0b16
tests: really check disabling of lvmetad
...
Since lvconvert validated LV types that can be repaired,
the test was not working properly for longer time...
2019-10-26 00:29:44 +02:00
David Teigland
e298a87f71
Revert "tests: remove allow-mixed-block-sizes"
...
This reverts commit 4e99308b7c
.
2019-10-24 10:26:28 -05:00
David Teigland
4e99308b7c
tests: remove allow-mixed-block-sizes
2019-10-23 13:26:19 -05:00
Heinz Mauelshagen
8632aa5fd3
test: increase size of raid10 LV allowing tests to succeed on fast storage
...
Also add health char check.
2019-10-02 17:03:52 +02:00
Heinz Mauelshagen
a0b30eadd1
test: add RAID lvextend resynchronization test
...
Due to a dm-raid target flaw fixed in target version 1.15.0,
extents of raid sets don't get resynchronized when new MD bitmp
pages have to be allocated due to the extension.
Introduce lvextend-raid.sh to test this flaw.
Related: rhbz1671964
2019-10-02 17:03:51 +02:00
Heinz Mauelshagen
a087da2f51
test: add checks for not 100% sync ratio after initiation of check/repair
...
Related: rhbz1640630
2019-10-02 17:03:49 +02:00
David Teigland
2327f3997b
tests: allow-mixed-block-sizes skip with older losetup
...
(cherry picked from commit 69b7c00a77
)
2019-09-24 14:08:23 +02:00
David Teigland
f758d16b30
tests: allow-mixed-block-sizes
...
(cherry picked from commit cd8a0133fa
)
2019-09-24 10:48:39 +02:00
David Teigland
44b98d77ec
tests: add test for pvscan activation of incomplete vg
2019-09-18 13:29:17 -05:00
Zdenek Kabelac
2694f93bb4
tests: pool conversion
...
Test conversion of cached LV.
2019-09-17 11:33:55 +02:00
David Teigland
a178ad0858
tests: large-physical-sector-size
2019-07-30 16:12:45 -05:00
Zdenek Kabelac
2f846697fc
tests: add settle wait before issue remove
...
Some older BB with older cryptsetup tool do not 'retry' on remove
and when remove is issued right after 'fsck' - it might be
rejected with:
Device @PREFIX@-tcrypt2 is busy.
Try to use udevadm settle.
2019-07-06 01:24:28 +02:00
David Teigland
cff9bff0af
tests: fsadm-crypt.sh update mkfs parameter
...
mkfs.xfs was rejecting previously working value
2019-07-06 01:24:28 +02:00
Zdenek Kabelac
143aca25da
tests: split args
...
Here we want args to be splited into individual strings.
2019-07-06 01:24:28 +02:00
Zdenek Kabelac
1e9c409a3e
tests: use luks1 for test
...
Since we do not need anywhere luks2 - pick older format
which does not require password for resize to keep
the rest of test unmodified.
2019-07-06 01:24:28 +02:00
Zdenek Kabelac
e1cc409ae6
tests: raise minsize of xfs
...
mkfs.xfs now needs at least ~1600...
2019-07-06 01:24:28 +02:00
Zdenek Kabelac
49813abc00
tests: for cluster always use exlusive mirrors
...
So to check the reason of failure is not influenced by missing cmirrord.
2019-06-21 14:51:17 +02:00
Zdenek Kabelac
788d89c412
tests: accept also value 512
...
Older kernels provide fixed value 512 instead of 0.
2019-06-20 14:20:35 +02:00
Zdenek Kabelac
e0a176f49a
tests: properly enforce v1
...
Since with smq policy we can still pick format v2 - enforce
format v1 explicitely.
2019-06-20 11:21:59 +02:00
Zdenek Kabelac
24186cd9ce
tests: drop unwanted backup
2019-06-20 11:21:59 +02:00
Zdenek Kabelac
2806e6265f
tests: for cluster testing we always need exclusive mirrors
...
Cluster test would fail without exlusively activated mirror.
FIXME: test is still broken, since LV2 is not active after split.
2019-06-20 11:21:59 +02:00
Zdenek Kabelac
02a5921cdb
tests: check for installed time command
...
If the /usr/bin/time command is not installed, skip test
(do not want to use shells' built-in).
2019-06-20 11:21:08 +02:00
Zdenek Kabelac
b61c89b52b
tests: update resize value
...
Since we now properly extend also _pmspare - there was not enough free
space to add 8extents to both volumes.
2019-06-20 10:55:55 +02:00
Zdenek Kabelac
78c937552a
tests: simplify some var settings
...
scan_lvs now automatically comes with extend_filter_LVMTEST
2019-06-20 00:05:46 +02:00
Zdenek Kabelac
a311684c4a
aux: fix selecting lvmconf values
...
For older bashes (i.e. rhel5) code can't use internal bash arrays
and uses old-school greps and sorts to create configuration file.
But the split of value was mismatching names with same prefix
so i.e.
devices/scan
devices/scan_lvs
was matching always the later one - fix this by expecting
whitespace or '=' after the name.
2019-06-20 00:05:46 +02:00
Zdenek Kabelac
1727df7c98
tests: check mirror with clvmd and dmeventd
2019-06-19 13:38:57 +02:00
Zdenek Kabelac
29ae8b8ca5
tests: fix ra checking
...
Since with some installed package like 'tuned' the value of 'RA' on
PV origin device can be different, adapting tests to count with this.
2019-06-19 13:37:11 +02:00
Zdenek Kabelac
e80ca65d30
tests: replaces grep -q usage
...
Since we use 'set -euE -o pipefail' for shell execution,
any failure of any command in the 'piped' shell can result
in failure of whole executed chain - resulting in typically
unsually test skip, that was left unnoticed.
Since checked command have usually short output, the simplest
fix seems to be to let grep parse whole output instead
of quiting after first match.
2019-06-19 13:36:58 +02:00
Zdenek Kabelac
cb7766bc14
tests: check no_discard_passdown
...
Check reporting works
2019-06-05 15:54:59 +02:00
Zdenek Kabelac
1308572a87
tests: automatically set scan_lvs when using extend_filter
...
When using 'aux extend_filter' we always want to use LV as PV.
2019-06-05 15:54:59 +02:00
Zdenek Kabelac
f633d68c54
tests: update cache test
...
Since migration_threshold is now protected to not be smaller
then 8*chunk_size - update tests to count with this modification.
(cherry picked from commit 2cac4bfc15
)
2019-06-05 11:23:25 +02:00
Zdenek Kabelac
d5a5792b30
tests: check accepting out-of-range creation_time
2019-05-10 15:07:25 +02:00
Zdenek Kabelac
9d7afaaab8
tests: update parm for new kernel
2019-04-30 13:16:31 +02:00