Skip to content
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

nm applier: only create ethernet when explicitly #910

Merged
merged 1 commit into from Mar 9, 2020

Conversation

cathay4t
Copy link
Member

@cathay4t cathay4t commented Mar 9, 2020

Creating ethernet configuration when user not requested will
cause two major problems:

  • Adding slave to newly create bridge will cause bridge link down.
  • Cannot switch bond mode from 1(active-backup) to 5(balance-tlb).

To fix the problem, only create ethernet/wired setting when user
explicitly requested.

Remove the xfail of test case for changing bond mode from 1(active-backup)
to 5(balance-tlb).

Remove the workaround in test case for adding slave to newly created
bridge without link state down.

@packit-as-a-service
Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/nmstate-nmstate-910
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@coveralls
Copy link

Coverage Status

Coverage remained the same at ?% when pulling a71ab7b on cathay4t:eth_section into d7b874e on nmstate:master.

@coveralls
Copy link

coveralls commented Mar 9, 2020

Coverage Status

Coverage remained the same at ?% when pulling 91a8d56 on cathay4t:eth_section into d7b874e on nmstate:master.

libnmstate/nm/applier.py Outdated Show resolved Hide resolved
@cathay4t cathay4t force-pushed the eth_section branch 2 times, most recently from 6142ff4 to 1ebeef4 Compare March 9, 2020 13:14
Creating ethernet configuration when user not requested will
cause two major problems:
    * Adding slave to newly create bridge will cause bridge link down.
    * Cannot switch bond mode from 1(active-backup) to 5(balance-tlb).

To fix the problem, only create ethernet/wired setting when user
explicitly requested.

Remove the xfail of test case for changing bond mode from 1(active-backup)
to 5(balance-tlb).

Remove the workaround in test case for adding slave to newly created
bridge without link state down.

Add test case showing old ethernet configuration will not be removed when
desire state does not include so.

Signed-off-by: Gris Ge <fge@redhat.com>
Copy link
Member

@ffmancera ffmancera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

Copy link
Member

@EdDev EdDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks good!

@cathay4t cathay4t merged commit eed3a2a into nmstate:master Mar 9, 2020
@tyll tyll removed the Wait_Review label Mar 18, 2020
@cathay4t cathay4t deleted the eth_section branch March 25, 2020 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should not set MAC address when not asked to Reapply does not work when adding slave to newly created bridge
5 participants