| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Assuming it should test same number as other functions.
|
|
|
|
| |
Restore old harness access to /dev/kmsg.
|
|
|
|
| |
See doc/lvmpolld_overview.txt
|
|
|
|
| |
Filter $PREFIX rather then just LVMTEST.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Use 64bit arithmentic for PV size calculation (Coverity).
Also remove sector shift for compared PV size, since all
values are already held in sectors.
This fixes validatio of PV size when restoring PV
from vg metadata backup file.
|
|
|
|
|
|
|
|
|
|
| |
Improve the python unit test case to cover all of the properties of a LV and
the properties of a LV segment.
In addition we also add a 'tag' to the lv so that we can retrieve it
using the 'lv_tags' property to ensure that this works as expected.
Signed-off-by: Tony Asleson <tasleson@redhat.com>
|
|
|
|
| |
overlooked pvmove-restart test during cleanup
|
|
|
|
| |
Manage mdadm devices on older distros is a challange.
|
|
|
|
|
| |
Instead of checking /proc/mounts check for open_count of snap device.
Parallel umount has race, so check for open_count.
|
|
|
|
|
| |
Use first test also for checking the support is there -
avoid one extra unnecessary scsi_debug reload.
|
|
|
|
|
|
| |
Instead of checking just for pid file - rather check
for process - since there could be slight race, the
pid file is gone, but process still exists.
|
|
|
|
| |
Quit test early if passed LVM_TEST_DEVDIR dir does not exists.
|
|
|
|
| |
Continue with test as soon as device appear (avoid 2s delay)
|
| |
|
|
|
|
| |
Check for socket presence (hardcoded for now)
|
|
|
|
|
|
|
| |
Since this value magically worked for pvmove-abort*
use it here as well.
Also prepate_lvmetad has better kill&reload mechanism.
|
|
|
|
|
| |
Fill snaphot with odirect so we know data hits disk
before we test how full the snapshot is.
|
|
|
|
| |
More take down more targets and use time-limited code.
|
| |
|
|
|
|
| |
Stay with -g and and ignore failure.
|
|
|
|
| |
minor updates
|
|
|
|
|
| |
Seems we captured problems with debug.log overwrite,
so avoid quite expensive usage of fuser tool with each lvm command.
|
| |
|
|
|
|
|
|
|
|
|
| |
Introduce LVM_TEST_LVMETAD_DEBUG_OPTS to allow to override
default debug opts for lvmetad.
However could be still overloaded on command line:
make check_lvmetad LVM_TEST_LVMETAD_DEBUG_OPTS="-l all"...
|
|
|
|
|
|
| |
Let's see what will break with lower version 1.1.
Also avoid repeated check of target version.
|
|
|
|
|
|
|
| |
Better name for aux function.
First use normal -TERM, and only after a while use -KILL
(leaving some time to correctly finish)
Print INFO about killed processes.
|
|
|
|
|
| |
If the test in the middle is restarting lvmetad
avoid conf regenerating.
|
|
|
|
| |
Hide error about missing declare -A support.
|
|
|
|
| |
Let's see if this help with some races...
|
|
|
|
|
| |
Hide func processing and reuse existing
version_at_least().
|
|
|
|
|
|
|
| |
Reduce mem-requirements on low memory boxes,
activate less volumes if machine is below 0.5G.
Also print mem size at test header.
|
|
|
|
|
|
|
|
|
| |
New lvmconf function is using bash associative arrays - however
older systems like RHEL5 doesn't provide this feature. In this case
stay with older variant.
Restore support for use case like this:
aux lvmconf 'tags/@foo {}'
|
|
|
|
|
| |
If test has not yet initilized any device,
make teardown a bit faster.
|
|
|
|
|
| |
Sqeeze about 0.1s out of every created conf and use internal
bash associative arrays instead of lot of command forking
|
|
|
|
| |
As provided by rhbz: 1136366
|
|
|
|
|
| |
also simplify and make less prone to an error checks
for running bg processes inside a pvmove-resume tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
some tests left dangling bg processes originating in
lvm2 commands being able to spawn any bg polling process
(lvchange, vgchange, pvmove, lvconvert...)
Initial fn 'add_to_kill_list' should collect processes with
specific parameters (proc's command line and parent processes ID).
After testing finishes the fn kill_listed_processes should remove these
listed by 'add_to_kill_list'.
Unfortunately it proved to be prone to an error especially in scenarios
where cmd line of initiating command contained characters required to
be espaced before passing to shell script to make it work correctly.
(Or if cmd spawned more than one bg process with same cmd line. i.e.:
vgchange or lvchange).
The new implementation is much simpler. It uses env. variable (LVM_TEST_TAG)
for marking a process desired to be killed later or during test env. teardown.
(i.e.: LVM_TEST_TAG=kill_me_$PREFIX to kill only processes related to
current test environment)
|
| |
|
|
|
|
|
| |
It appear that older wipefs doesn't wipe partition table.
So ensure there is no partition on LVM_TEST_BACKING_DEVICE.
|
|
|
|
| |
Tell what's reason of aux fail here.
|
|
|
|
| |
Remove 'debug leftover' from test.
|
|
|
|
| |
Simplify tests and use aux mdadm helpers.
|
|
|
|
| |
Implement aux helper fce for mdadm.
|
| |
|
|
|
|
| |
Allow to access more files in device sysfs subtree.
|
| |
|
|
|
|
|
|
| |
When test is executed on real device - lets try a more complete
cleanup - discard whole device first and try to wipe any
headers it might be left from previous test.
|
|
|
|
|
|
|
| |
Zero raid signatures when raid is stopped - so signatures
are not requiring wipe when pvcreate follows.
Handle real /dev
|
| |
|