Red Hat Bugzilla – Bug 1436990
[NMCI] bring down connection with id exits with incorrect value
Last modified: 2017-08-01 05:24:38 EDT
Description of problem: vbenes@krakonosovo:~$ nmcli connection down id ethernet Error: 'id' is not an active connection. Connection 'ethernet' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/1) Error: not all active connections found. ^^ this is wrong echo $? gives 10 vbenes@krakonosovo:~$ nmcli connection up id ethernet Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5) Version-Release number of selected component (if applicable): NetworkManager-1.8.0-0.4.rc1.el7.x86_64 How reproducible: always Steps to Reproduce: 1. nmcli con down id $active_connection Actual results: 10 as exit value and error Expected results: 0 and no error Additional info:
Fixed upstream: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=ef0d0d08ebb383ca9ab0373185e491be640dd43c Fixed on nm-1-8: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=f7c72045b7673669175bb2d0e32b2ecda08fb704
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, 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/RHSA-2017:2299