Bug 1225783

Summary: add rpm dependency in spec file for aligning new DM udev rules
Product: [openSUSE] openSUSE Tumbleweed Reporter: heming zhao <heming.zhao>
Component: BasesystemAssignee: systemd maintainers <systemd-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: glass.su, zzhou
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description heming zhao 2024-06-01 01:35:24 UTC
LVM 2.03.24 contains a changed set[1][2] of device-mapper udev rules which slightly modifies the semantics of the udev properties of dm devices. This introduces a dependency between LVM 2.03.24 and systemd[3], as well as multipath-tools 0.9.9.
The risk of breakage is low (see in-depth discussion here), but we could make it even lower by patching systemd to include [3].

[1]: https://gitlab.com/lvmteam/lvm2/-/merge_requests/9

[2]:
038f9254d9554654197b59c160e3f775af27cdb1
a196752969320cfc34a97cc97afa1978fa57da73
21ca92c4325b6b161fb1e1f10942ad9f8d23c144
2b2f11a74cd5cc05f266fd0c65f0e55eb8bafd9f
f98d020eadafe7d8db7bec1f5a26915615e5a6a9
0fe2d778aa905849daae471b4956b056c43373f3
6f44e1093c4a06214831d439c5db9e885b70f072

[3]: https://github.com/systemd/systemd/pull/31661
Comment 1 heming zhao 2024-06-01 01:43:14 UTC
systemd SR#:
https://build.opensuse.org/request/show/1177954
Comment 2 heming zhao 2024-07-02 01:17:46 UTC
there are two SRs [1][2], which make lvm2 support new udev rules.

[1]:
https://build.opensuse.org/request/show/1178006
```
Sat Jun  1 01:46:00 UTC 2024 - Heming Zhao <heming.zhao@suse.com>

- add rpm dependency in spec file for aligning new DM udev rules (bsc#1225783)
  * update lvm2.spec
```

[2]:
https://build.opensuse.org/request/show/1183261
```
Wed Jun 26 22:59:00 UTC 2024 - Heming Zhao <heming.zhao@suse.com>

- add rpm dependency in spec file for aligning new DM udev rules (bsc#1225783)
  * update lvm2.spec for multipath-tools
```

------------------------------
In lvm2.spec, the relevant code:

```
# see bsc#1225783 for following 2 lines
Requires:       (udev >= 255.7 if udev)
Requires:       (multipath-tools >= 0.9.9 if multipath-tools)
```
Comment 3 heming zhao 2024-07-02 01:18:37 UTC
SRs have been accepted by factory, close this bug.