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 1066703 - [RFE] Handle parent/child relationships more cleanly
Summary: [RFE] Handle parent/child relationships more cleanly
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: 8.1
Assignee: Thomas Haller
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On: 1682336 1868254
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-18 23:01 UTC by Dan Williams
Modified: 2021-02-28 18:48 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-01 03:02:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan Williams 2014-02-18 23:01:26 UTC
NM handles master/slave relationships well already.

NM doesn't handle parent/child device relationships well.

By parent/child, we mean kernel interfaces that are logically a "child" of some other device, like a WWAN modem's ethernet port is logically a child of the WWAN device itself, since it is controlled by the WWAN device and cannot be used separately.  Same for PPP interfaces for WWAN devices, ATM devices, or PPPoE connections.

Similarly, VPN tunnel interfaces are really children of their parent NMVPNConnection, and if/when we create a fake NMDevice for each VPN connection, the tunnel interface should be attached to the parent VPN connection device.

NetworkManager currently allows these child devices to be manipulated separately from their parents, which is wrong and error-prone.  It's also confusing for clients because they don't know that these child devices cannot be manipulated from the API.

---

NMDevice should grow a "parent" property that points to the object path of the parent NMDevice.  Any NMDevice that has the "parent" property set would no longer be activatable or disconnectable on it's own, because it is controlled by the parent and not separately useful.  Each child device should still provide it's own IP4Config/IP6Config though.

D-Bus clients like gnome-shell or nm-applet can use the "parent" property to hide child devices and ensure that only the parent device is shown to the user in a UI.

Next, the parent NMDevice's IP4/IP6 Config objects should be a *composite* of the child device's configs, to maintain backwards compatibility, and to provide a simpler API for clients that don't care about the specific parent/child relationships.

Comment 1 RHEL Program Management 2014-03-24 05:48:06 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 Dan Williams 2016-01-04 23:32:29 UTC
Still relevant, FWIW.

Comment 6 sushil kulkarni 2018-03-27 22:08:11 UTC
Dropping this from the 8.0 RPL to accommodate other items. Will consider it in the next release.

-Sushil

Comment 10 RHEL Program Management 2020-11-01 03:02:33 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.