Bug 2002323

Summary: ModemManager.service requires polkit.service but the polkit package is not required
Product: [Fedora] Fedora Reporter: Milos Malik <mmalik>
Component: ModemManagerAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 35CC: dcbw, fgiudici, lkundrak, max, omosnace, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ModemManager-1.18.2-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-29 00:16:25 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 Milos Malik 2021-09-08 14:37:49 UTC
Description of problem:
The ModemManager service cannot be started if the polkit service is not installed on the system. Unfortunately, the ModemManager package does not
require the polkit package.

Version-Release number of selected component (if applicable):
ModemManager-1.17.900-1.fc35.x86_64
ModemManager-glib-1.17.900-1.fc35.x86_64
polkit-0.118-3.fc35.x86_64
polkit-libs-0.118-3.fc35.x86_64
polkit-pkla-compat-0.1-20.fc35.x86_64

How reproducible:
 * always

Steps to Reproduce:
# grep -i polkit /usr/lib/systemd/system/ModemManager.service 
After=polkit.service
Requires=polkit.service
# rpm -qf /usr/lib/systemd/system/polkit.service 
polkit-0.118-3.fc35.x86_64
# rpm -qa --requires ModemManager\* | grep polkit
libpolkit-gobject-1.so.0()(64bit)
# find /usr -name libpolkit-gobject-1.so.0
/usr/lib64/libpolkit-gobject-1.so.0
# rpm -qf `find /usr -name libpolkit-gobject-1.so.0`
polkit-libs-0.118-3.fc35.x86_64
#

Comment 1 Milos Malik 2021-09-08 14:47:06 UTC
The problem was discovered on a Fedora CI machine where a minimum of packages is installed.

# rpm -qa polkit\*
# rpm -qa ModemManager\*
# yum -y -q install ModemManager

Installed:
  ModemManager-1.17.900-1.fc35.x86_64  ModemManager-glib-1.17.900-1.fc35.x86_64 
  libgudev-237-1.fc35.x86_64           libmbim-1.26.0-1.fc35.x86_64             
  libmbim-utils-1.26.0-1.fc35.x86_64   libqmi-1.30.0-1.fc35.x86_64              
  libqmi-utils-1.30.0-1.fc35.x86_64    libqrtr-glib-1.0.0-2.fc35.x86_64         
  polkit-libs-0.118-3.fc35.x86_64     

# rpm -qa polkit\*
polkit-libs-0.118-3.fc35.x86_64
# rpm -qa ModemManager\*
ModemManager-glib-1.17.900-1.fc35.x86_64
ModemManager-1.17.900-1.fc35.x86_64
# systemctl start ModemManager
Failed to start ModemManager.service: Unit polkit.service not found.
# systemctl status ModemManager
○ ModemManager.service - Modem Manager
     Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; enabled; vendor preset: enabled)
     Active: inactive (dead)
#

Comment 2 Fedora Update System 2021-09-14 18:03:36 UTC
FEDORA-2021-582f6ae893 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-582f6ae893

Comment 3 Fedora Update System 2021-09-14 18:48:11 UTC
FEDORA-2021-582f6ae893 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-582f6ae893`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-582f6ae893

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-09-19 21:07:07 UTC
FEDORA-2021-582f6ae893 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-582f6ae893

Comment 5 Fedora Update System 2021-09-20 05:10:31 UTC
FEDORA-2021-582f6ae893 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-582f6ae893`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-582f6ae893

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-09-29 00:16:25 UTC
FEDORA-2021-582f6ae893 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.