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

traceback on Initiators Add page when no network specified

    XMLWordPrintable

Details

    • Defect
    • Status: Done (View Workflow)
    • Low
    • Resolution: Complete
    • 11.3-RC2
    • 11.3-RC2
    • WebUI
    • None

    Description

      Traceback occures when trying to save a manually added initiator without an authorized network.  The save button should not be accessable without all the needed elements filled in.

      Error: Traceback (most recent call last):
        File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 128, in call_method
          result = await self.middleware.call_method(self, message)
        File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1113, in call_method
          return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
        File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1061, in _call
          return await methodobj(*args)
        File "/usr/local/lib/python3.7/site-packages/middlewared/service.py", line 396, in create
          f'{self._config.namespace}.create', self, self.do_create, [data]
        File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1061, in _call
          return await methodobj(*args)
        File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 949, in nf
          return await f(*args, **kwargs)
        File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/iscsi.py", line 982, in do_create
          await self.compress(data)
        File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/iscsi.py", line 1043, in compress
          initiators = 'ALL' if not initiators else '\n'.join(initiators)
      TypeError: sequence item 0: expected str instance, NoneType found
      

      Attachments

        Attachments

          JEditor

            Activity

              People

                lola Lola Yang (Inactive)
                jt Justin Pennington
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: