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

Fixed the proposal of the virtualization configuration #1015

Merged
merged 6 commits into from Dec 20, 2019

Conversation

teclator
Copy link
Contributor

@teclator teclator commented Dec 16, 2019

Problem

With network-ng, a regression was introduced in the network virtualization proposal.

That is, if for example there is only one interface configured by dhcp , it is skipped as bridge port candidate because it is already configured (of course same happen with any configured interface):

https://github.com/yast/yast-network/blob/master/src/modules/Lan.rb#L752

Introduced by:

4e0a75e#diff-a44342e8d97412ca7486bd2d61e8e429L864

The configuration of the interface should be copied to the bridge and it should be added as a bridge port as it was in the past.

The issue was detected as consequence of these bugs, which has been closed as the crash should not happen with last changes in network-ng but will face the described regression:

https://trello.com/c/Dh9D0SIi/1443-sles15-sp2-p2-1156986-yast-does-not-propose-configured-interfaces-for-virtualization-bridges

Solution

The configuration is created again and the logic has been moved to its own class.

Tests

  • Created unit tests and tested manually in a running system with the virtualization client

@coveralls
Copy link

coveralls commented Dec 16, 2019

Coverage Status

Coverage decreased (-0.008%) to 65.063% when pulling 9826752 on fix_bridge_virtualization_config into e93b4bc on master.

src/modules/Lan.rb Outdated Show resolved Hide resolved
@teclator teclator requested a review from mchf December 20, 2019 11:03
@teclator teclator force-pushed the fix_bridge_virtualization_config branch from fefdd4f to 8c31a9a Compare December 20, 2019 11:04
@teclator teclator force-pushed the fix_bridge_virtualization_config branch from 8c31a9a to a8bcaa9 Compare December 20, 2019 11:14
Copy link
Member

@mchf mchf left a comment

Choose a reason for hiding this comment

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

lgtm

@teclator teclator merged commit 9d1d347 into master Dec 20, 2019
@teclator teclator deleted the fix_bridge_virtualization_config branch December 20, 2019 11:22
@yast-bot
Copy link
Contributor

✔️ Public Jenkins job #111 successfully finished
✔️ Created OBS submit request #758486

@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #42 successfully finished
✔️ Created IBS submit request #208506

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.

None yet

4 participants