1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
Commit Graph

2444 Commits

Author SHA1 Message Date
Zdenek Kabelac
6de0f5eab9 tests: check we detect lvm.conf read failure
No coredumps with unreadable lvm.conf.
2020-10-16 16:02:06 +02:00
Zdenek Kabelac
3388779570 tests: add wait on udev processing
Trying to avoid collision with udev watch rule preventing to
succeed 'dmsetup remove' because it keeps device open.
2020-10-16 16:02:05 +02:00
Zdenek Kabelac
70d2ff38c0 test: repair of thin-pool used by foreign apps 2020-04-08 15:31:17 +02:00
Zdenek Kabelac
a1f06e2fae tests: partial revert of test change of b6e6ea2d65
With the update with commit b6e6ea2d65
the test file has been updated - however stable branch still has
clvmd & lvmetad so we want to omit runnig unit tests for these runs.
2020-01-21 17:07:20 +01:00
Zdenek Kabelac
62888e9c76 tests: skip test when dm-delay is not available 2020-01-21 16:49:53 +01:00
Zdenek Kabelac
5ab4d44a3b aux: writeerror_dev checks for delay target 2020-01-21 16:49:34 +01:00
Zdenek Kabelac
c66e015698 tests: add corruption write on PV test
Test a case where PV is readable, but fails on write updating.
Check the failure is reported only for a single PV.
2020-01-20 15:21:38 +01:00
Zdenek Kabelac
9b41118b9c tests: writeerror_dev
Intruduce aux function for easy simulation of disk areas,
that are 'normally' readable, but will fail on write.
2020-01-20 15:21:38 +01:00
Joe Thornber
d20490f76d [radix-tree] Add missing test case 2020-01-16 15:25:18 +00:00
Joe Thornber
056eb0a880 [bcache] add unit test
abort-forces-read
2020-01-16 14:58:12 +00:00
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