Skip to content

Add extra check to only set the IP Service tags if not already set#4551

Merged
LiliDeng merged 3 commits into
mainfrom
knelsonmeister/iptags
Jun 25, 2026
Merged

Add extra check to only set the IP Service tags if not already set#4551
LiliDeng merged 3 commits into
mainfrom
knelsonmeister/iptags

Conversation

@knelsonmeister

Copy link
Copy Markdown
Collaborator

Description

Removes setting the IP Service tags if BYOIP is enabled. The code was overwriting any IP service tags set with ip_service_tags in a runbook.

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Set a custom IP service tag using ip_service_tags in a runbook. Ran a LISA smoke test, and I can see the custom IP service tag in Azure with the fix.

Key Test Cases:
smoke_test

Impacted LISA Features:

Tested Azure Marketplace Images:
canonical ubuntu-24_04-lts server-arm64 latest

Test Results

Image VM Size Result
canonical ubuntu-24_04-lts server-arm64 latest Standard_D32pds_v6 PASSED

Comment out BYOIP feature registration logic for IP service tags.
Removed commented-out code for BYOIP feature registration.
@knelsonmeister knelsonmeister requested a review from LiliDeng as a code owner June 23, 2026 20:56
Copilot AI review requested due to automatic review settings June 23, 2026 20:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes Azure deployment parameter construction so user-provided ip_service_tags from the runbook are no longer overridden when the BYOIP feature is registered, preserving custom IP tag configuration.

Changes:

  • Removed the BYOIP-registered conditional that injected FirstPartyUsage=/SyntheticLoad into arm_parameters.ip_service_tags.
  • Ensures ip_service_tags passed via runbook remain intact during _create_deployment_parameters() processing.
  • Consider linking the related issue for traceability (bug fix PR with no linked issue).

Comment on lines 1358 to 1359

arm_parameters.virtual_network_resource_group = (
@github-actions

Copy link
Copy Markdown

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
smoke_test (lisa_0_0) ✅ PASSED 36.440

@knelsonmeister knelsonmeister changed the title Knelsonmeister/iptags Removes setting the IP Service tags if BYOIP is enabled Jun 24, 2026
@knelsonmeister knelsonmeister marked this pull request as draft June 24, 2026 18:53
@github-actions

Copy link
Copy Markdown

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
smoke_test (lisa_0_0) ✅ PASSED 50.020

@knelsonmeister knelsonmeister changed the title Removes setting the IP Service tags if BYOIP is enabled Add extra check to only set the IP Service tags if not already set Jun 24, 2026
@knelsonmeister knelsonmeister marked this pull request as ready for review June 24, 2026 22:24
Copilot AI review requested due to automatic review settings June 24, 2026 22:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread lisa/sut_orchestrator/azure/platform_.py
@LiliDeng LiliDeng merged commit f1ba590 into main Jun 25, 2026
62 checks passed
@LiliDeng LiliDeng deleted the knelsonmeister/iptags branch June 25, 2026 15:07
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.

4 participants