-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[master][ethtool][chassis] Install ethtool to localhost #18241
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
Conversation
@rlhui @judyjoseph This PR installs ethtool in host for midplane commuincation setup. Please review. |
i remember we removed ethtool on the host and use ethtool in the pmon. can you check the commit history to check why we did that? |
@mlok-nokia the ethtool is not present even in 202205 branch of build_debian.sh. Were we installing it via sonic-platform https://github.com/nokia/sonic-platform/blob/e82caa40d4eec59e574bd4acffb0e92fd7187da4/debian/rules#L43 earlier ? |
In 202205 branch, ethtool is built as ethtool_5.9-1_amd64.deb package by the common image build with source code in subdirectory src/ethtool. What you highlight in Nokia platform is that Nokia platform dpkg and copies it to the Nokia folder /opt/srlinux/bin if the ethtoolxxx_amd64.deb exists. In the current master branch, ethtool is no longer built with the source code and it is installed in the PMON docker by PR# #15856. It appears to be he didn't know that ethtool is needed to be installed in localhost for chassis midplane interface configuration. |
PR #15856 moved the ethtool to PMON without much description. Based on my underdstanding, it could be needed in the PMON docker too. |
@lguohan Please help to review and merge this PR. Thanks |
@mlok-nokia , #15856 just install ethtool directly instead of building from source. there is some other PR that move ethtool into the PMON docker. can you check which PR is that and we can check with the owner on this |
@lguohan It is done in the same PR. This PR adds the "ethtool" to docker/docker-platform-monitor/Dockerfile.j2 to install the ethtool to PMON docker. And removes the rules/ethtool.mk to remove the build from source code. |
@k-v1 For chassis, ethtool is required to be installed in localhost. It is required to be localhost to setup midplane interfaces that happens before PMON is running. Is there any reason why it has been moved to PMON? |
I think the better solution now:
|
@keboliu ethtool inside PMON came via your platform need, it will now be removed since your platform no longer needs inside PMON. it will be available in host only. |
@dgsudharsan let us know if you have any concern on this one? |
@keboliu @Junchao-Mellanox Can you please check if we have any concern? |
3e5eb22
to
dfd9f40
Compare
@prgeor @k-v1 @lguohan @dgsudharsan Per discussion, I have updated the PR with the change of removing ethtool from PMON. Please review |
I don't have concerns about removing Ethtool from PMON, but please note that there will be an impact on the way using Ethtool from the host side. btw, in this PR, I only see Ethtool is removed from PMON but doesn't install it on the host side, as I mentioned, currently from the host side, the Ethtool command is just a wrapper script to the Ethtool inside PMON, after we remove it, we need to install it on the host side, otherwise we will not have Ethtool, I assume this is not the intention. |
@keboliu @mlok-nokia @lguohan
There are side effects for cmd_wrapper solution:
After my PR has been merged solution for Nokia platform is broken because we don't have ethtool.deb package in target/debs/bullseye but instead just install it from debian mirrors. But I'm not sure it's correct to keep multiple versions of ethtool (cmd_wrapper /usr/bin/ethtool calling ethtool installed in docker-pmon and real binary package in /sbin/ethtool or somewhere else) on host system. |
My suggestion it's not correct to call ethtool on host system via cmd_wrapper But need to answer to 2 questions:
|
/azpw ms_conflict |
dfd9f40
to
b2f19f4
Compare
Signed-off-by: mlok <[email protected]>
b2f19f4
to
c00592a
Compare
The modification in build_debian.sh is for installing the ethtool on host. |
Signed-off-by: mlok <[email protected]>
The modification on the build_debian.sh is for installing ethtool on host. |
@liushilongbuaa @lguohan Could you please follow up with this PR? Anything I need to do? Thanks. |
@prgeor would you please review/comment as it's blocking nokia LC platform to come up? thanks |
@prgeor, please help review and signoff this PR |
/azpw ms_conflict |
/azpw ms_conflict |
Why I did it
Platform Nokia-IXR7250E chassis requires the ethtool to be available in host to disable the Midplane interface autoneg for Linecard-Supervisor midplane communication.
Work item tracking
How I did it
Modify the build_debian.sh to Install the ethtool in host.
How to verify it
Running the new images, verify the ethool is present in /sbin directory
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)