Bug 1967171
| Summary: | lvmdbusd is by default started without UDev support | ||
|---|---|---|---|
| Product: | [Community] LVM and device-mapper | Reporter: | Vojtech Trefny <vtrefny> |
| Component: | lvm2 | Assignee: | LVM Team <lvm-team> |
| lvm2 sub component: | lvmdbusd | QA Contact: | cluster-qe <cluster-qe> |
| Status: | POST --- | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, prajnoha, tasleson, zkabelac |
| Version: | unspecified | Flags: | pm-rhel:
lvm-technical-solution?
pm-rhel: lvm-test-coverage? |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Correction posted upstream: https://sourceware.org/git/?p=lvm2.git;a=commit;h=8a1c73ddbe35be24cde02f77bac7e3b8b6d92242 |
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