Skip to content

test_po_update failure on conifg_reload #7313

@anamehra

Description

@anamehra

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):
    &quot;&quot;&quot;
    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 &apos;unexpected keyword argument error&apos;,
        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.
    &quot;&quot;&quot;

    loganalyzer = None
    if &apos;ignore_loganalyzer&apos; in kwargs and kwargs[&apos;ignore_loganalyzer&apos;] is not None:
        loganalyzer = kwargs[&apos;ignore_loganalyzer&apos;]
        kwargs.pop(&apos;ignore_loganalyzer&apos;)

    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)
```

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions