Description
During the config_reload from test_po_update, seeing following error:
args = (<MultiAsicSonicHost sfd-vt2-lc0>,)
kwargs = {'ignore_loganalyzer': None, 'safe_reload': True}, loganalyzer = None
@wraps(func)
def decorated(*args, **kwargs):
"""
try to fetch loganalyzer instances from kwargs:
if ignore_loganalyzer is not passed, do nothing but execute the decorated function.
if ignore_loganalyzer is passed, to avoid 'unexpected keyword argument error',
delete the ignore_loganalyzer from kwargs so that it would not be passed to the decorated function,
and set ignore_loganalyzer markers before and after the decorated function on all log analyzer instances.
"""
loganalyzer = None
if 'ignore_loganalyzer' in kwargs and kwargs['ignore_loganalyzer'] is not None:
loganalyzer = kwargs['ignore_loganalyzer']
kwargs.pop('ignore_loganalyzer')
if loganalyzer:
for _, dut_loganalyzer in loganalyzer.items():
dut_loganalyzer.add_start_ignore_mark()
> res = func(*args, **kwargs)
E TypeError: config_reload() got an unexpected keyword argument 'ignore_loganalyzer'
args = (<MultiAsicSonicHost sfd-vt2-lc0>,)
func = <function config_reload at 0x7fd9c2a4c4d0>
kwargs = {'ignore_loganalyzer': None, 'safe_reload': True}
loganalyzer = None
Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Additional information you deem important:
**Output of `show version`:**
Using sonic-mgmt 202205 sha 15d9388
```
(paste your output here)
```
**Attach debug file `sudo generate_dump`:**
```
(paste your output here)
```
Description
During the config_reload from test_po_update, seeing following error:
args = (<MultiAsicSonicHost sfd-vt2-lc0>,)
kwargs = {'ignore_loganalyzer': None, 'safe_reload': True}, loganalyzer = None
> res = func(*args, **kwargs)
E TypeError: config_reload() got an unexpected keyword argument 'ignore_loganalyzer'
args = (<MultiAsicSonicHost sfd-vt2-lc0>,)
func = <function config_reload at 0x7fd9c2a4c4d0>
kwargs = {'ignore_loganalyzer': None, 'safe_reload': True}
loganalyzer = None
Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Additional information you deem important:
Using sonic-mgmt 202205 sha 15d9388