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
The show_techsupport/test_auto_techsupport.py::TestAutoTechSupport::test_max_limit[core] test creates huge core files. When /tmp is on tmpfs and available memory is low, it crashes the device.
Steps to reproduce the issue:
Set /tmp folder to be tmpfs
Run tests/show_techsupport/test_auto_techsupport.py::TestAutoTechSupport::test_max_limit[core] on KVM
Describe the results you received:
Filesystem Information and Free Memory During test progression:
The available memory is exhausted when large core files are created, leading to a system crash. This causes the DUT to be unreachable:
27/11/2024 06:24:39 __init__._fixture_generator_decorator L0099 ERROR |
Host unreachable in the inventory
Traceback (most recent call last):
File "/var/src/sonic-mgmt/tests/common/plugins/log_section_start/__init__.py", line 95, in _fixture_generator_decorator
next(it)
File "/var/src/sonic-mgmt/tests/show_techsupport/test_auto_techsupport.py", line 125, in global_rate_limit_zero
set_auto_techsupport_global(self.duthost, rate_limit=DEFAULT_RATE_LIMIT_GLOBAL)
File "/var/src/sonic-mgmt/tests/show_techsupport/test_auto_techsupport.py", line 564, in set_auto_techsupport_global
duthost.shell(cmd)
File "/var/src/sonic-mgmt/tests/common/devices/multi_asic.py", line 135, in _run_on_asics
return getattr(self.sonichost, self.multi_asic_attr)(*module_args, **complex_args)
File "/var/src/sonic-mgmt/tests/common/devices/base.py", line 105, in _run
res = self.module(*module_args, **complex_args)[self.hostname]
File "/usr/local/lib/python3.8/dist-packages/pytest_ansible/module_dispatcher/v213.py", line 232, in _run
raise AnsibleConnectionFailure(
pytest_ansible.errors.AnsibleConnectionFailure: Host unreachable in the inventory
Describe the results you expected:
show techsupport to pass
Output of show version:
(paste your output here)
Output of show techsupport:
(paste your output here or download and attach the file here )
Additional information you deem important (e.g. issue happens only occasionally):
show techsupport could generate sonic dumps in /var/tmp which is on disk, as opposed to /tmp which could be tmpfs. This would resolve the issue. @prabhataravind@prgeor@saiarcot895
Description
The
show_techsupport/test_auto_techsupport.py::TestAutoTechSupport::test_max_limit[core]
test creates huge core files. When /tmp is on tmpfs and available memory is low, it crashes the device.Steps to reproduce the issue:
Describe the results you received:
Filesystem Information and Free Memory During test progression:
The available memory is exhausted when large core files are created, leading to a system crash. This causes the DUT to be unreachable:
Describe the results you expected:
show techsupport
to passOutput of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
Related issue: #15051
The text was updated successfully, but these errors were encountered: