Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2184390

Summary: Failed to start LVM2 D-Bus service - ModuleNotFoundError: No module named 'utils'
Product: Red Hat Enterprise Linux 9 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: LVM Team <lvm-team>
lvm2 sub component: lvmdbusd QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: agk, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, tasleson, zkabelac
Version: 9.3Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.03.20-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:53:33 UTC 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:

Description Corey Marthaler 2023-04-04 14:04:08 UTC
Description of problem:
[root@virt-517 ~]# systemctl start lvm2-lvmdbusd
Job for lvm2-lvmdbusd.service failed because the control process exited with error code.
See "systemctl status lvm2-lvmdbusd.service" and "journalctl -xeu lvm2-lvmdbusd.service" for details.
[root@virt-517 ~]# systemctl status lvm2-lvmdbusd.service
× lvm2-lvmdbusd.service - LVM2 D-Bus service
     Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmdbusd.service; disabled; preset: disabled)
     Active: failed (Result: exit-code) since Mon 2023-04-03 18:42:57 CEST; 13s ago
       Docs: man:lvmdbusd(8)
    Process: 4040 ExecStart=/usr/sbin/lvmdbusd (code=exited, status=1/FAILURE)
   Main PID: 4040 (code=exited, status=1/FAILURE)
        CPU: 44ms
 
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com lvmdbusd[4040]:   File "/usr/lib/python3.9/site-packages/lvmdbusd/__init__.py", line 10, in <module>
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com lvmdbusd[4040]:     from .main import main
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com lvmdbusd[4040]:   File "/usr/lib/python3.9/site-packages/lvmdbusd/main.py", line 10, in <module>
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com lvmdbusd[4040]:     from . import cfg
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com lvmdbusd[4040]:   File "/usr/lib/python3.9/site-packages/lvmdbusd/cfg.py", line 14, in <module>
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com lvmdbusd[4040]:     from utils import LvmDebugData
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com lvmdbusd[4040]: ModuleNotFoundError: No module named 'utils'
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com systemd[1]: lvm2-lvmdbusd.service: Main process exited, code=exited, status=1/FAILURE
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com systemd[1]: lvm2-lvmdbusd.service: Failed with result 'exit-code'.
Apr 03 18:42:57 virt-517.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Failed to start LVM2 D-Bus service.


Version-Release number of selected component (if applicable):
lvm2-2.03.20-1.el9    BUILT: Wed Mar 22 09:13:10 AM CET 2023
lvm2-libs-2.03.20-1.el9    BUILT: Wed Mar 22 09:13:10 AM CET 2023
lvm2-dbusd-2.03.20-1.el9    BUILT: Wed Mar 22 09:13:02 AM CET 2023

How reproducible:
Everytime

Comment 1 Corey Marthaler 2023-04-24 16:38:03 UTC
Marking Verfied:Tested with the latest rpms.

kernel-5.14.0-284.11.1.el9_2    BUILT: Wed Apr 12 04:16:55 PM CEST 2023
lvm2-2.03.21-1.el9    BUILT: Fri Apr 21 02:33:33 PM CEST 2023
lvm2-libs-2.03.21-1.el9    BUILT: Fri Apr 21 02:33:33 PM CEST 2023




[root@grant-03 ~]# systemctl start lvm2-lvmdbusd
[root@grant-03 ~]# systemctl status lvm2-lvmdbusd.service
â— lvm2-lvmdbusd.service - LVM2 D-Bus service
     Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmdbusd.service; disabled; preset: disabled)
     Active: active (running) since Mon 2023-04-24 18:36:06 CEST; 22s ago
       Docs: man:lvmdbusd(8)
   Main PID: 4633 (lvmdbusd)
      Tasks: 5 (limit: 1643684)
     Memory: 16.7M
        CPU: 126ms
     CGroup: /system.slice/lvm2-lvmdbusd.service
             └─4633 /usr/bin/python3 /usr/sbin/lvmdbusd

Apr 24 18:36:06 grant-03.6a2m.lab.eng.bos.redhat.com systemd[1]: Starting LVM2 D-Bus service...
Apr 24 18:36:06 grant-03.6a2m.lab.eng.bos.redhat.com systemd[1]: Started LVM2 D-Bus service.


Apr 24 18:36:06 grant-03 systemd[1]: Starting LVM2 D-Bus service...
Apr 24 18:36:06 grant-03 systemd[1]: Started LVM2 D-Bus service.

Comment 7 Corey Marthaler 2023-05-25 23:55:13 UTC
Works with the latest build as well. Marking VERIFIED.

lvm2-2.03.21-2.el9    BUILT: Thu May 25 12:03:04 AM CEST 2023
lvm2-libs-2.03.21-2.el9    BUILT: Thu May 25 12:03:04 AM CEST 2023



[root@grant-01 ~]# systemctl start lvm2-lvmdbusd
[root@grant-01 ~]# systemctl status lvm2-lvmdbusd.service
â— lvm2-lvmdbusd.service - LVM2 D-Bus service
     Loaded: loaded (/usr/lib/systemd/system/lvm2-lvmdbusd.service; disabled; preset: disabled)
     Active: active (running) since Fri 2023-05-26 01:53:57 CEST; 9s ago
       Docs: man:lvmdbusd(8)
   Main PID: 23722 (lvmdbusd)
      Tasks: 5 (limit: 1643669)
     Memory: 14.9M
        CPU: 129ms
     CGroup: /system.slice/lvm2-lvmdbusd.service
             └─23722 /usr/bin/python3 /usr/sbin/lvmdbusd

May 26 01:53:57 grant-01.6a2m.lab.eng.bos.redhat.com systemd[1]: Starting LVM2 D-Bus service...
May 26 01:53:57 grant-01.6a2m.lab.eng.bos.redhat.com systemd[1]: Started LVM2 D-Bus service.

Comment 10 errata-xmlrpc 2023-11-07 08:53:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (lvm2 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6633