David Teigland
ba898b9ab6
tests: fix check for lvmlockd test
2015-08-21 17:00:21 -05:00
David Teigland
d827dd8b05
tests: add test for lvmlockd lock_args
2015-08-21 15:09:38 -05:00
David Teigland
1f27c9f6a4
tests: create/remove improvements for lvmlockd testing
2015-08-21 15:09:38 -05:00
David Teigland
d310e1f907
test: allow tests with lvmlockd
2015-08-21 15:09:38 -05:00
Zdenek Kabelac
1c811bfcd9
tests: check cachepolicy with lvconvert
2015-08-21 15:35:45 +02:00
David Teigland
c09dad71fb
tests: fix lockd options in sanlock-prepare
2015-08-18 15:06:49 -05:00
Zdenek Kabelac
77357081c8
tests: update thin test
...
Since we now let pass activation of thin-pool 'off-by-one' for
plain 'vgchange -ay' update the test to use higher TID.
2015-08-17 17:07:09 +02:00
Zdenek Kabelac
a606966029
tests: Revert update for new thin pool messaging
...
This reverts commit 3dbb9a57ca
.
Original code is back as the code restored previous TID handling.
2015-08-17 11:25:03 +02:00
Zdenek Kabelac
c2d814e78d
tests: keep testing mq policy
...
Tests were written for 'mq' policy, so disable smq.
2015-08-12 14:33:16 +02:00
Alasdair G Kergon
c7fc06a262
test: Ignore known concurrent VG clvmd failure.
...
Don't abort test when clvmd processes two VGs concurrently.
CLVMD: ioctl/libdm-iface.c:1940 Internal error: Performing unsafe table load while 3 device(s) are known to be suspended: (253:19)
2015-07-17 12:56:52 +01:00
Zdenek Kabelac
4a33d57143
thin: fix warning for overprovisioning
...
When lvm.conf is properly configure for auto resize of overprovisioned
thin-pool volume, avoid showing any warning (2.02.124).
2015-07-15 13:10:21 +02:00
Zdenek Kabelac
bfd0689d64
tests: use old snapshot for huge volumes
...
Avoid stacking thins over thins.
2015-07-07 09:57:32 +02:00
Jonathan Brassow
4daea88516
clean-up: typos s/bellow/below/
2015-07-06 10:15:11 -05:00
Zdenek Kabelac
3dbb9a57ca
tests: update for new thin pool messaging
2015-07-03 16:13:15 +02:00
Zdenek Kabelac
622064f00f
thin: check for overprovisioning
2015-07-03 16:13:14 +02:00
David Teigland
fe70b03de2
Add lvmlockd
2015-07-02 15:42:26 -05:00
Peter Rajnoha
eaa0d927a4
tests: add test for 454782f
(select with synonyms for string field types)
2015-07-02 11:46:58 +02:00
Zdenek Kabelac
02767c5eb1
tests: tests needs pre 1.13 thin-pool extorg
...
This test is testing older style, so disable feature when present.
2015-06-26 22:16:01 +02:00
Zdenek Kabelac
03c4fee5a7
tests: deactivate before remove
...
Testing if this avoids udev race with removal of snapshot on some
test machines.
See: https://bugzilla.redhat.com/show_bug.cgi?id=1217819
2015-06-26 22:11:46 +02:00
Zdenek Kabelac
44c7bc0262
tests: workaround udev problem
...
If udev has not removed 'dir' entry - just issue TEST WARNING, clear
dir, but do not fail whole rest of test.
2015-06-24 15:19:53 +02:00
Zdenek Kabelac
4c6b3f5ec3
tests: use vgscan after enable_dev
...
Since our test environment runs also in non-real-udev world,
it's using /etc/.cache file with scanned files.
So in this case it is mandatory the user runs 'vgscan'
after a device reappears in the system.
This 'first' lvm2 command then fixes metadata (just like vgs did).
2015-06-23 13:39:57 +02:00
Zdenek Kabelac
7ee3ccd826
tests: newer version needed for ext-orig
2015-06-23 11:56:42 +02:00
Zdenek Kabelac
b45e9183bc
tests: external origin updates
...
Update test for recent updates to support unalligned sizes
and extension of reduced volume.
2015-06-19 16:33:29 +02:00
Zdenek Kabelac
a3e0d830bd
thin: support unaligned size of external origin and thin pool
...
With thin-pool kernel target module 1.13 it's now support usage of
external origin with sizes which are not 'alligned' with chunk size
of thin-pool.
Enable lvm2 support for this and also fix reporting of data_percent
usage for case sizes are not alligned.
2015-06-18 18:50:36 +02:00
Petr Rockai
9c0049b1ce
test: Ensure that outdated PVs are wiped just once.
2015-06-10 16:27:59 +02:00
Ondrej Kozina
da20e0c507
tests: add test for pvscan --cache --background
...
regression test for a segfault in pvscan --cache --background
bug fixed by commit:
f8bf641095
2015-05-25 10:48:45 +02:00
David Teigland
e27182249a
tests: add test for duplicate pvs
2015-05-19 11:02:53 -05:00
Zdenek Kabelac
0cb9df3cec
tests: fix calcucaltion
...
Code works properly.
2015-05-18 12:45:43 +02:00
Zdenek Kabelac
caaca15854
tests: thin_restore not needed
...
Few more test which could live without thin_restore.
2015-05-18 12:45:42 +02:00
Zdenek Kabelac
76cc477fba
tests: no warn if test does not need thin_repair
...
Set LVM_TEST_THIN_REPAIR_CMD to /bin/false for test which
doesn't need it.
This way - even if on the system there is no such tool present,
test will not result with warning about missing tool.
Also remove from Makefile settings of TEST vars which are set in
through /lib/paths - this also allows to override them in test.
2015-05-17 20:24:36 +02:00
Zdenek Kabelac
a42c1c5728
tests: respect @CONFDIR@/machine-id
...
Obtain location of machine-id.
NOTE: lvmconfig cannot dump 'life' value - should be fixed.
2015-05-14 10:52:55 +02:00
Zdenek Kabelac
57a16abe2c
tests: do not use |&
...
Bash 3.2 doesn't understand this syntax (i.e. RHEL5).
And it's even better - reports syntax error and return success.
2015-05-14 10:52:55 +02:00
Ondrej Kozina
2ec51e6185
tests: remove forgotten -vvvv option
2015-05-12 17:16:54 +02:00
Zdenek Kabelac
e3ccf98023
tests: missed conversion
...
Assuming it should test same number as other functions.
2015-05-09 09:17:26 +02:00
Ondrej Kozina
e587b0677b
lvmpolld: Add standalone polldaemon.
...
See doc/lvmpolld_overview.txt
2015-05-09 00:59:18 +01:00
Zdenek Kabelac
1d832aef09
tests: missing vg
2015-05-08 21:00:10 +02:00
Zdenek Kabelac
05934d2538
format_text: properly validate PV size for restore
...
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.
2015-05-08 15:12:35 +02:00
Ondrej Kozina
5bbf083cd1
tests: do not restart lvmetad when not necessary
...
overlooked pvmove-restart test during cleanup
2015-05-06 15:20:11 +02:00
Zdenek Kabelac
7a5a4f952e
tests: play better with mdadm
...
Manage mdadm devices on older distros is a challange.
2015-05-04 13:11:41 +02:00
Zdenek Kabelac
2d10a6f6ae
tests: check for open_count
...
Instead of checking /proc/mounts check for open_count of snap device.
Parallel umount has race, so check for open_count.
2015-05-04 10:18:44 +02:00
Zdenek Kabelac
7a588bce7b
tests: drop extra scsi init
...
Use first test also for checking the support is there -
avoid one extra unnecessary scsi_debug reload.
2015-05-04 10:17:48 +02:00
Zdenek Kabelac
c90ee0414d
tests: check for clvmd process entry
...
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.
2015-05-04 10:16:33 +02:00
Zdenek Kabelac
75aa3e951f
tests: dd needs to fail in this case
2015-05-03 01:06:20 +02:00
Zdenek Kabelac
224e30a4b1
tests: more waits on restart
...
Check for socket presence (hardcoded for now)
2015-05-03 00:43:15 +02:00
Zdenek Kabelac
31f1375d23
tests: use 800ms write delay
...
Since this value magically worked for pvmove-abort*
use it here as well.
Also prepate_lvmetad has better kill&reload mechanism.
2015-05-03 00:43:15 +02:00
Zdenek Kabelac
4f6660db7d
tests: use odirect
...
Fill snaphot with odirect so we know data hits disk
before we test how full the snapshot is.
2015-05-03 00:43:15 +02:00
Zdenek Kabelac
3542fce0fb
tests: more advance cleanup of running pvmove
...
More take down more targets and use time-limited code.
2015-05-01 22:49:38 +02:00
Zdenek Kabelac
79844b9066
tests: minor simplifications
...
minor updates
2015-05-01 15:07:59 +02:00
Zdenek Kabelac
a3473e60db
tests: no lvmetad reload for debugless output
...
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"...
2015-05-01 15:07:58 +02:00
Zdenek Kabelac
16e8006eb0
tests: rename kill_tagged_processes
...
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.
2015-05-01 15:07:58 +02:00