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

Sync enclosure traceback

    XMLWordPrintable

    Details

      Description

      [2020/01/13 13:25:22] (ERROR) middlewared.call_hook():982 - Failed to run hook devd.zfs:<function devd_zfs
      _hook at 0x82f18e5f0>(*(), **{'data': {'system': 'ZFS', 'subsystem': 'ZFS', 'type': 'misc.fs.zfs.config_sy
      nc', 'pool_name': 'merlin', 'pool_guid': '13319930983615111418'}})
      Traceback (most recent call last):
      File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 977, in call_hook
      await fut
      File "/usr/local/lib/middlewared_truenas/plugins/enclosure.py", line 1121, in devd_zfs_hook
      await middleware.call('enclosure.sync_zpool')
      File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1127, in call
      app=app, pipes=pipes, job_on_progress_cb=job_on_progress_cb, io_thread=True,
      File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1091, in _call
      return await run_method(methodobj, *args)
      File "/usr/local/lib/python3.7/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thr
      ead
      return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, *
      *kwargs))
      File "/usr/local/lib/python3.7/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in
      run
      result = self.fn(*self.args, **self.kwargs)
      File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 953, in nf
      return f(*args, **kwargs)
      File "/usr/local/lib/middlewared_truenas/plugins/enclosure.py", line 185, in sync_zpool
      label = dev["path"].replace("/dev/")
      TypeError: replace() takes at least 2 arguments (1 given)

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                vladimirv Vladimir Vinogradenko
                Reporter:
                william William Grzybowski
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: