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

Investigate/fix test_show_platform_ssdhealth failure #4786

Open
neethajohn opened this issue Nov 30, 2021 · 2 comments
Open

Investigate/fix test_show_platform_ssdhealth failure #4786

neethajohn opened this issue Nov 30, 2021 · 2 comments

Comments

@neethajohn
Copy link
Contributor

Regression on .44. Testcase was passing till .43

admin@str2-7050qx-32s-acs-02:~$ show platform ssdhealth      
Traceback (most recent call last):
  File "/usr/local/bin/ssdutil", line 8, in <module>
    sys.exit(ssdutil())
  File "/usr/local/lib/python3.7/dist-packages/ssdutil/main.py", line 68, in ssdutil
    ssd = import_ssd_api(args.device)
  File "/usr/local/lib/python3.7/dist-packages/ssdutil/main.py", line 47, in import_ssd_api
    return SsdUtil(diskdev)
  File "/usr/local/lib/python3.7/dist-packages/sonic_platform_base/sonic_ssd/ssd_generic.py", line 48, in __init__
    self.parse_generic_ssd_info()
  File "/usr/local/lib/python3.7/dist-packages/sonic_platform_base/sonic_ssd/ssd_generic.py", line 80, in parse_generic_ssd_info
    self.model = self._parse_re('Device Model:\s*(.+?)\n', self.ssd_info)
  File "/usr/local/lib/python3.7/dist-packages/sonic_platform_base/sonic_ssd/ssd_generic.py", line 72, in _parse_re
    res_list = re.findall(pattern, buffer)
  File "/usr/lib/python3.7/re.py", line 223, in findall
    return _compile(pattern, flags).findall(string)
TypeError: expected string or bytes-like object
@neethajohn
Copy link
Contributor Author

Checking with Vaibhav. D

@neethajohn
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant