summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* tests: utils now print also df_hZdenek Kabelac2023-04-251-4/+8
| | | | | | Add info about space usage on devices after the test. Add some more skipped dirs.
* tests: some aux correctionsZdenek Kabelac2023-04-251-6/+7
| | | | | | | Keep backups within test_dir instead of dev_dir (so it doesn't leak large files there if the tests are run over real /dev dir). Move restoring of dm_mirror throttling before test_dir is removed.
* tests: fix pattern for raid4Zdenek Kabelac2023-04-253-3/+3
| | | | | Since the strip in raid4 might be XOR - we might eventually end with 2 blocks of 'B' on 2 disks - so will rest of stripe with 'b'.
* tests: use 300M lv size for xfsZdenek Kabelac2023-04-251-1/+1
|
* tests: try to retry remove of scsi_debugZdenek Kabelac2023-04-251-1/+6
| | | | | | Not quite sure if this helps anything, some of testing machines can't reliably remove scsi_debug, reporting they are in use - but it's not easily reproducible...
* tests: handle multiple devs with wait_pvmove_lv_readyZdenek Kabelac2023-04-253-31/+27
| | | | | | | | | aux wait_pvmove_lv_ready() now handles multiple pvmove LVs at one go - which allows a bit fast checking - although at some point we may need to switch to use delayed devs since mirror throttling seems to be no longer working well, as CPU are getting so fast, that most of data are already pvmoved before throttling has any chance to do something...
* tests: skip some unneeded testZdenek Kabelac2023-04-2517-4/+25
| | | | Skip irelevant tests for polld & lockd pass.
* aux: use unused brd device for testingZdenek Kabelac2023-04-251-0/+3
| | | | | | | | | | | When 'brd' device can be removed (is unused AKA not opened), remove such device and use again for testing. Let's assume user has no unused brd device left in the system. When the 'tests' sometimes fail to cleanup devices, with this change futher cleanup from some next test may evenually release brd device and make it available for testing.
* aux: more efficient lvmlock shutdownZdenek Kabelac2023-04-251-6/+2
|
* tests: enforce 4K block for integrity fsZdenek Kabelac2023-04-232-4/+4
| | | | | | 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.
* aux: loop doesn't support zeroing discardZdenek Kabelac2023-04-231-0/+1
| | | | | To avoid logging unsupported WRITE_ZEROES with loop, disable usage for this backend device.
* tests: hide some more file in error traceZdenek Kabelac2023-04-221-1/+2
| | | | Hide unneeded dev nodes.
* makefiles: forgotten to install some test configZdenek Kabelac2023-04-221-1/+1
| | | | rpm testing missed config files.
* test: use aux wait_recalcZdenek Kabelac2023-04-221-46/+15
| | | | Use aux function.
* test: convert to use ext4Zdenek Kabelac2023-04-222-54/+51
| | | | Modify test to check same properties with less demanding ext4.
* aux: don't use to new dd optionsZdenek Kabelac2023-04-211-2/+2
| | | | | Actually oseek comes only with rawhide's version, just use the standard option name.
* tests: add data syncZdenek Kabelac2023-04-211-0/+2
|
* aux: add wait_recalcZdenek Kabelac2023-04-218-462/+268
| | | | Share function across tests.
* tests: convert to use ext4Zdenek Kabelac2023-04-213-61/+35
| | | | | | | | | | | 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).
* tests: use aux clear_devZdenek Kabelac2023-04-216-36/+11
| | | | Use wrapper over 'blkdiscard -z'
* aux: add corrupt_devZdenek Kabelac2023-04-211-0/+19
| | | | | | | 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.
* aux: add clear_devZdenek Kabelac2023-04-211-0/+36
| | | | | Function that will use 'blkdiscard -z' and fallbacks to 'dd' when such option is not available.
* lvmdbusd: Add a flag to activate LVs in shared mode to Lv.ActivateVojtech Trefny2023-04-201-1/+1
|
* cache: fix snapshot of cache with cachevolDavid Teigland2023-04-101-0/+162
| | | | | Creating a snapshot of a cache LV with a cachevol would fail because cache_check was not being skipped.
* tests: use less demanding ext4Zdenek Kabelac2023-04-061-2/+2
|
* tests: lower demand for disk resourcesZdenek Kabelac2023-04-064-448/+97
| | | | | | | | 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.
* raidintegrity: allow writecache and cacheDavid Teigland2023-04-051-0/+561
| | | | Allow writecache|cache over raid+integrity LV.
* tests: integrity fixesDavid Teigland2023-04-051-19/+37
| | | | | wait_recalc was mistakenly being called on raid without integrity wait_recalc loop was exiting without error
* tests: nomda-restoremissingDavid Teigland2023-03-201-1/+12
| | | | | | 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.
* lvmdbustest: Correct env. logicTony Asleson2023-03-141-2/+2
| | | | Signed-off-by: Tony Asleson <tasleson@redhat.com>
* lvmdbustest: Add notes on error injection testingTony Asleson2023-03-101-0/+6
| | | | | Not doing this by default for automated build testing as it generates a lot of output and slows things down by another ~10%.
* lvmdbustest: Add env. variable to skip signal testingTony Asleson2023-03-101-0/+3
| | | | | This is currently need if we are collecting code coverage data as we don't handle this unit test correctly.
* lvmdbustest: Check for needed env. variablesTony Asleson2023-03-101-2/+6
|
* lvmdbustest: Don't use hard coded /tmp for error inject logTony Asleson2023-03-101-1/+1
|
* lvmdbustest: Shutdown cleanly with "exit"Tony Asleson2023-03-101-5/+20
| | | | | Make the error injection wrapper handle the exit case, so that we can clean up gracefully when instructed to do so.
* lvmdbustest: Only inject 1 missing key errorTony Asleson2023-03-101-3/+7
| | | | | | 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.
* lvmdbustest: Correctly set up env. for error injectionTony Asleson2023-03-101-0/+2
|
* lvmdbustest: open log file with "a"Tony Asleson2023-03-101-1/+1
| | | | So we retain the log across fork & exec and lvm shell testing.
* tests: update missing-pvDavid Teigland2023-03-081-34/+72
| | | | add more checks and expand comments explaining behavior
* tests: vg-raid-takeoverDavid Teigland2023-03-084-0/+707
| | | | | | 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.
* vgchange: allow changing system ID with majority of PVsDavid Teigland2023-03-081-1/+68
| | | | | | 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.
* lvmdbustest: Test duplicate VG renameTony Asleson2023-03-031-0/+43
|
* lvmdbustest: Add more info on assertsTony Asleson2023-03-021-7/+9
|
* lvmdbustest: Don't hard code to /tmpTony Asleson2023-03-011-1/+1
| | | | During lvm testing they use an alternative tmp directory.
* lvmdbustest: Add more output for test_log_file_optionTony Asleson2023-03-011-1/+3
|
* lvmdbustest.py: Increase udev timeoutTony Asleson2023-03-011-2/+3
|
* lvmdbustest.py: Remove use of root_dir in globTony Asleson2023-02-271-3/+3
| | | | This feature has only been in python since 10/2021.
* lvresize: fix check for mounted and renamed LV to handle spacesDavid Teigland2023-02-231-0/+14
| | | | | | | | | | 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.
* aux: lvmdbus checks for JSONDecodeErrorZdenek Kabelac2023-02-231-0/+1
| | | | Skip lvmdbus testing with too old python.
* tests: add missing quotesZdenek Kabelac2023-02-231-34/+40
| | | | | | Add quotes around paths and also add fixme for checking system is actually usable for a test with all running services.