1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/daemons
Tony Asleson d88998f516 lvmdbusd: Correct get_object_path_by_uuid_lvm_id
When checking to see if the PV is missing we incorrectly checked that the
path_create was equal to PV creation.  However, there are cases where we
are doing a lookup where the path_create == None.  In this case, we would
fail to set lvm_id == None which caused a problem as we had more than 1
PV that was missing.  When this occurred, the second lookup matched the
first missing PV that was added to the object manager.  This resulted in
the following:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/lvmdbusd/utils.py", line 667, in _run
    self.rc = self.f(*self.args)
  File "/usr/lib/python3.9/site-packages/lvmdbusd/fetch.py", line 25, in _main_thread_load
    (changes, remove) = load_pvs(
  File "/usr/lib/python3.9/site-packages/lvmdbusd/pv.py", line 46, in load_pvs
    return common(
  File "/usr/lib/python3.9/site-packages/lvmdbusd/loader.py", line 55, in common
    del existing_paths[dbus_object.dbus_object_path()]

Because we expect to find the object in existing_paths if we found it in
the lookup.

resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2085078
2022-09-20 16:36:53 -05:00
..
cmirrord gcc: increate buffer sizes 2022-01-26 15:09:58 +01:00
dmeventd gcc: match types 2021-09-22 17:18:50 +02:00
lvmdbusd lvmdbusd: Correct get_object_path_by_uuid_lvm_id 2022-09-20 16:36:53 -05:00
lvmlockd lvmlockd: return error from vgcreate init_vg_sanlock 2022-04-08 11:34:04 -05:00
lvmpolld cov: add some initializers 2021-09-13 12:34:41 +02:00
Makefile.in build: Remove lvmetad leftovers 2018-07-24 15:02:32 +02:00