David Teigland
b400353c71
tests hints: update check for io count
...
Running a reporting command on a VG now includes one
additional read to check the mda_header for any change
to the vg between scan and lock.
2019-11-26 16:52:28 -06:00
David Teigland
bbd8badaef
tests: update to md dev name
...
Restore WAIT_MD_DEV in teardown.
NOTE: The name of MD device may have changed.
(cherry picked from commit c2ff8876f9
)
2019-11-26 10:34:51 +01:00
Marian Csontos
b690258518
tests: Find md name using lsblk
...
After stopping MD device and rescanning the leg, it is created with
different name.
2019-11-26 09:13:17 +01:00
Marian Csontos
4757ce4c2a
Partial revert "tests: update to md dev name"
...
This partially reverts commit c2ff8876f9
.
Not all MD devices are stopped. Something is missing there...
2019-11-25 09:23:02 +01:00
Marian Csontos
1e669ab315
test: Fix handling leftovers from previous tests
...
teardown fails current PREFIX is prefix of previously failed test with
leftovers in dmtable.
2019-11-20 15:27:03 +01:00
Zdenek Kabelac
f88f7c0fdc
tests: add more tracing info
2019-11-15 12:37:44 +01:00
Zdenek Kabelac
496c368528
tests: reduce amount of written date
...
Since we reduced created LV to 4M - dd also just 4M.
2019-11-15 12:37:44 +01:00
Zdenek Kabelac
91df257b53
tests: enusure lib is initilized
2019-11-14 18:06:42 +01:00
Zdenek Kabelac
38617213f0
tests: add test of resize of different segtypes
2019-11-11 22:44:25 +01:00
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