Skip to content

[warm_reboot_multi_sad_inboot] Test is failing because "ValueError: invalid literal for int() with base 10" #2348

@shlomibitton

Description

@shlomibitton

Description

'warm_reboot_multi_sad_inboot' test is failing because "ValueError: invalid literal for int() with base 10" exception on
"verify_route_cnt" function during the test. I have recorded the values during the test of the argument need to be cast to int, sometimes values like this appear and causing the exception:

neigh_ip : -----------
rt_cnt : --------------
neigh_rt_map[neigh_ip] : ----------------

Steps to reproduce the issue:

  1. Run 'warm_reboot_multi_sad_inboot'.
  2. Observe the exception during the test run.

Describe the results you received:

"======================================================================",
"ERROR: advanced-reboot.ReloadTest",
"----------------------------------------------------------------------",
"Traceback (most recent call last):",
" File "ptftests/advanced-reboot.py", line 509, in setUp",
" self.init_sad_oper()",
" File "ptftests/advanced-reboot.py", line 432, in init_sad_oper",
" log_info, fails = self.sad_handle.verify()",
" File "ptftests/sad_path.py", line 35, in verify",
" self.shandle.verify_route_add(pre_check=pre_check, inboot=inboot)",
" File "ptftests/sad_path.py", line 358, in verify_route_add",
" self.verify_route_cnt(rt_incr, is_up=pre_check)",
" File "ptftests/sad_path.py", line 346, in verify_route_cnt",
" exp_cnt = int(self.neigh_rt_map[neigh_ip]) + rt_incr",
"ValueError: invalid literal for int() with base 10: '--------------'",
"",
"----------------------------------------------------------------------",
"Ran 1 test in 11.002s",
"",
"FAILED (errors=1)"

Describe the results you expected:

Test should pass with no exections.

Additional information you deem important:

**Output of `show version`:**

```

SONiC Software Version: SONiC.201911.215-bd61e381
Distribution: Debian 9.13
Kernel: 4.9.0-11-2-amd64
Build commit: bd61e38
Build date: Mon Oct 12 01:28:02 UTC 2020
Built by: johnar@jenkins-worker-8

Platform: x86_64-mlnx_msn2740-r0
HwSKU: ACS-MSN2740
ASIC: mellanox
Serial Number: MT1719X00480
Uptime: 11:40:58 up 1:44, 1 user, load average: 1.72, 2.39, 2.36

Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-mlnx 201911.215-bd61e381 6f6a5c689e07 397MB
docker-syncd-mlnx latest 6f6a5c689e07 397MB
docker-router-advertiser 201911.215-bd61e381 d3070afd0ec8 289MB
docker-router-advertiser latest d3070afd0ec8 289MB
docker-sonic-mgmt-framework 201911.215-bd61e381 e153ee452e42 431MB
docker-sonic-mgmt-framework latest e153ee452e42 431MB
docker-platform-monitor 201911.215-bd61e381 7122bb0727dd 664MB
docker-platform-monitor latest 7122bb0727dd 664MB
docker-fpm-frr 201911.215-bd61e381 11bbafd58a34 335MB
docker-fpm-frr latest 11bbafd58a34 335MB
docker-sflow 201911.215-bd61e381 dd9f81fe35c4 315MB
docker-sflow latest dd9f81fe35c4 315MB
docker-lldp-sv2 201911.215-bd61e381 fb1759df0a8e 312MB
docker-lldp-sv2 latest fb1759df0a8e 312MB
docker-dhcp-relay 201911.215-bd61e381 1e055a4d614d 299MB
docker-dhcp-relay latest 1e055a4d614d 299MB
docker-database 201911.215-bd61e381 751f726626e6 289MB
docker-database latest 751f726626e6 289MB
docker-teamd 201911.215-bd61e381 1bdfd20a4552 314MB
docker-teamd latest 1bdfd20a4552 314MB
docker-snmp-sv2 201911.215-bd61e381 f1163774dbf3 348MB
docker-snmp-sv2 latest f1163774dbf3 348MB
docker-orchagent 201911.215-bd61e381 39b2fea8025c 333MB
docker-orchagent latest 39b2fea8025c 333MB
docker-nat 201911.215-bd61e381 ec0320d1708f 316MB
docker-nat latest ec0320d1708f 316MB
docker-sonic-telemetry 201911.215-bd61e381 4946ad193683 353MB
docker-sonic-telemetry latest 4946ad193683 353MB
```

**Attach debug file `sudo generate_dump`:**

```

sonic_dump_arc-switch1041_20201015_113114.tar.gz
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions