Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove \n from the end of fs_path in ONIEUpdater #12465

Merged
merged 1 commit into from
Oct 23, 2022

Conversation

stephenxs
Copy link
Collaborator

This fixes the following error

admin@sonic:~$ sudo fwutil show status
mount: /mnt/onie-fs: special device /dev/sda2
 does not exist.
Error: Command '['mount', '-n', '-r', '-t', 'ext4', '/dev/sda2\n', '/mnt/onie-fs']' returned non-zero exit status 32.. Aborting...
Aborted!
admin@sonic:~$ sudo vi /usr/local/lib/python3.9/dist-packages/sonic_platform/

Signed-off-by: Stephen Sun stephens@nvidia.com

Why I did it

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

This fixes the following error

```
admin@sonic:~$ sudo fwutil show status
mount: /mnt/onie-fs: special device /dev/sda2
 does not exist.
Error: Command '['mount', '-n', '-r', '-t', 'ext4', '/dev/sda2\n', '/mnt/onie-fs']' returned non-zero exit status 32.. Aborting...
Aborted!
admin@sonic:~$ sudo vi /usr/local/lib/python3.9/dist-packages/sonic_platform/

```

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs stephenxs requested a review from lguohan as a code owner October 21, 2022 03:32
@stephenxs stephenxs requested a review from keboliu October 21, 2022 03:33
@stephenxs stephenxs marked this pull request as draft October 21, 2022 03:33
@stephenxs stephenxs marked this pull request as ready for review October 21, 2022 06:34
@liat-grozovik
Copy link
Collaborator

@stephenxs much appreciate the finding and fix. Do you know what cause that degradation? It for sure worked in the past. Is there any offending commit we can understand it? Missing test in PR checker?

@stephenxs
Copy link
Collaborator Author

@stephenxs much appreciate the finding and fix. Do you know what cause that degradation? It for sure worked in the past. Is there any offending commit we can understand it? Missing test in PR checker?

Yes. In #11877 the rstrip('\n') was removed. I think it's by mistake.

@liat-grozovik liat-grozovik merged commit 8c73e68 into sonic-net:master Oct 23, 2022
@stephenxs stephenxs deleted the rstrip-cr branch October 23, 2022 10:24
@qiluo-msft
Copy link
Collaborator

Thanks @stephenxs for the bug identification and quick fixing!

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.

3 participants