Skip to content

Force iptables forwarding commands to execute - #4652

Draft
Ajay R (AjayMsft9) wants to merge 1 commit into
microsoft:mainfrom
AjayMsft9:v-aratakonda/fix-iptables-forwarding-command-cache
Draft

Force iptables forwarding commands to execute#4652
Ajay R (AjayMsft9) wants to merge 1 commit into
microsoft:mainfrom
AjayMsft9:v-aratakonda/fix-iptables-forwarding-command-cache

Conversation

@AjayMsft9

@AjayMsft9 Ajay R (AjayMsft9) commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Description

Ensure that iptables rules used for remote libvirt guest SSH forwarding are executed every time instead of returning cached command results.

When DHCP assigns a new guest an IP address previously used by another guest, LISA may return the cached successful result of the earlier FORWARD command. Because the old rule was removed during cleanup, the required rule is missing and SSH to the new guest times out.

This change:

  • Adds force_run=True to forwarding rule creation and cleanup commands.
  • Adds a focused self-test covering cleanup and reuse of the same guest IP.

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

Key Test Cases:
smoke_test|verify_cpu_count

Impacted LISA Features:
None

Tested Azure Marketplace Images:

Test Results

Image VM Size Result
Local focused self-test N/A PASSED
Full LISA self-test suite: 271 tests N/A PASSED
flake8 N/A PASSED

Copilot AI lite review requested due to automatic review settings August 12, 2026 10:01

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.

Copilot encountered an error: Your billing is not configured or you have Copilot licenses from multiple standalone organizations or enterprises. To use premium requests, select a billing entity via the GitHub site, under Settings > Copilot > Features.

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.

2 participants