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

error when deleting iscsi authorised access group

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: Master - FreeNAS Nightlies
    • Fix Version/s: 12.0-BETA1
    • Component/s: Middleware
    • Labels:
      None

      Description

      Invalid filter ['tag', '=', 1, ['id', '!=', 1]]


      Error: Traceback (most recent call last):
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 135, 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 1166, in _call
      return await methodobj(*args)
      File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 465, in delete
      rv = await self.middleware._call(
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1166, in _call
      return await methodobj(*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/iscsi.py", line 385, in do_delete
      if not await self.query([['tag', '=', config['tag'], ['id', '!=', id]]]):
      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/service.py", line 443, in query
      return await self.middleware.call(
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1221, in call
      return await self._call(
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1166, in _call
      return await methodobj(*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/datastore/read.py", line 101, in query
      qs = qs.where(and_(*self._filters_to_queryset(filters, table, prefix, aliases)))
      File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/datastore/filter.py", line 53, in _filters_to_queryset
      raise ValueError('Invalid filter

      {0}

      '.format(f))
      ValueError: Invalid filter ['tag', '=', 1, ['id', '!=', 1]]

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                waqar Waqar Ahmed
                Reporter:
                BeardyDude Simon Cogan
                Watchers:
                Bug Clerk, Simon Cogan
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: