Zdenek Kabelac
3b05fd4d07
tests: add extra settle
...
To avoid removing, while 'add' might not have been processed yet.
(when emulating reboot in pvmove-restart)
2019-11-11 22:44:25 +01:00
Zdenek Kabelac
ba313ac84a
tests: skip unneeded status check
...
If 'remove' was succesful - we can break loop immediatelly.
2019-11-11 22:44:25 +01:00
Marian Csontos
8263e62b00
test: Fix metadata-zero-space with long VG names
2019-11-06 16:20:27 +01:00
Zdenek Kabelac
c67a03727b
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:31:12 +01:00
Zdenek Kabelac
dbaa4cdcdf
tests: skip test if scsi_debug is not available
2019-11-01 16:31:12 +01:00
Zdenek Kabelac
5f064e2221
tests: slowdown delay of raid
...
Slowdown 'delay' more.
2019-11-01 16:31:12 +01:00
Zdenek Kabelac
c935f8a327
tests: conversion only of exclusive lv
...
We can 'cache' only exclusively active LV in cluster.
2019-11-01 16:27:21 +01:00
Zdenek Kabelac
d1c5b3ae74
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 16:27:21 +01:00
Zdenek Kabelac
50b50039d9
tests: reduce space requirements
...
Test well runs on smaller test machines.
2019-10-31 15:31:30 +01:00
Tony Asleson
508d1808b0
lvmdbustest.py: Use local data instead of fetching
...
Avoid making more dbus calls to get information we already have. This
also avoids us getting an error where a dbus object representation is
being deleted by another process while we are trying to gather information
about it across the wire.
2019-10-30 10:38:40 -05:00
Tony Asleson
f91df163e2
lvmdbustest.py: Improve concurrent test handling
...
Filter out LVs too, so that we can run more than 1 instance of the
unit test at the same time.
2019-10-30 10:38:40 -05:00
Tony Asleson
f961311436
lvmdbustest.py: Add tests for LV interface
...
Add tests for all the different LV types with the standard LV dbus
interface. These tests shook out a couple of new bugs.
2019-10-30 10:38:40 -05:00
Tony Asleson
9e15c83673
testlib.py: Add interface instance vars.
2019-10-30 10:38:40 -05:00
Tony Asleson
b7aab9ba59
testlib.py: WS corrections
2019-10-30 10:38:40 -05:00
Tony Asleson
89373761c8
lvmdbustest.py: Add basic vdo test
2019-10-30 10:38:40 -05:00
Tony Asleson
ed7e365ae5
testlib.py: Correct dbus signature verification
...
This allows us to fully verify introspection data matches what we are
getting.
2019-10-30 10:38:40 -05:00
Tony Asleson
5971da2c72
lvmdbusd: VDO Pool LV representation
...
VDO pool LVs are represented by a new dbus interface VgVdo. Currently
the interface only has additional VDO properties, but when the
ability to support additional LV creation is added we can add a method
to the interface.
2019-10-30 10:38:40 -05:00
Tony Asleson
455498f206
lvmdbustest.py: Create common func. _create_cache_lv
2019-10-30 10:38:40 -05:00
Tony Asleson
c786636afb
lvmdbustest.py: Add nested helper function major_minor
2019-10-30 10:38:40 -05:00
Tony Asleson
e1d3a6c552
lvmdbustest.py: WS corrections
2019-10-30 10:38:40 -05:00
Tony Asleson
5b224d58f7
lvmdbustest.py: Add cache LV rename test
2019-10-30 10:38:40 -05:00
Tony Asleson
9d2ef05c5d
lvmdbusd: Add cfg.vdo_support
...
Will be used to add vdo interfaces on demand.
2019-10-30 10:38:40 -05:00
Tony Asleson
ceb808d26f
lvmdbustest.py: Remove 2 TODOs
...
This issue has been resolved, sizes > 2**32-1 not supported.
2019-10-30 10:38:40 -05:00
Tony Asleson
c5f4f2efb6
lvmdbustest.py: Add func. _pv_scan
2019-10-30 10:38:40 -05:00
Tony Asleson
69d4847975
lvmdbustest.py: Use existing _create_lv
2019-10-30 10:38:40 -05:00
Tony Asleson
293f6d2795
lvmdbustest.py: Add func. _create_thin_lv
2019-10-30 10:38:40 -05:00
Tony Asleson
a4666f63ad
lvmdbustest.py: Add func. _all_pv_object_paths
...
This is needed in a number of places.
2019-10-30 10:38:40 -05:00
Tony Asleson
b8d4969117
lvmdbustest.py: Add function for lv path check
2019-10-30 10:38:40 -05:00
Tony Asleson
22a22a735f
lvmdbusdtest.py: Use common function for tag add
2019-10-30 10:38:40 -05:00
Tony Asleson
62136c056a
lvmdbustest.py: Remove duplicate setup code
...
Remove the same copy & pasted code which simply creates a VG to
use.
2019-10-30 10:38:40 -05:00
Tony Asleson
bafe5d15b1
lvmdbusd: Add check for reserved name '_vdata'
...
Added for vdo support.
2019-10-30 10:38:40 -05:00
Tony Asleson
b7c64fe8e2
lvmdbustest.py: Add blurb about scan_lvs = 1
...
When developing and testing on a local system, to get the unit
test to pass the test_nesting test, editing the test conf will achieve
the success too.
2019-10-30 10:38:40 -05:00
Joe Thornber
5fdebf9bbf
[bcache] add unit test
...
abort-forces-read
2019-10-29 10:33:31 +00:00
Joe Thornber
2938b4dcca
[bcache] add bcache_abort()
...
This gives us a way to cope with write failures.
2019-10-28 15:00:53 +00:00
Zdenek Kabelac
e88fd2edfd
tests: explicit testing of thin snapshot
...
Check merging of old snapshot of thin LV.
2019-10-26 00:49:16 +02:00
David Teigland
221edf4030
tests: lvmlockd-lv-types handle new cpool renaming
2019-10-24 13:26:33 -05:00
Zdenek Kabelac
b4e87e638e
tests: enable with 6.2.1
...
Package vdo-6.2.2.18 goes with kvdo version 6.2.1
Hopefully will get fixed soon.
Meanwhile to get test coverage...
2019-10-22 16:06:19 +02:00
Zdenek Kabelac
65efacd0e0
tests: more suffixes
2019-10-22 13:39:39 +02:00
Zdenek Kabelac
a0e40bad1d
tests: used cache_pool adds _cpool
2019-10-21 15:32:35 +02:00
David Teigland
5714c8c9cc
pvck: dump metadata search
...
Improve the implementation of extracting all text metadata
copies from the metadata area. Use this for the existing
metadata_all dump option.
Add a new metadata_search dump option which does not use
lvm headers to find metadata, but looks in standard
locations. This is useful if headers are damaged and
can't be used to locate metadata.
Adding '-v' to metadata_all or metadata_search will add
the description and creation_time to the printed list of
metadata instances that are found.
2019-10-18 12:26:29 -05:00
Zdenek Kabelac
4f860f79ff
tests: cachevol needs FORMAT2
...
FORMAT2 is mandatory with cachevols...
2019-10-17 13:03:50 +02:00
Zdenek Kabelac
f07e5c1fe4
tests: skip when raid is not present
2019-10-17 13:03:50 +02:00
David Teigland
55bf692bff
tests: metadata-zero-space long vgnames
...
In the hex dump output, grep for the vgname
followed by one space. This allows for test pids
with up to seven digits, which are used to contruct
the variable vgname used by the test. Otherwise
the long vgname wraps to the next line and fails to
match in grep.
2019-10-16 09:46:48 -05:00
David Teigland
998e7b1075
writecache: add cvol suffix to attached cachevol
...
When an LV is used as a writecache cachevol, give
it the LV name a _cvol suffix. Remove the suffix
when the cachevol is detached, restoring the
original LV name.
2019-10-15 16:03:34 -05:00
Zdenek Kabelac
6666c39346
tests: cvol
2019-10-14 15:20:25 +02:00
Zdenek Kabelac
c70bab7531
tests: drop manipulation with 'internal' LV
...
Cachevol LV is 'internal' LV and should not be 'maintained' this way
while it's being used as cachevol.
2019-10-14 15:20:25 +02:00
Zdenek Kabelac
e6691aa04b
tests: disable caching of VDO
...
Disable until vdo gets fixed, then require fixed version.
Otherwise test kills kernel
2019-10-14 15:13:47 +02:00
Marian Csontos
df26b73b8e
test: Minimize data written by metadata-zero-space
...
The test is checking only 2 megabytes, but is rewriting much more. Bad
for limited ramdisk.
2019-10-09 15:11:03 +02:00
David Teigland
a22729a557
tests: improve lib wipefs_a
...
in wipefs fallback, use limited dd and mdadm --zero-superblock
to avoid writing to entire dev in case dev space is provisioned
on write.
2019-10-04 11:06:38 -05:00
David Teigland
d693041149
tests: add wipefs wrapper
...
which falls back to using dd on old systems without
the wipefs command
2019-10-02 14:11:08 -05:00
David Teigland
c2ff8876f9
tests: update to md dev name
...
Use /dev/md33 instead of /dev/md0 to reduce chances of
conflicting with an existing name.
Only call 'mdadm --stop /dev/md33' for cleanup and don't
use 'mdadm --stop --scan' to avoid stopping other md devs.
2019-10-02 14:09:51 -05:00
Heinz Mauelshagen
b138a87f43
test: increase size of raid10 LV allowing tests to succeed on fast storage
...
Also add health char check.
2019-10-02 15:25:43 +02:00
Heinz Mauelshagen
242e2dccc3
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 15:25:41 +02:00
Heinz Mauelshagen
c4aba47dd0
test: add checks for not 100% sync ratio after initiation of check/repair
...
Related: rhbz1640630
2019-10-02 15:25:30 +02:00
David Teigland
7368cf8e7d
pvck: handle PVs with zero metadata copies
2019-09-30 16:20:17 -05:00
David Teigland
1bfae5bf8e
tests: update duplicate md tests
...
adjust to recent improvements in duplicate handling
2019-09-30 11:38:10 -05:00
David Teigland
fd5b8b72da
tests: mdadm stop in test cleanup
...
try to clear any existing md devs remaining after
a test
2019-09-27 12:51:34 -05:00
David Teigland
9680fd6d78
tests: skip md tests if system not clean
2019-09-27 12:40:42 -05:00
David Teigland
0673d13518
tests: writecache-split check have_writecache
2019-09-26 10:45:53 -05:00
David Teigland
3b36de573e
tests: update cache-single-split
...
add some uncache commands
2019-09-24 15:51:05 -05:00
David Teigland
e35cf0f623
tests: add writecache-split
2019-09-23 16:35:01 -05:00
David Teigland
a353bfdd9f
tests: update cache-single-split
...
enable splitting while LV is active which works
again since the cvol suffix was dropped.
2019-09-23 14:21:09 -05:00
David Teigland
338a60bb41
tests: update cache-single-split
...
the new use of uuid suffixes on internal dm devs
has impacted splitting when an LV is active,
so temporarily disable that until fixed.
2019-09-20 16:36:14 -05:00
David Teigland
8d8b5e4f75
tests: add cache-single-split
2019-09-20 09:59:37 -05:00
Zdenek Kabelac
38a3da532f
tests: check vdo
2019-09-17 13:17:21 +02:00
Zdenek Kabelac
ee6b9b78ec
tests: pool conversion
...
Test conversion of cached LV.
2019-09-17 13:13:49 +02:00
David Teigland
13fb57bbb1
Revert "tests: drop unnecessary pid from LVMTEST prefix"
...
This reverts commit 51c105702f
.
it seems the test system still needs this for some reason
2019-09-16 13:01:50 -05:00
David Teigland
51c105702f
tests: drop unnecessary pid from LVMTEST prefix
2019-09-12 14:52:13 -05:00
David Teigland
df36a8eadf
tests: don't change real test output
2019-09-12 14:45:13 -05:00
David Teigland
196a9ed59f
tests: metadata-zero-space more debugging
2019-09-12 14:38:20 -05:00
David Teigland
39a0de68bd
tests: unnecessary braces causes test failures
2019-09-12 12:55:00 -05:00
David Teigland
585db87274
tests: skip some without wipefs
2019-09-12 11:23:30 -05:00
David Teigland
82b887a4cf
tests: more debug in metadata-zero-space
2019-09-12 11:19:44 -05:00
David Teigland
1fe04f89ef
tests: use standard md devices
2019-09-12 10:11:27 -05:00
David Teigland
772dbb1e39
tests: metadata-zero-space add info for debugging
2019-09-11 14:20:59 -05:00
David Teigland
447ba5f1c2
tests: skip without xxd
2019-09-11 14:01:55 -05:00
David Teigland
31b6a04e4c
tests: open-file-limit skip without prlimit
2019-09-11 14:01:55 -05:00
David Teigland
69b7c00a77
tests: allow-mixed-block-sizes skip with older losetup
2019-09-11 14:01:55 -05:00
David Teigland
715d2c778f
tests: cache-single tests require version 1 10
2019-09-11 14:01:55 -05:00
David Teigland
acb8050a30
tests: metadata-bad-text.sh with lvmlockd
...
skip part of test that doesn't apply
2019-09-05 15:27:52 -05:00
David Teigland
25b58310e3
pvscan: avoid full scan for activation
...
When an online PV completed a VG, the standard
activation functions were used to activate the VG.
These functions use a full scan of all devs.
When many pvscans are run during startup and need
to activate many VGs, scanning all devs from all
the pvscans can take a long time.
Optimize VG activation in pvscan to scan only the
devs in the VG being activated. This makes use of
the online file info that was used to determine
the VG was complete.
The downside of this approach is that pvscan activation
will not detect duplicate PVs and block activation,
where a normal activation command (which scans all
devices) would.
2019-09-03 10:11:16 -05:00
David Teigland
987f2733c7
tests: duplicate-pvs-md
...
Testing duplicate PV handling for various md device setups/states.
2019-08-16 13:26:12 -05:00
Zdenek Kabelac
e653f43732
tests: simplify some var settings
...
scan_lvs now automatically comes with extend_filter_LVMTEST
2019-08-09 12:57:21 +02:00
Zdenek Kabelac
05c7e09e71
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-08-09 12:57:21 +02:00
Zdenek Kabelac
505c1d56e8
tests: accept also value 512
...
Older kernels provide fixed value 512 instead of 0.
2019-08-09 12:57:21 +02:00
Zdenek Kabelac
1e553159d5
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-08-09 12:57:21 +02:00
Zdenek Kabelac
d3903d94e9
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-08-09 12:57:21 +02:00
Zdenek Kabelac
3596210e02
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-08-09 12:57:21 +02:00
David Teigland
3fcb4697f6
tests: open-file-limit
2019-08-08 15:45:03 -05:00
David Teigland
cd8a0133fa
tests: allow-mixed-block-sizes
2019-08-01 10:13:41 -05:00
David Teigland
e3ba8561fa
tests: large-physical-sector-size
2019-07-30 15:59:11 -05:00
Marian Csontos
dd19fa9ff3
tests: Fix unbound variable
...
Test `aux kernel_at_least 5 1` fails even for newer kernel
with `$3: unbound variable` when using `set -u`.
2019-07-24 16:30:15 +02:00
David Teigland
aa58f9bd9b
tests: lvm-on-md use variable run dir
...
for hints file
2019-07-12 16:51:49 -05:00
David Teigland
bbca70a0b7
tests: metadata-zero-space
...
Test zero padding between copies of metadata.
2019-07-12 15:03:47 -05:00
David Teigland
7230aa891c
tests: pvscan-autoactivate test unmatching dev and PV size
2019-07-11 11:38:12 -05:00
David Teigland
4eb0e65693
tests: extend lvm-on-md
2019-07-11 11:20:06 -05:00
David Teigland
f938545687
cache: warn and prompt for writeback with cachevol
...
The cache repair utility does not yet work with a cachevol
(where metadata and data exist on the same LV.) So, warn
and prompt if writeback is specified with a cachevol.
2019-07-02 11:03:03 -05:00
Marian Csontos
ba9d152aa5
test: Remove now useless clvmd test
2019-06-27 11:14:00 +02:00
Marian Csontos
09f29570f2
test: Fix unbound variable
...
Test `aux kernel_at_least 5 1` fails even for newer kernel
with `$3: unbound variable` when using `set -u`.
2019-06-27 10:41:21 +02:00
David Teigland
9ba45d824a
tests: add exported.sh
...
to test how commands work with exported VGs/PVs.
2019-06-25 15:45:47 -05:00