]> sourceware.org Git - lvm2.git/log
lvm2.git
7 years agodebug: add missing backtrace
Zdenek Kabelac [Sun, 4 Dec 2016 21:29:18 +0000 (22:29 +0100)]
debug: add missing backtrace

7 years agocleanup: simplier code
Zdenek Kabelac [Thu, 1 Dec 2016 13:59:02 +0000 (14:59 +0100)]
cleanup: simplier code

7 years agocleanup: indent and messsages updates
Zdenek Kabelac [Thu, 1 Dec 2016 13:53:35 +0000 (14:53 +0100)]
cleanup: indent and messsages updates

7 years agocleanup: simplify code
Zdenek Kabelac [Mon, 5 Dec 2016 13:30:13 +0000 (14:30 +0100)]
cleanup: simplify code

Drop unneeded assignemnt in structs (var is set by called function).

7 years agodev_manager: use setup_task_run for mknod
Zdenek Kabelac [Fri, 2 Dec 2016 12:46:47 +0000 (13:46 +0100)]
dev_manager: use setup_task_run for mknod

Simplify info run for use only for INFO & STATUS.
Drop handling MKNODES within _info_run() call
and use more advanced _setup_task_run() directly.

This allows to further simplify _info_run().

7 years agodev_manager: extend setup_task
Zdenek Kabelac [Thu, 1 Dec 2016 13:56:32 +0000 (14:56 +0100)]
dev_manager: extend setup_task

Integrate also query for inactive table and
handle dm_task_run() and dm_task_get_info()
(thus switching to setup_task_run)

Add one exception case for DM_DEVICE_TARGET_MSG.

This allows further shortening and simplification of all
other users of this function.

7 years agoactivation: optimize away lv_has_target_type
Zdenek Kabelac [Mon, 5 Dec 2016 14:23:18 +0000 (15:23 +0100)]
activation: optimize away lv_has_target_type

It's actually not needed to call extra lv_has_target_type() to detect
snapshot merge is in progress - decode this right during status
capturing and save even few extra ioctl calls.

7 years agoactivation: lv_info_with_seg_status API change
Zdenek Kabelac [Mon, 5 Dec 2016 13:31:25 +0000 (14:31 +0100)]
activation: lv_info_with_seg_status API change

Drop LV from passed API arg - it's always segment being checked.
Also use_layer is now in full control of lv_info_with_seg_status().
It decides which device needs to be checked to get 'the most info'.

TODO: future version should be able to expose status from

7 years agoactivation: lv_info_with_seg_status unify status selection
Zdenek Kabelac [Mon, 5 Dec 2016 09:20:42 +0000 (10:20 +0100)]
activation: lv_info_with_seg_status unify status selection

Start moving selection of status taken for a LV into a single place.
The logic for showing info & status has been spread over multiple
places and were doing too complex decision going agains each other.

Unify selection of status of origin & cow scanned device.

TODO: in future we want to grab status for LV and layered LV and have
both statuses present for display - i.e. when 'old snapshot'
of thinLV is takes and there is ongoing merge - at some moment
we are not capable to show all needed info.

7 years agocleanup: swap test order
Zdenek Kabelac [Wed, 30 Nov 2016 12:43:43 +0000 (13:43 +0100)]
cleanup: swap test order

Check for lv != lvseg->lv.
Make the logic of following patches look better and easier to read.

7 years agoactivation: improve error handling for status reading
Zdenek Kabelac [Thu, 1 Dec 2016 09:37:03 +0000 (10:37 +0100)]
activation: improve error handling for status reading

When lvm2 wants to see a status, it needs to validate,
segment for status reading is matching whan lvm2 expects in
metadata.

Also ensure status failure will not cause '0' from info reading
when actual info was collected properly.
Failure in 'status' reading is considered to be
a 'log_warn()' event only.

7 years agoactivation: status check switch to warn
Zdenek Kabelac [Fri, 2 Dec 2016 12:57:52 +0000 (13:57 +0100)]
activation: status check switch to warn

When we can't parse status, switch to warning as this is not
considered an errornous case.  LVS is not supposed to return
error status code when  device is not what it's been expected to
be - but it should be WARNING a user there is something unexpected.

7 years agolv: always check status type
Zdenek Kabelac [Thu, 1 Dec 2016 09:43:55 +0000 (10:43 +0100)]
lv: always check status type

Always validate status type has an expected value,
before accessing status struct members.

7 years agostriped: implement compatible target name
Zdenek Kabelac [Thu, 1 Dec 2016 15:09:53 +0000 (16:09 +0100)]
striped: implement compatible target name

Linear is handled by striped target.

7 years agosnapshot: reporting uses statusinfo
Zdenek Kabelac [Thu, 1 Dec 2016 16:58:06 +0000 (17:58 +0100)]
snapshot: reporting uses statusinfo

Convert lvs -o lv_merge_failed,lv_snapshot_invalid to use
lv_info_and_status function.

This makes it equal to attr value showing this info
(as they were different since they were derived from
different data set and different logic as well).

Also saves couple extra ioctl that were needed to obtain this info.

7 years agoreport: order fields by type for field defintions in columns.h
Peter Rajnoha [Thu, 1 Dec 2016 13:39:21 +0000 (14:39 +0100)]
report: order fields by type for field defintions in columns.h

When displaying <reporting_command> -o help, we'd like to have fields
grouped nicely, not starting having groups interleaved as it was before.
The code that displays the help output for fields takes the order as
written in columns.h file - this caused output like:

$ lvs -o help

Logical Volume Fields
---------------------
...field list...

Logical Volume Device Info and Status Combined Fields
-----------------------------------------------------
...field list...

Logical Volume Fields
---------------------
...field list...

Logical Volume Device Status Fields
-----------------------------------
...field list...

Logical Volume Fields
---------------------
...field list...

Instead, let's have it without groups interleaved which may be
a bit confusing, so:

Logical Volume Fields
---------------------
...field list...

Logical Volume Device Status Fields
-----------------------------------
...field list...

Logical Volume Device Info and Status Combined Fields
-----------------------------------------------------
...field list...

..and so on.

7 years agopost-release
Alasdair G Kergon [Wed, 30 Nov 2016 23:21:11 +0000 (23:21 +0000)]
post-release

7 years agopre-release v2_02_168
Alasdair G Kergon [Wed, 30 Nov 2016 23:14:34 +0000 (23:14 +0000)]
pre-release

7 years agoraid: fix sync percent on large RaidLVs
Heinz Mauelshagen [Wed, 30 Nov 2016 23:00:02 +0000 (00:00 +0100)]
raid: fix sync percent on large RaidLVs

Resolves: rhbz1400301

7 years agolvmdbusd: Only allow 0..N for --blackboxsize argument
Tony Asleson [Wed, 30 Nov 2016 22:45:50 +0000 (16:45 -0600)]
lvmdbusd: Only allow 0..N for --blackboxsize argument

7 years agoWHATS_NEW: New argument --blackboxsize
Tony Asleson [Wed, 30 Nov 2016 22:40:49 +0000 (16:40 -0600)]
WHATS_NEW: New argument --blackboxsize

7 years agoWHATS_NEW: Allow a transiently failed RaidLV to be refreshed
Heinz Mauelshagen [Wed, 30 Nov 2016 22:17:21 +0000 (23:17 +0100)]
WHATS_NEW: Allow a transiently failed RaidLV to be refreshed

7 years agolvmdbustest.py: Rename env test variable
Tony Asleson [Wed, 30 Nov 2016 20:58:29 +0000 (14:58 -0600)]
lvmdbustest.py: Rename env test variable

Use LVM_DBUSD_TEST_MODE env variable to customize what we test.
Default is the same where we try to test all combinations of all
modes.  Renamed to make it consistent with the other env variables
that are used in the unit test.

7 years agolvmdbustest.py: Remove redundant import
Tony Asleson [Wed, 30 Nov 2016 20:54:39 +0000 (14:54 -0600)]
lvmdbustest.py: Remove redundant import

7 years agolvmdbustest.py: Remove outdated TODOs
Tony Asleson [Wed, 30 Nov 2016 20:51:20 +0000 (14:51 -0600)]
lvmdbustest.py: Remove outdated TODOs

- We check that all properties match the introspection data.  We
don't verify values for every property as only lvm knows what they
should be.

- We are testing vg.Move

7 years agolvmdbustest.py: Re-enable test_vg_uuid_gen
Tony Asleson [Wed, 30 Nov 2016 20:16:59 +0000 (14:16 -0600)]
lvmdbustest.py: Re-enable test_vg_uuid_gen

This looks to be working now, not sure when it was resolved.

7 years agolvmdbusd: Emit signal on Job completion
Tony Asleson [Wed, 30 Nov 2016 19:39:48 +0000 (13:39 -0600)]
lvmdbusd: Emit signal on Job completion

Added a properties changed signal on the job dbus object so that client
can wait for a signal that the job is complete instead of polling or
blocking on the wait method.

7 years agolvmdbusd: Remove TODO on concurrent access to properties
Tony Asleson [Wed, 30 Nov 2016 19:03:25 +0000 (13:03 -0600)]
lvmdbusd: Remove TODO on concurrent access to properties

As the code now uses a single thread to handle all changes to the
dbus model we no longer need to handle this potential race
condition.

7 years agolvmdbusd: Supress protected member access warning
Tony Asleson [Wed, 30 Nov 2016 18:59:46 +0000 (12:59 -0600)]
lvmdbusd: Supress protected member access warning

We want _run to be protected so that users outside of the class
don't mistakenly use it.  It's for internal use only.

7 years agolvmdbusd: Add --blackboxsize command line argument
Tony Asleson [Wed, 30 Nov 2016 00:01:56 +0000 (18:01 -0600)]
lvmdbusd: Add --blackboxsize command line argument

Allows the user to override the number of commands that get dumped
to the log when we encounter a lvm error.  Also useful during
development when you don't want to see the blackbox output.

7 years agolvmdbusd: Remove unused variable
Tony Asleson [Tue, 29 Nov 2016 23:02:53 +0000 (17:02 -0600)]
lvmdbusd: Remove unused variable

This variable has been un-used for a long time.

7 years agolvchange: allow a transiently failed RaidLV to be refreshed
Heinz Mauelshagen [Wed, 30 Nov 2016 21:56:37 +0000 (22:56 +0100)]
lvchange: allow a transiently failed RaidLV to be refreshed

In case any SubLV of a RaidLV transiently fails, it needs
two "lvchange --refresh RaidLV" runs to get it to fully
operational mode again.  Reason being, that lvm reloads all
targets for the RaidLV tree but doesn't resume the SubLVs
until after the whole tree has been reloaded in the first
refresh run.  Thus the live mapping table of the SubLVs
still point to an "error" mapping and the dm-raid target
can't retrieve any superblock from the MetaLV(s) in processing
the constructor during this preload thus not discovering the
again accessible SubLVs.  In the second run, the SubLV targets
map proper (meta)data, hence the constructor discovers those
fine now.

Solve by resuming the SubLVs of the RaidLV before
preloading the respective top-level RaidLV target.

Resolves: rhbz1399844

7 years agolvmdbusd: Remove debug log_error
Tony Asleson [Tue, 29 Nov 2016 21:02:52 +0000 (15:02 -0600)]
lvmdbusd: Remove debug log_error

7 years agolvmdbusd: WS fix
Tony Asleson [Tue, 29 Nov 2016 21:01:41 +0000 (15:01 -0600)]
lvmdbusd: WS fix

7 years agolvmdbusd: Simplfy reading streams
Tony Asleson [Tue, 29 Nov 2016 18:37:59 +0000 (12:37 -0600)]
lvmdbusd: Simplfy reading streams

Remove redundant code and make code paths the same for all streams.

7 years agolvmdbusd: Make lvm shell read more robust
Tony Asleson [Tue, 29 Nov 2016 17:07:21 +0000 (11:07 -0600)]
lvmdbusd: Make lvm shell read more robust

Make sure JSON is correct before we stop trying to read.

7 years agotests: ensure there is dbus config file
Zdenek Kabelac [Fri, 25 Nov 2016 23:17:40 +0000 (00:17 +0100)]
tests: ensure there is dbus config file

Copy lvmdbusd.profile to lib as installed place.
Use  TESTOLDPWD and avoid add new 'same' variable test_data_dir.

7 years agomakefiles: drop file source and indent
Zdenek Kabelac [Fri, 25 Nov 2016 20:41:43 +0000 (21:41 +0100)]
makefiles: drop file source and indent

7 years agogcc: quiet warning about unused function
Zdenek Kabelac [Fri, 25 Nov 2016 14:02:36 +0000 (15:02 +0100)]
gcc: quiet warning about unused function

Once this function will need to be used, git revert.

7 years agocleanup: indent
Zdenek Kabelac [Fri, 25 Nov 2016 13:21:34 +0000 (14:21 +0100)]
cleanup: indent

7 years agocleanup: add missing WARNING into log_warn
Zdenek Kabelac [Fri, 25 Nov 2016 13:17:56 +0000 (14:17 +0100)]
cleanup: add missing WARNING into log_warn

7 years agocleanup: add some dots and use display_lvname
Zdenek Kabelac [Fri, 25 Nov 2016 13:08:39 +0000 (14:08 +0100)]
cleanup: add some dots and use display_lvname

Just some more VG/LV printing.

7 years agodebug: more stacktrace corrections
Zdenek Kabelac [Fri, 25 Nov 2016 12:46:06 +0000 (13:46 +0100)]
debug: more stacktrace corrections

Continue previous patch dropping some unneeded stack traces
after printed log_error/warn messages.

7 years agoscripts: fix comment about blk-availability init script
Peter Rajnoha [Fri, 25 Nov 2016 10:30:48 +0000 (11:30 +0100)]
scripts: fix comment about blk-availability init script

The original comment got there as copy-paste error and it wasn't edited
properly for blk-availability.

7 years agolvmdbusd: Only read whats buffered
Tony Asleson [Wed, 23 Nov 2016 20:49:23 +0000 (14:49 -0600)]
lvmdbusd: Only read whats buffered

When reading data from stdout & stderr we were reading until the
reading until we got None back which really isn't needed as the
read will return everything that is available.

7 years agodebug: stack tracing corrections
Zdenek Kabelac [Wed, 23 Nov 2016 09:30:52 +0000 (10:30 +0100)]
debug: stack tracing corrections

7 years agocleanup: indent changes
Zdenek Kabelac [Wed, 23 Nov 2016 09:48:33 +0000 (10:48 +0100)]
cleanup: indent changes

7 years agocleanup: defines
Zdenek Kabelac [Wed, 23 Nov 2016 09:54:06 +0000 (10:54 +0100)]
cleanup: defines

7 years agocleanup: use predefined macro for tmp image name
Zdenek Kabelac [Wed, 23 Nov 2016 09:39:59 +0000 (10:39 +0100)]
cleanup: use predefined macro for tmp image name

7 years agocleanup: deactivate has builtin check for active lv
Zdenek Kabelac [Wed, 23 Nov 2016 09:29:42 +0000 (10:29 +0100)]
cleanup: deactivate has builtin check for active lv

7 years agocleanup: add doc for raid status states
Zdenek Kabelac [Wed, 16 Nov 2016 14:29:09 +0000 (15:29 +0100)]
cleanup: add doc for raid status states

Show possible values for raid fields user may get ATM.

7 years agocleanup: single LVM_SYSTEM_DIR string
Zdenek Kabelac [Mon, 21 Nov 2016 13:54:20 +0000 (14:54 +0100)]
cleanup: single LVM_SYSTEM_DIR string

7 years agocleanup: hide gcc warning
Zdenek Kabelac [Wed, 16 Nov 2016 14:13:36 +0000 (15:13 +0100)]
cleanup: hide gcc warning

7 years agocleanup: use lv_update_and_reload
Zdenek Kabelac [Wed, 23 Nov 2016 09:57:36 +0000 (10:57 +0100)]
cleanup: use lv_update_and_reload

Avoid code duplication and use exiting commonly used
lv_update_and_reload() function.

There is still one place left where mirror is doing strange
double suspend call - needs there more thinking what's wrong with
that code.

7 years agocleanup: make this error an internal error
Zdenek Kabelac [Wed, 23 Nov 2016 16:15:10 +0000 (17:15 +0100)]
cleanup: make this error an internal error

We shouldn't get here with wrong type.

7 years agocleanup: use display_lvname and msg cleanup
Zdenek Kabelac [Wed, 16 Nov 2016 14:11:07 +0000 (15:11 +0100)]
cleanup: use display_lvname and msg cleanup

Use display_lvname in tracing messages.
Add some missing 'dots' to messages.

7 years agomirror: preserve MIRRORED status for temporara image
Zdenek Kabelac [Wed, 23 Nov 2016 16:11:26 +0000 (17:11 +0100)]
mirror: preserve MIRRORED status for temporara image

When lvconvert adds a new leg - it's doing it free 'temporary' image
layer - however this temporary 'internal' mirror is also MIRRORED LV.
But the status bit was not properly transfered through layer.

7 years agoraid: lvconvert uses transient check for raid
Zdenek Kabelac [Mon, 21 Nov 2016 13:54:51 +0000 (14:54 +0100)]
raid: lvconvert uses transient check for raid

Also check if the raid status isn't teling us there is something wrong
with any raid image device.

7 years agoraid: implement transient status check
Zdenek Kabelac [Mon, 21 Nov 2016 11:43:18 +0000 (12:43 +0100)]
raid: implement transient status check

Take into acount reported state from 'raid' targets.
When raid leg is marked with 'D' - take it as missing leg.

7 years agoman: remove duplicate paragraph about selection criteria from lvm(8) man page
Peter Rajnoha [Tue, 22 Nov 2016 12:20:52 +0000 (13:20 +0100)]
man: remove duplicate paragraph about selection criteria from lvm(8) man page

The paragraph about selection criteria together with all the related
context is now documented in lvmreport(7) man page completely.

7 years agolvmdbusd: Remove extraneous finally
Tony Asleson [Thu, 17 Nov 2016 19:59:39 +0000 (13:59 -0600)]
lvmdbusd: Remove extraneous finally

The print statement is incorrect.

7 years agolvmdbusd: Fix source documentation
Tony Asleson [Thu, 17 Nov 2016 19:58:17 +0000 (13:58 -0600)]
lvmdbusd: Fix source documentation

7 years agolvmdbusd: cmdhandler.py, fix imports
Tony Asleson [Thu, 17 Nov 2016 19:57:44 +0000 (13:57 -0600)]
lvmdbusd: cmdhandler.py, fix imports

Use the correct py3 syntax for handling imports.  Also use print instead
of log_debug which in this context will produce no output.

7 years agolvmdbusd: Remove debug JSON file
Tony Asleson [Thu, 17 Nov 2016 17:45:11 +0000 (11:45 -0600)]
lvmdbusd: Remove debug JSON file

7 years agolvmdbustest: Reduce dbus object churn
Tony Asleson [Thu, 17 Nov 2016 16:34:07 +0000 (10:34 -0600)]
lvmdbustest: Reduce dbus object churn

Instead of creating a new dbus object each time we get an interface object
we will use the same one.

7 years agolvmdbustest: Move std_err_print to testlib
Tony Asleson [Thu, 17 Nov 2016 16:32:55 +0000 (10:32 -0600)]
lvmdbustest: Move std_err_print to testlib

So we can re-use it in the testlib too.

7 years agolvmdbusd: Place Manager.UseLvmShell request on queue
Tony Asleson [Wed, 16 Nov 2016 23:29:23 +0000 (17:29 -0600)]
lvmdbusd: Place Manager.UseLvmShell request on queue

We need to acquire a lock which can block us which in turn causes
the dbus request handling to block as well.  Place the request on
the work queue instead.

7 years agolvmdbusd: Extra report FD read on no data
Tony Asleson [Wed, 16 Nov 2016 21:57:04 +0000 (15:57 -0600)]
lvmdbusd: Extra report FD read on no data

Our expectation was that when using the lvm shell that when the lvm prompt
was read from stdout, that all other ouput had been written and flushed.
However, this doesn't appear to be the case.  Add extra read passes to
retrieve delayed report data.

7 years agolvmdbusd: Bubble up invalid JSON
Tony Asleson [Wed, 16 Nov 2016 21:45:05 +0000 (15:45 -0600)]
lvmdbusd: Bubble up invalid JSON

If we get invalid JSON, lets bubble that up to the user.

7 years agolvmdbustest.py: Reduce test client introspection calls
Tony Asleson [Wed, 16 Nov 2016 17:39:57 +0000 (11:39 -0600)]
lvmdbustest.py: Reduce test client introspection calls

The default dbus python library mode of operation is to leverage
introspection.  However, this introspection data isn't accessible
for users of the library and they have to specifically retrieve
the introspection data too. This resulted in many introspection
calls being made.  This change eliminates introspection calls if
we are testing multiple concurrent test clients.  If it's a single
client we will leverage a reduced amount of introspection data to
verify the introspection data is correct.  Typically clients don't
leverage introspection data nearly as much as this test client.

7 years agolvmdbusd: Remove un-used import
Tony Asleson [Wed, 16 Nov 2016 16:46:27 +0000 (10:46 -0600)]
lvmdbusd: Remove un-used import

7 years agolvmdbusd: WS corrections
Tony Asleson [Wed, 16 Nov 2016 16:46:09 +0000 (10:46 -0600)]
lvmdbusd: WS corrections

Fix mixed spaces & tabs and other ws issues.

7 years agolvmdbusd: Add cfg.load to pv remove
Tony Asleson [Wed, 16 Nov 2016 16:45:31 +0000 (10:45 -0600)]
lvmdbusd: Add cfg.load to pv remove

The global dbus state does not match lvm with simply removing the pv
dbus object.

7 years agolvmdbusd: _lv_create, simplify return path
Tony Asleson [Wed, 16 Nov 2016 16:44:04 +0000 (10:44 -0600)]
lvmdbusd: _lv_create, simplify return path

7 years agolvmdbustest.py: Support concurrent test runs
Tony Asleson [Fri, 11 Nov 2016 18:34:38 +0000 (12:34 -0600)]
lvmdbustest.py: Support concurrent test runs

The env variable LVM_DBUSD_PV_DEVICE_LIST when present and filled in
with at least 4 physical devices will run concurrently with other
instances running as long as they specify different devices in their
env variable.

When the env variable is not present the test runs as it did before.

7 years agolvmdbusd: Long running operations use own thread
Tony Asleson [Fri, 11 Nov 2016 15:46:12 +0000 (09:46 -0600)]
lvmdbusd: Long running operations use own thread

Anything that ends up using polld will be done in a unique thread
so that we don't hold off other operations from running concurrently.

7 years agolvmdbusd: Use one thread to fetch state updates
Tony Asleson [Thu, 10 Nov 2016 18:19:48 +0000 (12:19 -0600)]
lvmdbusd: Use one thread to fetch state updates

In preparation to have more than one thread issuing commands to lvm
at the same time we need to serialize updates to the dbus state and
retrieving the global lvm state.  To achieve this we have one thread
handling this with a thread safe queue taking and coalescing requests.

7 years agolvmdbus: Make bus name configurable
Tony Asleson [Fri, 4 Nov 2016 18:26:31 +0000 (13:26 -0500)]
lvmdbus: Make bus name configurable

Add env LVM_DBUS_NAME to change what the bus name is.

7 years agolvmdbustest.py: Remove raid4 use
Tony Asleson [Fri, 4 Nov 2016 18:16:24 +0000 (13:16 -0500)]
lvmdbustest.py: Remove raid4 use

Looks like this isn't support across versions.  Need to add functionality
to service to return the supported segment types, so we only use the
supported ones.

7 years agolibdm: separate dm_stats_populate() error cases
Bryn M. Reeves [Thu, 17 Nov 2016 11:39:43 +0000 (11:39 +0000)]
libdm: separate dm_stats_populate() error cases

There are two possible errors in _dm_stats_populate_region():

  * No region struct in dms->regions[region_id]
  * Failure to parse data from @stats_print

These have very different causes: the first occurs where a client
program is populating one region at a time (region_id is a single
region identifier), and has not previously called dm_stats_list()
to dimension the region tables; this is an API usage error.

The second occurs when either we read unparseable data from the
kernel (kernel bug), or where various resource allocations fail.

Separate these two cases out and log separate messages for each
(allocation failures in the path already have their own distinct
message), since the "failed to parse.." message in the un-listed
handle case is confusing and misleading.

7 years agoraid: Remove fixed FIXME
Alasdair G Kergon [Tue, 15 Nov 2016 20:45:55 +0000 (20:45 +0000)]
raid: Remove fixed FIXME

7 years agodbus: also recognize error state for missing service that comes from original D-Bus
Peter Rajnoha [Tue, 15 Nov 2016 09:09:11 +0000 (10:09 +0100)]
dbus: also recognize error state for missing service that comes from original D-Bus

7 years agodbus: only log msg as debug if lvm2-lvmdbusd unit missing for D-Bus notification
Peter Rajnoha [Mon, 14 Nov 2016 13:46:44 +0000 (14:46 +0100)]
dbus: only log msg as debug if lvm2-lvmdbusd unit missing for D-Bus notification

Do not emit warning message but only log debug message if
lvm2-lvmdbusd.service unit is missing and at the same time
we have global/notify_dbus=1 (which is used by default if we
configured sources with "--enable-notify-dbus"). We don't want
hard dependency between LVM2 and lvmdbusd so it's enough to log
only debug message in this case.

7 years agotests: fix checking for pvmove LV
Zdenek Kabelac [Mon, 14 Nov 2016 11:55:43 +0000 (12:55 +0100)]
tests: fix checking for pvmove LV

Use consitently egrep.

TODO: make probably aux func

7 years agocleanup: debug trace and indent change
Zdenek Kabelac [Tue, 8 Nov 2016 15:20:51 +0000 (16:20 +0100)]
cleanup: debug trace and indent change

7 years agocleanup: avoid using double __ in extracted image name
Zdenek Kabelac [Tue, 8 Nov 2016 15:21:25 +0000 (16:21 +0100)]
cleanup: avoid using double __ in extracted image name

7 years agocleanup: add dots to debug messages
Zdenek Kabelac [Fri, 11 Nov 2016 15:38:04 +0000 (16:38 +0100)]
cleanup: add dots to debug messages

7 years agotests: do not set zero interval in aux lvm.conf
Zdenek Kabelac [Fri, 11 Nov 2016 14:57:00 +0000 (15:57 +0100)]
tests: do not set zero interval in aux lvm.conf

0 interval leads as of now to a busy loop with lvmetad and command.

Avoid testing this patological case.

TODO: Code should possibly translate zero interval into some small
sleep. With lvmpolld it's already 1/10s

7 years agotests: avoid using polling
Zdenek Kabelac [Fri, 11 Nov 2016 14:56:11 +0000 (15:56 +0100)]
tests: avoid using polling

7 years agotests: update make targets
Zdenek Kabelac [Mon, 17 Oct 2016 09:13:43 +0000 (11:13 +0200)]
tests: update make targets

Add  new targets:

make check_lvmpolld
make check_cluster_lvmpolld
make check_lvmetad_lvmpolld
make check_all_lvmpolld

So check_lvmetad runs only base lvmetad test - to much
logic of remaining targets.

Previous behavior is available via  check_all_lvmpolld.

7 years agoconf: support zero for missing_stripe_filler
Zdenek Kabelac [Tue, 18 Oct 2016 10:58:22 +0000 (12:58 +0200)]
conf: support zero for missing_stripe_filler

Make it easier to replace missing segments with 'zero' returning
target - otherwise user would have to create some extra target
to provide zeros as /dev/zero can't be used (not a block device).

Also break code loop when segment is found and make it an INTERNAL_ERROR
where it's missing.

7 years agocleanup: skip checking for just assigned string
Zdenek Kabelac [Tue, 18 Oct 2016 09:18:02 +0000 (11:18 +0200)]
cleanup: skip checking for just assigned string

When 'stripe_filler' has been just set to 'error',
do not check it again for not being 'error'.

7 years agolvconvert: repair accepts interval and background
Zdenek Kabelac [Mon, 17 Oct 2016 09:16:16 +0000 (11:16 +0200)]
lvconvert: repair accepts interval and background

For mirror and raid we expose --interval and --background on
command line (instead of using just always using compiled-in defaults).

7 years agolvconvert: Introduce enum to separate cases.
Alasdair G Kergon [Fri, 11 Nov 2016 00:27:01 +0000 (00:27 +0000)]
lvconvert: Introduce enum to separate cases.

Start to separate out the different things that lvconvert does by using
an enum to identify 12 distinct cases.

7 years agodmsetup: [v2] return 0 for [--]{version,help}
Heinz Mauelshagen [Thu, 10 Nov 2016 17:09:37 +0000 (18:09 +0100)]
dmsetup: [v2] return 0 for [--]{version,help}

Leverage 0b1c79642061 to cope with "dmsetup SubCommand --{help,version}"
and bail out directly when _report_init() fails.

Related: rhbz1393692

7 years agodmsetup: return 0 for [--]{version,help}
Heinz Mauelshagen [Thu, 10 Nov 2016 16:03:04 +0000 (17:03 +0100)]
dmsetup: return 0 for [--]{version,help}

dmsetup regressed returning 1 when properly processing
version or help subcommands.

Resolves: rhbz1393692

7 years agotests: for repair we need neewer version
Zdenek Kabelac [Tue, 8 Nov 2016 10:15:25 +0000 (11:15 +0100)]
tests: for repair we need neewer version

Older cache targets were not able to report write failures.

7 years agotests: test raid0_meta type
Zdenek Kabelac [Mon, 7 Nov 2016 10:05:50 +0000 (11:05 +0100)]
tests: test raid0_meta type

Enable testing of raid0_meta type.
Also slow down devices a bit more.

7 years agoraid: faster rmeta clearing
Zdenek Kabelac [Tue, 8 Nov 2016 10:54:28 +0000 (11:54 +0100)]
raid: faster rmeta clearing

Instead of clearing multiple rmeta device with sequential activation
process and waiting for udev for every _rmeta device separately,
activate all _rmeta devices first and then clear them and deactivate
afterwards.

Also update some tracing messages.

When anyhing goes wrong during clearing process, always try to
deactivate as much _rmeta devices as possible before fail.

7 years agopost-release
Alasdair G Kergon [Sat, 5 Nov 2016 01:14:06 +0000 (01:14 +0000)]
post-release

This page took 0.075547 seconds and 5 git commands to generate.