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

DPDK MANA CentOS 7 changes #3373

Open
wants to merge 9 commits into
base: mcgov/dpdk-mana-merge
Choose a base branch
from

Conversation

paboldin
Copy link
Contributor

@paboldin paboldin commented Aug 9, 2024

This patchset is built on top of mcgov/dpdk-mana-merge branch and provides support to build DPDK and RDMA-CORE on CentOS 7.0 Azure images.

devtoolset = has_devtoolset[0]
node.os.install_packages([devtoolset])
node.tools[Mv].move("/bin/gcc", "/bin/gcc_back", overwrite=True, sudo=True)
result.assert_exit_code()
Copy link
Member

Choose a reason for hiding this comment

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

add message, so once the assertion failed, the error message give more details.

Copy link
Member

Choose a reason for hiding this comment

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

Please take care all assert_exit_code, add error message.

@@ -143,7 +146,7 @@ def install(self) -> str:
runbook: SourceInstallerSchema = self.runbook
assert runbook.location, "the repo must be defined."

self._install_build_tools(node)
self._install_build_tools(node, runbook.build_deps)
Copy link
Member

Choose a reason for hiding this comment

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

Can the build_deps be added into this class, instead of configurable? It makes repro harder from others.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you please elaborate?

Currently it is added as a configurable because different kernel versions might need different build dependencies.

Copy link
Member

Choose a reason for hiding this comment

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

You can add checks for kernel versions, if it's some version, add the deps. If the deps are maintained out of code, it's hard to others to make the build tools works without the right configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, but we fetch the kernel version after installation of the build tools (otherwise make kernelrelease might fail). Should I add a second call to install_build_tools after kernel version is known?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, you can call installation again, after know kernel version. Please add comments to explain the dependencies.

lisa/base_tools/mv.py Outdated Show resolved Hide resolved
@squirrelsc
Copy link
Member

@paboldin Thank you for contribution! Please agree the CLA, so I can trigger checks.

@paboldin
Copy link
Contributor Author

@microsoft-github-policy-service agree company="CloudLinux"

@paboldin
Copy link
Contributor Author

paboldin commented Aug 10, 2024

@squirrelsc done, and I believe addressed most of your comments. Removed the top commit with "return True" on SRIOV check.

Thanks for the review!

EDIT: comment -> commit

@squirrelsc
Copy link
Member

@paboldin , I just found it's not merged into main. Can you direct the changes to main branch?

@paboldin
Copy link
Contributor Author

@paboldin , I just found it's not merged into main. Can you direct the changes to main branch?

I'm afraid not, underlying branch is necessary.

@squirrelsc
Copy link
Member

@mcgov what's the plan to send PR for dpdk-mana-merge? If the PR goes to dpdk-mana-merge, it needs review again, when it's merged to main. If we have to do, please make sure each commit is meaningful and well managed.

result = node.execute(
f"ln -s /opt/rh/{devtoolset}/root/usr/bin/gcc /bin/gcc", sudo=True
)
result.assert_exit_code(f"can not link {devtoolset} to gcc")
Copy link
Member

Choose a reason for hiding this comment

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

Use named arguments, so it won't be broken, if the interface changed in future.

@LiliDeng
Copy link
Collaborator

@paboldin any plan to update this PR?

@paboldin
Copy link
Contributor Author

@LiliDeng I'm on it. Any more comments for review?

@squirrelsc
Copy link
Member

@mcgov can you continue the work on microsoft:mcgov/dpdk-mana-merge? There may be many conflicts with main branch.

@squirrelsc
Copy link
Member

@paboldin Thank you for contribution! Would you split tool, installer changes in separated PRs to main branch? The dpdk is changed a lot, so mcgov may need more time to merge the private branch firstly.

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.

3 participants