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 1639456

Summary: pppd might be left running when ModemManager service stops
Product: Red Hat Enterprise Linux 8 Reporter: Thomas Haller <thaller>
Component: ModemManagerAssignee: Lubomir Rintel <lrintel>
Status: CLOSED WORKSFORME QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.2CC: ajohn, atragler, bgalvani, fgiudici, jmaxwell, lrintel, mleitner, rkhan, sbrivio, sdubroca, sukulkar, thaller, vbenes
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-21 14:54:01 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:
Bug Depends On:    
Bug Blocks: 1630402, 1738635, 1755139    
Attachments:
Description Flags
journal showing the issue none

Description Thomas Haller 2018-10-15 18:49:38 UTC
Created attachment 1494112 [details]
journal showing the issue

Situation:

- wwan device with ppp connected (and pppd running)

> Oct 15 20:10:17 Ajohn.pnq.csb pppd[14857]: nm-ppp-plugin: (nm_ip_up): ip-up event

- ModemManager exits

> Oct 15 20:10:39 Ajohn.pnq.csb systemd[1]: Stopping Modem Manager...
...
> Oct 15 20:10:59 Ajohn.pnq.csb ModemManager[4928]: <warn>  Disabling modems took too long, shutting down with '1' modems around

- NetworkManager notices the modem is gone and sets the device state to disconnected

> Oct 15 20:10:59 Ajohn.pnq.csb NetworkManager[1166]: <info>  [1539614459.1484] modem-manager: ModemManager no longer available
> Oct 15 20:10:59 Ajohn.pnq.csb NetworkManager[1166]: <debug> [1539614459.1489] manager: (ttyUSB2): removing device (allow_unmanage 1, managed 1)
> Oct 15 20:10:59 Ajohn.pnq.csb NetworkManager[1166]: <trace> [1539614459.1490] device[0x562822c13a70] (ttyUSB2): sys-iface-state: managed -> removed

- it seems, it can happen that pppd daemon is left running

(note: process 14857 is running until much later at

> Oct 15 20:18:47 Ajohn.pnq.csb pppd[14857]: rcvd [LCP TermReq id=0x19]
> Oct 15 20:18:47 Ajohn.pnq.csb pppd[14857]: LCP terminated by peer

- upon restart, ModemManager cannot access the modem

> Oct 15 20:10:59 Ajohn.pnq.csb systemd[1]: Started Modem Manager.
...
> Oct 15 20:11:16 Ajohn.pnq.csb ModemManager[16433]: <warn>  Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2': Failed to find pri




Also: see (probably related) assertion:

Oct 15 20:18:50 Ajohn.pnq.csb NetworkManager[1166]: g_signal_emit_valist: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed





Versions:

rhel-7.5 Kernel: 3.10.0-862.6.3.el7.rh1630402.1.90.x86_64
  (which is identical to "3.10.0-862.6.3.el7" + patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=19445816996d1a89682c37685fe95959631d9f32

NM version: 1.10.2-16.el7_5

Comment 5 sushil kulkarni 2019-09-10 15:18:27 UTC
Taking this off of the 7.8 RPL.. We will address this in 8.2.

-Sushil

Comment 6 Lubomir Rintel 2019-11-21 14:54:01 UTC
I've tested this extensively and I'm unable to reproduce this particular problem (though encountered some different problems).
It could very well be that this has been fixed upstream.