-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Set interface name to the network_interface name for macvlan and ipvlan networks #21446
Conversation
Cockpit tests failed for commit a63870d820d721ead66bf64584227146f6869786. @martinpitt, @jelly, @mvollmer please check. |
Cockpit tests failed for commit 9350b183c51fbff305f4593011945fdcc84b7501. @martinpitt, @jelly, @mvollmer please check. |
The two What is the next step? Can we get it merged? |
/assign @Luap99 @TomSweeneyRedHat @rhatdan |
Pinging @TomSweeneyRedHat for review |
Pinging @rhatdan for review |
@edsantiago Mind taking a look at the tests? |
@Luap99 is the SME here, and I'd like to get his eyeballs on this. |
general comments:
well done getting through CI! And appreciate the tests. |
Incorporated all the comments. The attribute definition is documented in the c/common repo. The release notes in this PR describes the change. |
What bothers me a little about the tests is that, when run against I'll take a closer look tomorrow. |
There are 4/10 that skip in rootless, not all. They still make sense for root mode. If there is a better way, let me know. |
What I'm trying to say is that most of these new tests do not test your PR. Are they supposed to? |
Not sure I am understanding. The PR CI result shows all of them are getting tested in root mode. |
That is one of the most important and fundamental elements of testing. Most of your new tests pass when run against main. this could be because I do not have time or energy tonight to figure out which is the reason. So my question to you is, did you deliberately write a bunch of new tests that have nothing to do with your PR, simply to improve our coverage? Or were you expecting all of your new tests to be tests of your PR? Thank you either way. We are all grateful for new code and new test coverage. |
I see what you are pointing to. Most of the new test cases are related existing behavior. That is, checking the ethX interface naming inside container. That is why they are passing on the previous commit. So, what you said "written a bunch of tests for functionality that your PR does not address, that has nothing whatsoever to do with your PR, but you found a hole in our testing and have corrected it." is probably correct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback from a quick first pass. I need to switch context now, sorry.
@edsantiago , @mheon , @Luap99, @TomSweeneyRedHat , @rhatdan , |
Once @Luap99 gets in next week and reviews, we can get through final review comments and merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests seem to carry a ton of duplication which it makes it very hard to follow I suggest rewriting them in some form of loop to deduplicate most logic.
Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, code looks good but we definitely need to have ipvlan tests working on netavark.
It failed with a very clear statement that netavark does not support ipvlan. |
What version are you using, the latest version support it and they should be in CI |
Lets see if #21530 works, if it does then it should work here too. |
Cockpit tests failed for commit c68f555b096d1046520343b2577c34f0402a59db. @martinpitt, @jelly, @mvollmer please check. |
After re-enabling ipvlan test for netavark in all
Any clues? Is this a tested and supported combination for debian? |
System test failing randomly sys remote fedora-38 root host boltdb
|
Known flake, it's been hitting us very hard this past week (on f38 only). No point restarting it because the other failures are not flakes. Looks like Debian has bad/old netavark (1.4). We don't have SkipIfRunc("FIXME: Fails with netavark < 1.10. Reenable once Debian gets an update") |
Will the check for debian be |
Bypassing the test when all the following conditions are met
|
…an networks When interface_name attribute in containers.conf file is set to "device", then set interface names inside containers same as the network_interface names of the respective network. The change applies to macvlan and ipvlan networks only. The interface_name attribute value has no impact on any other types of networks. If the interface name is set in the user request, then that takes precedence. Fixes: #21313 Signed-off-by: Vikas Goel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99, vikas-goel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
9ad07d1
into
containers:main
When interface_name attribute in containers.conf file is set to "device", then set interface names inside containers same as the network_interface names of the respective network.
The change applies to macvlan and ipvlan networks only. The interface_name attribute value has no impact on any other types of networks.
If the interface name is set in the user request, then that takes precedence.
The interface_name attribute in the containers.conf file was added via containers/common#1814.
Fixes: #21313
Does this PR introduce a user-facing change? Yes