Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-106941

Incorrect parent check when unlocking encrypted dateset

    XMLWordPrintable

    Details

    • Impact:
      Low

      JEditor

        Description

        I have two encypted datesets tank/enc and tank/enctest. If both are locked, unlocking enctest fails with the following trackback:

        Error: Traceback (most recent call last):
          File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 361, in run
            await self.future
          File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 399, in __run_body
            rv = await self.middleware.run_in_thread(self.method, *([self] + 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/python3.8/site-packages/middlewared/plugins/pool.py", line 2210, in unlock
            raise CallError(f'{id} has locked parents {",".join(locked_datasets)} which must be unlocked first')
        middlewared.service_exception.CallError: [EFAULT] tank/enctest has locked parents tank/enc which must be unlocked first

        It works fine if the dataset name does not start with the name of a locked dataset.

          Attachments

            Attachments

              Activity

                People

                Assignee:
                waqar Waqar Ahmed
                Reporter:
                bb Billy Bednar
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: