Zdenek Kabelac
5e4c0701d9
aux: more efficient lvmlock shutdown
2023-04-25 00:12:31 +02:00
Zdenek Kabelac
ce8835d4c4
tests: enforce 4K block for integrity fs
...
With raid tests it's important we don't get spread of 4K file
across 1K block on a multiple disk stripe - so use 4K block size
for ext4 fs.
2023-04-23 00:03:43 +02:00
Zdenek Kabelac
7cf5feb7d2
aux: loop doesn't support zeroing discard
...
To avoid logging unsupported WRITE_ZEROES with loop,
disable usage for this backend device.
2023-04-23 00:02:33 +02:00
Zdenek Kabelac
bbc67abeed
tests: hide some more file in error trace
...
Hide unneeded dev nodes.
2023-04-22 11:25:39 +02:00
Zdenek Kabelac
f239ce2353
makefiles: forgotten to install some test config
...
rpm testing missed config files.
2023-04-22 11:25:39 +02:00
Zdenek Kabelac
1f4e3832e0
test: use aux wait_recalc
...
Use aux function.
2023-04-22 11:25:39 +02:00
Zdenek Kabelac
2043bb0e38
test: convert to use ext4
...
Modify test to check same properties with less demanding ext4.
2023-04-22 11:25:39 +02:00
Zdenek Kabelac
b0f26a135b
aux: don't use to new dd options
...
Actually oseek comes only with rawhide's version,
just use the standard option name.
2023-04-21 22:01:40 +02:00
Zdenek Kabelac
8bcf46a0ac
tests: add data sync
2023-04-21 14:52:43 +02:00
Zdenek Kabelac
80ebec099d
aux: add wait_recalc
...
Share function across tests.
2023-04-21 14:52:43 +02:00
Zdenek Kabelac
4e0aab7428
tests: convert to use ext4
...
Convert test to use only ext4 instead of 300M demanding XFS.
Shorten 'B' files to 4K and use 4K strip size with >raid1 arrays
so we do not risk spreading of the file across stripe.
Also use easier 'aux corrupt_dev()' method to introduce a bit
corruption into a block device with integrity.
TODO: shorten _wait_recalc (should't be needed).
2023-04-21 14:52:43 +02:00
Zdenek Kabelac
b2360437e0
tests: use aux clear_dev
...
Use wrapper over 'blkdiscard -z'
2023-04-21 14:52:43 +02:00
Zdenek Kabelac
c331a3b1da
aux: add corrupt_dev
...
Add function to corrupt some bytes in give file path presenting
a device. 1st. patern in just once replaced with 2nd. pattern.
Usable to simulate some bit corruption for integrity devices.
2023-04-21 14:52:43 +02:00
Zdenek Kabelac
11562bcc6b
aux: add clear_dev
...
Function that will use 'blkdiscard -z' and fallbacks
to 'dd' when such option is not available.
2023-04-21 14:52:43 +02:00
Vojtech Trefny
7807672975
lvmdbusd: Add a flag to activate LVs in shared mode to Lv.Activate
2023-04-20 12:09:11 -05:00
David Teigland
317071ec53
cache: fix snapshot of cache with cachevol
...
Creating a snapshot of a cache LV with a cachevol would fail
because cache_check was not being skipped.
2023-04-10 12:44:22 -05:00
Zdenek Kabelac
e59e7aa0ab
tests: use less demanding ext4
2023-04-06 13:41:30 +02:00
Zdenek Kabelac
7b5291a8ed
tests: lower demand for disk resources
...
Convert test to use a single skeleton and only different pieces
keep in separate tests.
Lower raid disk usage to smaller size and switch to ext4
as way less demanding fileystem.
2023-04-06 13:34:26 +02:00
David Teigland
390ff5be2f
raidintegrity: allow writecache and cache
...
Allow writecache|cache over raid+integrity LV.
2023-04-05 14:24:07 -05:00
David Teigland
ebbc3f7ab3
tests: integrity fixes
...
wait_recalc was mistakenly being called on raid without integrity
wait_recalc loop was exiting without error
2023-04-05 14:24:07 -05:00
David Teigland
49dbeb9b45
tests: nomda-restoremissing
...
This test was broken by commit 69ea2e3f9
"vg_read: keep MISSING_PV when device with no mda reappears"
Change the test to match the new behavior.
2023-03-20 12:42:50 -05:00
Tony Asleson
0c73d3545b
lvmdbustest: Correct env. logic
...
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2023-03-14 09:36:38 -05:00
Tony Asleson
baf99ff974
lvmdbustest: Add notes on error injection testing
...
Not doing this by default for automated build testing as it generates a
lot of output and slows things down by another ~10%.
2023-03-10 12:51:53 -06:00
Tony Asleson
1c550d7124
lvmdbustest: Add env. variable to skip signal testing
...
This is currently need if we are collecting code coverage data as we don't
handle this unit test correctly.
2023-03-10 12:51:53 -06:00
Tony Asleson
f8876290bf
lvmdbustest: Check for needed env. variables
2023-03-10 12:51:53 -06:00
Tony Asleson
568e8c71d7
lvmdbustest: Don't use hard coded /tmp for error inject log
2023-03-10 12:51:53 -06:00
Tony Asleson
9c3b91a513
lvmdbustest: Shutdown cleanly with "exit"
...
Make the error injection wrapper handle the exit case, so that we can
clean up gracefully when instructed to do so.
2023-03-10 12:51:53 -06:00
Tony Asleson
9714f3ec4f
lvmdbustest: Only inject 1 missing key error
...
Previously we were injecting a missing key in the lv, vg, and pv.
Given the order of processing in lvmdbusd, this prevented us from
exercising all the error paths. Change to returning just 1 instead.
2023-03-10 12:51:53 -06:00
Tony Asleson
2359023009
lvmdbustest: Correctly set up env. for error injection
2023-03-10 12:51:53 -06:00
Tony Asleson
70a5ebc052
lvmdbustest: open log file with "a"
...
So we retain the log across fork & exec and lvm shell testing.
2023-03-10 12:51:53 -06:00
David Teigland
e79c6feb08
tests: update missing-pv
...
add more checks and expand comments explaining behavior
2023-03-08 16:31:28 -06:00
David Teigland
937f1d3209
tests: vg-raid-takeover
...
Different sequences of steps that could be used to handle raid LVs
after VG takeover (what would happen in cluster failover) combined
with the loss of a disk.
2023-03-08 16:31:28 -06:00
David Teigland
aa85ed1784
vgchange: allow changing system ID with majority of PVs
...
when used with --majoritypvs. This allows the fail-over
of a VG between systems by changing the VG system ID when
a PV is missing.
2023-03-08 16:30:54 -06:00
Tony Asleson
8e27dfd405
lvmdbustest: Test duplicate VG rename
2023-03-03 11:17:30 -06:00
Tony Asleson
3e616230f2
lvmdbustest: Add more info on asserts
2023-03-02 11:44:16 -06:00
Tony Asleson
95afd315b1
lvmdbustest: Don't hard code to /tmp
...
During lvm testing they use an alternative tmp directory.
2023-03-01 15:59:18 -06:00
Tony Asleson
50e6efafb9
lvmdbustest: Add more output for test_log_file_option
2023-03-01 15:52:23 -06:00
Tony Asleson
80f6655956
lvmdbustest.py: Increase udev timeout
2023-03-01 15:26:37 -06:00
Tony Asleson
e3b7395af4
lvmdbustest.py: Remove use of root_dir in glob
...
This feature has only been in python since 10/2021.
2023-02-27 09:07:37 -06:00
David Teigland
1857eb9fe0
lvresize: fix check for mounted and renamed LV to handle spaces
...
Replace spaces with \040 in directory paths from getmntent (mtab).
The recent commit 5374a44c5712 compares mount point directory paths
from /etc/mtab and /proc/mounts, in order to detect when a mounted
LV has been renamed. The directory path comparison does not work
correctly when the path contains spaces because getmntent uses
ascii space chars and proc replaces spaces with \040.
2023-02-23 16:55:36 -06:00
Zdenek Kabelac
c1cecc3dc5
aux: lvmdbus checks for JSONDecodeError
...
Skip lvmdbus testing with too old python.
2023-02-23 16:46:35 +01:00
Zdenek Kabelac
d11e12264f
tests: add missing quotes
...
Add quotes around paths and also add fixme for checking
system is actually usable for a test with all running
services.
2023-02-23 16:46:35 +01:00
Zdenek Kabelac
f5acdc2d79
tests: use aux mdadm wrapper
...
Wrapper takes care of proper MD device name around its various
incarnations.
2023-02-23 16:46:35 +01:00
Zdenek Kabelac
d7c4fb7743
tests: remove option chunk for mdadm raid1
...
Not sure why, but --chunk specification for mdadm raid1 is no longer
'wanted' ???
2023-02-23 16:46:35 +01:00
Zdenek Kabelac
6943afe9d5
tests: add fixme
2023-02-23 16:01:50 +01:00
Zdenek Kabelac
d5c0b68dde
tests: some skips with 6.2 kernel
...
Fix did not managed to get to final release so skip test on this kernel.
2023-02-23 16:01:50 +01:00
Tony Asleson
993bd2ffc8
lvmdbustest: Check and remove lvm debug collection files
...
In setup/teardown ensure we check for and remove any lvm debug
collection, to prevent FS from filling up.
2023-02-20 12:01:53 -06:00
Zdenek Kabelac
13b216fbdf
tests: safety first...
2023-02-17 00:08:50 +01:00
Zdenek Kabelac
1788b4b3aa
tests: lvmdbus testing use --debug optinally now
...
To shorten down logging output of lvmdbus - use for now lvmdbus
with --debug option only when LVM_DEBUG_LVMDBUS=1 is set.
2023-02-17 00:08:50 +01:00
Zdenek Kabelac
06c5c29443
tests: check failing vdo conversion
...
When we detect not usable vdo on a machine, check lvconvert fails.
2023-02-17 00:08:50 +01:00