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

update.check_available tracebacks on TN HA

    XMLWordPrintable

    Details

      Description

      update.check_available returns the following traceback when the standby controller is down for whatever reason.

      "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 1172, in _call
          return await run_method(methodobj, *args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1097, in _run_in_conn_threadpool
          return await self.run_in_executor(self.__ws_threadpool, method, *args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1085, in run_in_executor
          return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
        File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
          result = self.fn(*self.args, **self.kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 977, in nf
          return f(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/update.py", line 441, in check_available
          self.middleware.call_sync(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1228, in call_sync
          return self.run_coroutine(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1255, in run_coroutine
          return fut.result()
        File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 432, in result
          return self.__get_result()
        File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
          raise self._exception
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1172, in _call
          return await run_method(methodobj, *args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
          return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
        File "/usr/local/lib/python3.8/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.8/site-packages/middlewared/schema.py", line 977, in nf
          return f(*args, **kwargs)
        File "/usr/local/lib/middlewared_truenas/plugins/failover_/remote.py", line 213, in call_remote
          return self.CLIENT.call(method, *args, **options)
        File "/usr/local/lib/middlewared_truenas/plugins/failover_/remote.py", line 120, in call
          raise CallError('Remote connection unavailable', errno.ECONNREFUSED)
      middlewared.service_exception.CallError: [ECONNREFUSED] Remote connection unavailable

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                caleb Caleb St. John
                Reporter:
                caleb Caleb St. John
                Watchers:
                Bug Clerk, Caleb St. John
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: