Bug 1967171 - lvmdbusd is by default started without UDev support
Summary: lvmdbusd is by default started without UDev support
Keywords:
Status: POST
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: LVM Team
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-02 14:33 UTC by Vojtech Trefny
Modified: 2024-04-27 05:52 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:
pm-rhel: lvm-technical-solution?
pm-rhel: lvm-test-coverage?


Attachments (Terms of Use)

Description Vojtech Trefny 2021-06-02 14:33:12 UTC
Description of problem:

lvm2-lvmdbusd.service starts lvmdbusd without "--udev" which means it's not watching for UDev events to detect actions performed with third party tools like wipefs. This leads to inconsistent internal state of lvmdbusd when removing LVM PV using wipefs:

Steps to reproduce:

1. wipe the LVM2_member signature from an existing device:
$ wipefs -a /dev/sde5
/dev/sde5: 8 bytes were erased at offset 0x00000218 (LVM2_member): 4c 56 4d 32 20 30 30 31

2. run pvcreate using the DBus API
# busctl call com.redhat.lvmdbus1 /com/redhat/lvmdbus1/Manager com.redhat.lvmdbus1.Manager PvCreate "sia{sv}" /dev/sde5 1 0
Call failed: ('com.redhat.lvmdbus1.Manager', 'PV /dev/sde5 Already exists!')

Expected results:

lvmdbusd should be able to detect the change by listening to the UDev events

Additional info:

The lvmdbusd udevwatcher is broken in latest release because of https://bugzilla.redhat.com/show_bug.cgi?id=1967165

Comment 1 Tony Asleson 2022-10-20 20:45:13 UTC
Correction posted upstream: https://sourceware.org/git/?p=lvm2.git;a=commit;h=8a1c73ddbe35be24cde02f77bac7e3b8b6d92242


Note You need to log in before you can comment on or make changes to this bug.