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

Add support for VMs with multiple IB devices #2085

Merged
merged 3 commits into from
Dec 9, 2020

Conversation

longlimsft
Copy link
Collaborator

Newer HPC VM supports multiple Infiniband NICs. A new KVP format is
introduced in KVP pool0 to pass multiple IPs from KVP daemon. The KVP
is of format: (e.g passing two IPs to two IB)

key name: IPoIB_Data
value: NUMPAIRS:2|FFFFFFFFFFF1:172.16.0.1|FFFFFFFFFFF2:172.16.0.2

FFFFFFFFFFF1 and FFFFFFFFFFF2 are the MAC address for the IP over IB device.
172.16.0.1 and 172.16.0.2 are their respective IPs.

If this key is not present in the KVP pool0, the Linux agent falls back to
the old code path of provisioning a single IB device, thus maintaining
compatiblity with older HPC VMs.

Description

Issue #


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and Travis.CI is passing.

Quality of Code and Contribution Guidelines

@narrieta
Copy link
Member

narrieta commented Dec 2, 2020

running automation

@narrieta
Copy link
Member

narrieta commented Dec 2, 2020

automation ok

narrieta
narrieta previously approved these changes Dec 2, 2020
Copy link
Contributor

@larohra larohra left a comment

Choose a reason for hiding this comment

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

Added few comments

azurelinuxagent/common/rdma.py Outdated Show resolved Hide resolved
azurelinuxagent/common/rdma.py Outdated Show resolved Hide resolved
azurelinuxagent/common/rdma.py Outdated Show resolved Hide resolved
azurelinuxagent/common/rdma.py Outdated Show resolved Hide resolved
azurelinuxagent/common/rdma.py Outdated Show resolved Hide resolved
@larohra
Copy link
Contributor

larohra commented Dec 7, 2020

Hey @longlimsft, any update on the PR? Feel free to ping me if you need any clarification about any of my comments above!

Newer HPC VM supports multiple Infiniband NICs. A new KVP format is
introduced in KVP pool0 to pass multiple IPs from KVP daemon. The KVP
is of format: (e.g passing two IPs to two IB)

key name: IPoIB_Data
value: NUMPAIRS:2|FFFFFFFFFFF1:172.16.0.1|FFFFFFFFFFF2:172.16.0.2

FFFFFFFFFFF1 and FFFFFFFFFFF2 are the MAC address for the IP over IB device.
172.16.0.1 and 172.16.0.2 are their respective IPs.

If this key is not present in the KVP pool0, the Linux agent falls back to
the old code path of provisioning a single IB device, thus maintaining
compatiblity with older HPC VMs.
@longlimsft
Copy link
Collaborator Author

Hey @longlimsft, any update on the PR? Feel free to ping me if you need any clarification about any of my comments above!

I have updated the pull request. Please take a look.

Copy link
Contributor

@larohra larohra left a comment

Choose a reason for hiding this comment

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

1 very small comment else LGTM. Will run DCR automation

Copy link
Contributor

@larohra larohra left a comment

Choose a reason for hiding this comment

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

Automation ok, LGTM

@narrieta narrieta merged commit 014b29b into Azure:develop Dec 9, 2020
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