Skip to content

Avoid DHCP stress count file collisions - #2

Open
ashutosh-agrawal wants to merge 1 commit into
cshivashgit:dhcp-relay-stress-test-fixesfrom
ashutosh-agrawal:fix/dhcp-stress-tcpdump-and-assert
Open

Avoid DHCP stress count file collisions#2
ashutosh-agrawal wants to merge 1 commit into
cshivashgit:dhcp-relay-stress-test-fixesfrom
ashutosh-agrawal:fix/dhcp-stress-tcpdump-and-assert

Conversation

@ashutosh-agrawal

Copy link
Copy Markdown

Summary

  • pass a unique DHCP stress count-file path into each PTF run
  • derive per-interface tcpdump logs from that unique path
  • keep the legacy count-file fallback for direct PTF invocations

Why

Concurrent parametrized stress runs can otherwise share /tmp paths by packet type and interface, allowing one run to overwrite or remove another run's count/log files.

Validation

  • python3 -m py_compile ansible/roles/test/files/ptftests/py3/dhcp_relay_stress_test.py tests/dhcp_relay/test_dhcp_relay_stress.py
  • git diff --check -- ansible/roles/test/files/ptftests/py3/dhcp_relay_stress_test.py tests/dhcp_relay/test_dhcp_relay_stress.py

@ashutosh-agrawal
ashutosh-agrawal marked this pull request as ready for review July 15, 2026 22:56
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.

1 participant