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 1650228 - [RFE] improve `nmcli device $DEVICE managed no` to release device
Summary: [RFE] improve `nmcli device $DEVICE managed no` to release device
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Thomas Haller
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1616363
TreeView+ depends on / blocked
 
Reported: 2018-11-15 16:02 UTC by Thomas Haller
Modified: 2021-01-22 14:04 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-22 14:05:23 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thomas Haller 2018-11-15 16:02:17 UTC
Clearly, `nmcli device "$DEVICE" managed no` should mark the device as unmanaged, prevent NM from touching it further and let the user do something with it. That works.


However, it's not well defined in which state the device is left to the user:


- if the device is currently in disconnected state, maybe NM should restore the previous state.
Should it set the device as `ip link set down` (!IFF_UP)? Possibly it should especially if the device was down before NM touched it.
Should it reset accept_ra 1 and ipv6 addr-gen-mode eui64? Possibly it should, but that might be undesirable if the device is not also down (!IFF_UP) because suddenly the device is reachable.

- if the device is currently active with a profile, should NM leave the device in a disconnected state, or should it leave all IP configuration as is? (possibly just stopping the DHCP client). Note, that when the DHCP client stops, the addresses will eventually time out. That seems right, the user is supposed to take over quickly. Note, that usually we re-request a least early enough, so that at any time it would be expected that the address lifetimes are still valid for quite a bit (until the DHCP server just died).

- if the device is externally managed, then NM is currently not touching the device. Likewise, NM should not touching it when giving it up.




The question for the desired behavior here is up to definition. In general, we should leave the device in a state that is most suitable for the user to take over.




In particular I find it problematic that we configure IPv6 addr-gen-mode none on devices while being disconnected. In that case, the device has no IPv6 link-local address (as it is logically disconnected). But when giving this up, we must reset the interface to a workable state. Most users won't be aware that when they take over the device, they need to properly configure it (including setting addr-gen-mode).

Comment 1 sushil kulkarni 2019-10-15 16:02:48 UTC
Parking for 8.3.

-Sushil

Comment 6 Antonio Cardace 2021-01-22 14:05:23 UTC
Thank you for reporting this. Unfortunately, we don't have the capacity to fix this in the foreseeable future and therefore I will close this. In case this issue is more important than we estimated, please re-open this or file a new bug.


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