Skip to content

Bug: vnet and PL redirect DASH Tests are failing because this command failure: config loopback add Loopback0', 'config int ip add Loopback0 10.1.0.5/32', 'ip route replace default via ' #23311

@aronovic

Description

@aronovic

Is it platform specific

generic

Importance or Severity

High

Description of the bug

After PR 22902 was merged, the following DASH tests are failing:
tests/dash/test_dash_smartswitch_vnet.py
tests/dash/test_dash_privatelink_redirect.py
Reason is that these tests are using a local fixture dpu_setup_vnet instead of the one that is common to all other dash tests and it is in conftest.py file where this has been fixed.

This command cmds.append(f"config route add prefix {pl.APPLIANCE_VIP}/32 nexthop {dpuhost.dpu_data_port_ip}") is giving an error becuase of empty dpuhost.dpu_data_port_ip string

Steps to Reproduce

Execute any of the DASH tests like: tests/dash/test_dash_smartswitch_vnet.py

Actual Behavior and Expected Behavior

Expected test should pass.

Relevant log output

ests.common.errors.RunAnsibleModuleFail: run module shell_cmds failed, Ansible Results =>
failed = True
cmds = ['config loopback add Loopback0', 'config int ip add Loopback0 10.1.0.5/32', 'ip route replace default via ']
failed_cmds = ['ip route replace default via ']
results = [{'cmd': 'config loopback add Loopback0', 'cmd_with_timeout': '', 'err_msg': '', 'rc': 0, 'stdout': '', 'stderr': '', 'stdout_lines': [], 'stderr_lines': [], 'timeout': 0, 'start': '2026-03-25 10:15:07.221735', 'end': '2026-03-25 10:15:07.938558'}, {'cmd': 'config int ip add Loopback0 10.1.0.5/32', 'cmd_with_timeout': '', 'err_msg': '', 'rc': 0, 'stdout': '', 'stderr': '', 'stdout_lines': [], 'stderr_lines': [], 'timeout': 0, 'start': '2026-03-25 10:15:07.938625', 'end': '2026-03-25 10:15:08.658058'}, {'cmd': 'ip route replace default via ', 'cmd_with_timeout': '', 'err_msg': '', 'rc': 255, 'stdout': '', 'stderr': 'Command line is not complete. Try option "help"\n', 'stdout_lines': [], 'stderr_lines': ['Command line is not complete. Try option "help"'], 'timeout': 0, 'start': '2026-03-25 10:15:08.658125', 'end': '2026-03-25 10:15:08.667183'}]
start = 2026-03-25 10:15:07.221720
end = 2026-03-25 10:15:08.667246
delta = 0:00:01.445526
msg = At least running one of the commands failed
invocation = {'module_args': {'cmds': ['config loopback add Loopback0', 'config int ip add Loopback0 10.1.0.5/32', 'ip route replace default via '], 'continue_on_fail': True, 'timeout': 0}}
_ansible_no_log = False
changed = False
stdout =
stderr

Output of show version

Attach files (if any)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions