You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run a pytest, e.g. ./run_tests.sh -n vms-kvm-t0 -d vlab-01 -c bgp/test_bgp_fact.py -f vtestbed.csv -i veos_vtb -e "--neighbor_type=sonic"
Describe the results you received:
Error message says the VM0100 doesn't have a valid interface Ethernet1 (because Ethernet1 doesn't exists in SONiC VM).
E RunAnsibleModuleFail: run module command failed, Ansible Results =>
E {
E "changed": true,
E "cmd": [
E "sudo",
E "config",
E "interface",
E "startup",
E "Ethernet1"
E ],
E "delta": "0:00:00.452509",
E "end": "2021-10-08 02:53:28.062707",
E "failed": true,
E "invocation": {
E "module_args": {
E "_raw_params": "sudo config interface startup Ethernet1",
E "_uses_shell": false,
E "argv": null,
E "chdir": null,
E "creates": null,
E "executable": null,
E "removes": null,
E "stdin": null,
E "stdin_add_newline": true,
E "strip_empty_ends": true,
E "warn": true
E }
E },
E "msg": "non-zero return code",
E "rc": 2,
E "start": "2021-10-08 02:53:27.610198",
E "stderr": "Usage: config interface startup [OPTIONS] <interface_name>\nTry \"config interface startup -h\" for help.\n\nError: Interface name is invalid. Please enter a valid interface name!!",
E "stderr_lines": [
E "Usage: config interface startup [OPTIONS] <interface_name>",
E "Try \"config interface startup -h\" for help.",
E "",
E "Error: Interface name is invalid. Please enter a valid interface name!!"
E ],
E "stdout": "",
E "stdout_lines": [],
E "warnings": [
E "Consider using 'become', 'become_method', and 'become_user' rather than running sudo"
E ]
E }
complex_args = {}
filename = '/data/sonic-mgmt/tests/common/devices/sonic.py'
function_name = 'no_shutdown'
index = 0
line_number = 818
lines = [' return self.command("sudo config interface startup {}".format(ifname))\n']
module_args = ('sudo config interface startup Ethernet1',)
module_async = False
module_ignore_errors = False
previous_frame = <frame object at 0x55ffb6b55720>
res = {'stderr_lines': [u"Usage: config interface startup [OPTIONS] <interface_name>... using 'become', 'become_method', and 'become_user' rather than running sudo"]}
self = <SonicHost> VM0100
verbose = True
common/devices/base.py:89: RunAnsibleModuleFail</error></testcase></testsuite>
@xjasonlyu can you confirm that you are deploying (add-topo) with -k vsonic specified? Could it be that you deployed a testbed with ceos but trying to run test with setting neighbor type to sonic? @Pterosaur can help you further.
Description
Failed to complete a pytest when using SONiC image as the neighbor devices.
Steps to reproduce the issue:
./run_tests.sh -n vms-kvm-t0 -d vlab-01 -c bgp/test_bgp_fact.py -f vtestbed.csv -i veos_vtb -e "--neighbor_type=sonic"
Describe the results you received:
Error message says the VM0100 doesn't have a valid interface
Ethernet1
(becauseEthernet1
doesn't exists in SONiC VM).Describe the results you expected:
Pass the pytest successfully.
Additional information you deem important:
Output of
show version
:The text was updated successfully, but these errors were encountered: