← Back to Pull requests

Add azure interconnect group support #235

Merged
anson627 merged 3 files (93 lines) on Jun 30, 2026 21:08 UTC
View on GitHub
anson627 anson627 commented on Jun 22, 2026 15:40 UTC
Author

What type of PR is this?


/kind feature

What this PR does / why we need it:


this PR adds azure support of interconnect group - nodes within interconnect subgroup are connected with NVLink/NVSwitch, and nodes cross interconnect subgroup but within interconnect group are connected with Infiniband. This feature enabled fine grained scheduling and alignment in addition to the existing placement group.

Which issue(s) this PR is related to:


#85

Special notes for your reviewer:


This change has been tested on Azure GB300 hardware, and ensure dranet propagate the correct attributed on resource slice, specifically azure.dra.net/interconnectGroupId and azure.dra.net/interconnectSubgroupId

Does this PR introduce a user-facing change?


``release-note
add azure interconnect group support
``

Diff: 93 lines (+82 / -11) across 3 files Reviewer: tamilmani1989 Review duration: 11848m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.33) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 93 lines diff across 3 files
0.33
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.82 · 5 substantive comment(s)
0.82
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
86%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.272
Real PR Conversation Timeline
14 items
netlify[bot] netlify[bot] commented on Jun 22, 2026 15:40 UTC
Bot

<span aria-hidden="true">✅</span> Deploy Preview for dranet canceled.

| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | e43cb557d9f0d943f34c07a007e7e80e8d43d481 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/dranet/deploys/6a3bfe5deab5f50008df2018 |

gauravkghildiyal gauravkghildiyal commented on Jun 23, 2026 00:54 UTC
Contributor

Please unhold if a secondary review from @MikeZappa87 or @tamilmani1989 isn't needed

/lgtm
/approve
/hold

tamilmani1989 tamilmani1989 commented on code on Jun 23, 2026 18:41 UTC
Code Review
pkg/cloudprovider/azure/azure.go:1
@@ -41,13 +41,15 @@ import (
 const (
 	AzureAttrPrefix = "azure.dra.net"
 
-	AttrAzurePlacementGroupID = AzureAttrPrefix + "/" + "placementGroupId"
-	AttrAzureVMSize           = AzureAttrPrefix + "/" + "vmSize"
+	AttrAzurePlacementGroupID       = AzureAttrPrefix + "/" + "placementGroupId"
+	AttrAzureVMSize                 = AzureAttrPrefix + "/" + "vmSize"
+	AttrAzureInterconnectGroupID    = AzureAttrPrefix + "/" + "interconnectGroupId"
+	AttrAzureInterconnectSubgroupID = AzureAttrPrefix + "/" + "interconnectSubgroupId"
 
 	// imdsEndpoint is the Azure Instance Metadata Service endpoint.
 	imdsEndpoint = "http://169.254.169.254/metadata/instance"
 	// imdsAPIVersion is the API version used for IMDS queries.
-	imdsAPIVersion = "2021-02-01"
+	imdsAPIVersion = "2024-03-15"

@rbtr is this the version you validated with for ICG? @anson627 can you let know which sku you validated with?

rbtr rbtr commented on code on Jun 23, 2026 19:02 UTC
Code Review
pkg/cloudprovider/azure/azure.go:1
@@ -41,13 +41,15 @@ import (
 const (
 	AzureAttrPrefix = "azure.dra.net"
 
-	AttrAzurePlacementGroupID = AzureAttrPrefix + "/" + "placementGroupId"
-	AttrAzureVMSize           = AzureAttrPrefix + "/" + "vmSize"
+	AttrAzurePlacementGroupID       = AzureAttrPrefix + "/" + "placementGroupId"
+	AttrAzureVMSize                 = AzureAttrPrefix + "/" + "vmSize"
+	AttrAzureInterconnectGroupID    = AzureAttrPrefix + "/" + "interconnectGroupId"
+	AttrAzureInterconnectSubgroupID = AzureAttrPrefix + "/" + "interconnectSubgroupId"
 
 	// imdsEndpoint is the Azure Instance Metadata Service endpoint.
 	imdsEndpoint = "http://169.254.169.254/metadata/instance"
 	// imdsAPIVersion is the API version used for IMDS queries.
-	imdsAPIVersion = "2021-02-01"
+	imdsAPIVersion = "2024-03-15"

I didn't see these fields before 2025-11-11, but I only briefly had access to the GB300 and can't verify it now.

anson627 anson627 commented on code on Jun 24, 2026 16:00 UTC
Code Review
pkg/cloudprovider/azure/azure.go:1
@@ -41,13 +41,15 @@ import (
 const (
 	AzureAttrPrefix = "azure.dra.net"
 
-	AttrAzurePlacementGroupID = AzureAttrPrefix + "/" + "placementGroupId"
-	AttrAzureVMSize           = AzureAttrPrefix + "/" + "vmSize"
+	AttrAzurePlacementGroupID       = AzureAttrPrefix + "/" + "placementGroupId"
+	AttrAzureVMSize                 = AzureAttrPrefix + "/" + "vmSize"
+	AttrAzureInterconnectGroupID    = AzureAttrPrefix + "/" + "interconnectGroupId"
+	AttrAzureInterconnectSubgroupID = AzureAttrPrefix + "/" + "interconnectSubgroupId"
 
 	// imdsEndpoint is the Azure Instance Metadata Service endpoint.
 	imdsEndpoint = "http://169.254.169.254/metadata/instance"
 	// imdsAPIVersion is the API version used for IMDS queries.
-	imdsAPIVersion = "2021-02-01"
+	imdsAPIVersion = "2024-03-15"

good catch! I tested on GB300 with ICG/ICB attached: https://gist.github.com/anson627/3c89b59a9af13dc0d858ac922022b83b

tamilmani1989 tamilmani1989 commented on code on Jun 25, 2026 00:50 UTC
Code Review
pkg/cloudprovider/azure/azure.go:1
@@ -41,13 +41,15 @@ import (
 const (
 	AzureAttrPrefix = "azure.dra.net"
 
-	AttrAzurePlacementGroupID = AzureAttrPrefix + "/" + "placementGroupId"
-	AttrAzureVMSize           = AzureAttrPrefix + "/" + "vmSize"
+	AttrAzurePlacementGroupID       = AzureAttrPrefix + "/" + "placementGroupId"
+	AttrAzureVMSize                 = AzureAttrPrefix + "/" + "vmSize"
+	AttrAzureInterconnectGroupID    = AzureAttrPrefix + "/" + "interconnectGroupId"
+	AttrAzureInterconnectSubgroupID = AzureAttrPrefix + "/" + "interconnectSubgroupId"
 
 	// imdsEndpoint is the Azure Instance Metadata Service endpoint.
 	imdsEndpoint = "http://169.254.169.254/metadata/instance"
 	// imdsAPIVersion is the API version used for IMDS queries.
-	imdsAPIVersion = "2021-02-01"
+	imdsAPIVersion = "2024-03-15"

ok. i heard there is going to be another new api which has sub group info..

tamilmani1989 tamilmani1989 approved these changes on Jun 25, 2026 00:50 UTC
Approved Reviewer

Approved these changes.

kubernetes-prow[bot] kubernetes-prow[bot] commented on Jun 25, 2026 00:50 UTC
Bot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: <a href="https://github.com/kubernetes-sigs/dranet/pull/235#" title="Author self-approved">anson627</a>, <a href="https://github.com/kubernetes-sigs/dranet/pull/235#issuecomment-4774525082" title="Approved">gauravkghildiyal</a>, <a href="https://github.com/kubernetes-sigs/dranet/pull/235#pullrequestreview-4567034738" title="Approved">tamilmani1989</a>

The full list of commands accepted by this bot can be found here.

The pull request process is described here

<details >
Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [gauravkghildiyal]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    gauravkghildiyal gauravkghildiyal commented on Jun 25, 2026 17:37 UTC
    Contributor

    LGTM'ing again post approval from @tamilmani1989

    /lgtm

    aojea aojea commented on Jun 26, 2026 14:55 UTC
    Contributor

    Azure folks remember to unhold it if you want to merge

    gauravkghildiyal gauravkghildiyal commented on Jun 30, 2026 04:02 UTC
    Contributor

    @anson627 @tamilmani1989 Is this good to unhold?

    anson627 anson627 commented on Jun 30, 2026 12:34 UTC
    Author

    @anson627 @tamilmani1989 Is this good to unhold?

    yes please

    aojea aojea commented on Jun 30, 2026 20:49 UTC
    Contributor

    > @anson627 @tamilmani1989 Is this good to unhold?

    > yes please

    /hold cancel

    Reviewers
    Assignees
    anson627 anson627
    Labels
    risk: low confidence: 86.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 33.1% (LOW) · Higher = larger blast radius
    33.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 86.8% · Lower = rushed or shallow review
    86.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4.4% · Safe to merge
    4.4%