Skip to content

fix: add ubuntu2204 azure cni with overlay since thats most popular#8389

Merged
awesomenix merged 1 commit intomainfrom
nishp/fix/e2e/azurecni
Apr 23, 2026
Merged

fix: add ubuntu2204 azure cni with overlay since thats most popular#8389
awesomenix merged 1 commit intomainfrom
nishp/fix/e2e/azurecni

Conversation

@awesomenix
Copy link
Copy Markdown
Contributor

Add a new ubuntu2204 + azurecni test since thats most popular right now.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an Ubuntu 22.04 E2E scenario targeting Azure CNI overlay networking, and adjusts Linux VM log collection to include containerd logs.

Changes:

  • Add Test_Ubuntu2204_AzureCNI scenario using an Azure CNI overlay cluster.
  • Update Linux VM log extraction list to collect containerd systemd logs (and stop collecting localdns logs).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
e2e/vmss.go Modifies the Linux log-collection command list (adds containerd.log, removes localdns.log).
e2e/scenario_test.go Adds a new Ubuntu 22.04 + Azure CNI scenario using the overlay cluster factory and sets NBC network plugin to Azure.

Comment thread e2e/scenario_test.go
Comment on lines +140 to +141
Cluster: clusterAzureOverlayNetwork,
VHD: config.VHDUbuntu2204Gen2Containerd,
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

Cluster: clusterAzureOverlayNetwork bypasses the cached ClusterAzureOverlayNetwork wrapper (see e2e/cache.go) and will repeat the cluster lookup/create path for every scenario invocation. Switch to ClusterAzureOverlayNetwork so the cluster preparation is memoized and avoids extra Azure API calls and flakiness/cost across the test suite.

Copilot uses AI. Check for mistakes.
Comment thread e2e/scenario_test.go
Comment on lines +136 to +138
func Test_Ubuntu2204_AzureCNI(t *testing.T) {
RunScenario(t, &Scenario{
Description: "Ubuntu 22.04 scenario on a cluster configured with Azure CNI",
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

This scenario uses the Azure CNI overlay cluster (clusterAzureOverlayNetwork), but the test name/description only says "Azure CNI". Consider including "Overlay" in the test name and/or Description to avoid confusion with the existing non-overlay Azure CNI scenarios (e.g., Test_Flatcar_AzureCNI which uses ClusterAzureNetwork).

Suggested change
func Test_Ubuntu2204_AzureCNI(t *testing.T) {
RunScenario(t, &Scenario{
Description: "Ubuntu 22.04 scenario on a cluster configured with Azure CNI",
func Test_Ubuntu2204_AzureCNIOverlay(t *testing.T) {
RunScenario(t, &Scenario{
Description: "Ubuntu 22.04 scenario on a cluster configured with Azure CNI Overlay",

Copilot uses AI. Check for mistakes.
Comment thread e2e/vmss.go
"kubelet.log": "sudo journalctl -u kubelet",
"aks-log-collector.log": "sudo journalctl -u aks-log-collector",
"localdns.log": "sudo journalctl -u localdns",
"containerd.log": "sudo journalctl -u containerd",
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

Dropping localdns.log collection here removes a useful debug artifact for failures, especially since localdns behavior is validated in several scenarios. If the goal is to add containerd logs, consider keeping both localdns.log and containerd.log entries (or conditionally collecting localdns only when supported) rather than replacing it outright.

Suggested change
"containerd.log": "sudo journalctl -u containerd",
"containerd.log": "sudo journalctl -u containerd",
"localdns.log": "sudo journalctl -u localdns",

Copilot uses AI. Check for mistakes.
@awesomenix awesomenix merged commit bc3c799 into main Apr 23, 2026
26 of 32 checks passed
@awesomenix awesomenix deleted the nishp/fix/e2e/azurecni branch April 23, 2026 18:25
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