-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nmcli module unexpectedly changes bonding mode of existing interface #9201
Comments
Files identified in the description: If these files are incorrect, please update the |
hi @LukWe99 thanks for the report. Technically this is not a bug report but rather a feature request. The default mode for the module is |
Hi @russoz, thank you for your comment. I agree that it's documented that With the
Accordingly, I would expect the following from the
Feel free to convert the bug ticket into a feature request ticket if it supports the implementation of the behavior described above. |
@LukWe99 the main difference is that bug fixes are backported (to fix previous releases), whilst features are applied forward-only. I have just changed the type to "Feature Idea" |
Summary
When I try to set dns4 searching domains for an existing bond interface, bonding mode gets unexpectedly changed from "802.3ad" to "balance-rr" which results in a broken connection.
I assume the bug does not only occur on changing dns4 searching domains but for every change caused by a module invocation for that interface but unfortunately I have no possibility to verify that.
Issue Type
Feature Idea
Component Name
nmcli
Ansible Version
Community.general Version
Configuration
OS / Environment
Target is a hardware server running RHEL 8.
Steps to Reproduce
Expected Results
I expected the module to only update the dns4 search domains of the existing bond interface (if necessary) and not to touch any other settings of the interface. If no "mode" is given and the bond interface is already existing, I expect the module to keep the "mode" setting (e.g. "802.3ad") and not to set it to the default value of "balanced-rr".
Actual Results
Although the dns4 search domains are already set correctly, the module reports "changed" and changes the "mode" parameter from "802.3ad" (which would be the correct setting) to "balance-rr" (which seems to be the default for "mode" as "mode" is not explicitly set in the module invocation). This breaks the bonded network connection.
Code of Conduct
The text was updated successfully, but these errors were encountered: