Skip to content

[action] [PR:3743] Fix ssdhealth failure on multi-asic VS platform#3744

Merged
kperumalbfn merged 1 commit intosonic-net:202411from
mssonicbld:cherry/202411/3743
Jan 31, 2025
Merged

[action] [PR:3743] Fix ssdhealth failure on multi-asic VS platform#3744
kperumalbfn merged 1 commit intosonic-net:202411from
mssonicbld:cherry/202411/3743

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

What I did

show platform ssdhealth is failing on multi asic vs platform

E sys.exit(cli())
E ^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 764, in call
E return self.main(*args, **kwargs)
E ^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 717, in main
E rv = self.invoke(ctx)
E ^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1137, in invoke
E return _process_result(sub_ctx.command.invoke(sub_ctx))
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1137, in invoke
E return _process_result(sub_ctx.command.invoke(sub_ctx))
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 956, in invoke
E return ctx.invoke(self.callback, **ctx.params)
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 555, in invoke
E return callback(*args, **kwargs)
E ^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/show/platform.py", line 117, in ssdhealth
E device = platform_data.get("chassis", {}).get("disk", {}).get("device", None)
E ^^^^^^^^^^^^^^^^^
E AttributeError: 'NoneType' object has no attribute 'get'

<!--
    Please make sure you've read and understood our contributing guidelines:
    https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

    ** Make sure all your commits include a signature generated with `git commit -s` **

    If this is a bug fix, make sure your description includes "closes #xxxx",
    "fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related
    issue when the PR is merged.

    If you are adding/modifying/removing any command or utility script, please also
    make sure to add/modify/remove any unit tests from the tests
    directory as appropriate.

    If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'
    subcommand, or you are adding a new subcommand, please make sure you also
    update the Command Line Reference Guide (doc/Command-Reference.md) to reflect
    your changes.

    Please provide the following information:
-->

#### What I did

show platform ssdhealth is failing on multi asic vs platform

```
E sys.exit(cli())
E ^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 764, in call
E return self.main(*args, **kwargs)
E ^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 717, in main
E rv = self.invoke(ctx)
E ^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1137, in invoke
E return _process_result(sub_ctx.command.invoke(sub_ctx))
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1137, in invoke
E return _process_result(sub_ctx.command.invoke(sub_ctx))
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 956, in invoke
E return ctx.invoke(self.callback, **ctx.params)
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 555, in invoke
E return callback(*args, **kwargs)
E ^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/usr/local/lib/python3.11/dist-packages/show/platform.py", line 117, in ssdhealth
E device = platform_data.get("chassis", {}).get("disk", {}).get("device", None)
E ^^^^^^^^^^^^^^^^^
E AttributeError: 'NoneType' object has no attribute 'get'
```
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #3743

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@kperumalbfn kperumalbfn merged commit 674691d into sonic-net:202411 Jan 31, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants