summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* tests: integrity-caching: ensure raid redundancyHEADmastermainDavid Teigland2023-05-171-7/+16
| | | | | | | The recent fix 05c2b10c5d0a9 ensures that raid LV images are not using the same devices. This was happening in the lvextend commands used by this test, so fix the test to use more devices to ensue redundancy.
* tests: integrity: snapshots now work on raid+integrityDavid Teigland2023-05-171-8/+0
|
* raidintegrity: allow snapshotsDavid Teigland2023-05-111-0/+441
|
* tests: more updates for 300M xfsZdenek Kabelac2023-05-101-8/+9
| | | | | Fix some sizing for larger xfs testing. Also fix resize of reiserfs which requires resize_fsadm.
* tests: skip this testing without newer blkidZdenek Kabelac2023-05-101-0/+5
| | | | Testing xfs --fs functionality needs new blkid.
* tests: needs to be exported for tracingZdenek Kabelac2023-05-061-1/+1
|
* tests: adapt for xfs 300M min sizeZdenek Kabelac2023-05-062-39/+34
| | | | Some test still were missed to be converted for XFS 300M min size.
* tests: different check for mounted volumeZdenek Kabelac2023-05-061-1/+1
| | | | | It appears newer mount allows repeated mounting ?? Anyway - do the check with grep.
* tests: check for lvmdbusd running in the systemZdenek Kabelac2023-05-061-0/+5
| | | | | | Check for running (possibly leftover) lvmdbusd running in the system - as this daemon may interfere with this test as in this case both be operating on same 'live' data in /run/lvm.
* tests: update lvextend testsZdenek Kabelac2023-05-062-895/+560
| | | | | | | | Make test faster by agregating sets of operation to work on a single created filesystem yet checking all the variants of extension and reduction. Split 'xfs' part into separate test and convert it for use of the minimal size 300M nowdays required by mkfs.xfs.
* aux: retry brd removalZdenek Kabelac2023-05-061-9/+14
| | | | | | Try to remove brd twice if there is some collision with udevd. Instanciate only 1 ramdisk. Use just 'eval' for '--nameprefixes' results.
* aux: wipefs_a takes list of devicesZdenek Kabelac2023-05-061-24/+24
| | | | | | | Enhance function to take list of device so set of devices can be wiped with a single call: aux wipefs_a "$dev1" "$dev2"
* tests: adapt waiting for pvmove startZdenek Kabelac2023-04-253-9/+4
| | | | | | Previous commit cause the pvmove could actually be started in unexpected order - so make sure, we are not starting new pvmove in same VG until the previous one is started.
* 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
|