Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-107129

SMART test results doesn't handle 0 results

    XMLWordPrintable

    Details

    • Impact:
      Low

      Description

      Storege -> Disks -> S.M.A.R.T. Test Results

      If a SMART test has never been run on the selected disk, you get the following error:

      Error: Traceback (most recent call last):
        File "/usr/local/lib/python3.8/site-packages/middlewared/utils/__init__.py", line 201, in filter_list
          return rv[0]
      IndexError: list index out of range
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
          result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1187, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
          return await f(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/smart.py", line 545, in results
          return filter_list(
        File "/usr/local/lib/python3.8/site-packages/middlewared/utils/__init__.py", line 203, in filter_list
          raise MatchNotFound()
      middlewared.service_exception.MatchNotFound
      

       

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  lola Lola Yang (Inactive)
                  Reporter:
                  bb Billy Bednar
                  Watchers:
                  Billy Bednar, Bug Clerk, Joe Maloney, Maximilian Doerr, William Grzybowski
                  Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: