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

zfs.snapshot.create not working as expected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Engineering Closed (View Workflow)
    • Priority: Low
    • Resolution: Behaves as Intended
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: Middleware
    • Labels:
      None

      Description

      Having difficulties creating a snapshot with zfs.snapshot.create . Seems this used to be done with the REST call storage/snapshot, which still works unless "naming_schema" is provided.

      UI code is normative:

      this.ws.call('zfs.snapshot.create', [snapshot])

       

      Example message to MW:

      {

        ...

        'params': [{

          'dataset': 'zpool/2PAC-2nkcxo',

          'name': 'test_ss',

          'recursive': False

        }]

      }

       

      // middlewared.log output

      [2019/06/25 07:07:48] (ERROR) asyncio.default_exception_handler():1608 - Task exception was never retrieved

      future: <Task finished coro=<Application.call_method() done, defined at /usr/local/lib/python3.7/site-packages/middlewared/main.py:168> exception=KeyError('method')>
      Traceback (most recent call last):
        File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 172, in call_method
          result = await self.middleware.call_method(self, message)
        File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1143, in call_method
          serviceobj, methodobj = self._method_lookup(message['method'])
      KeyError: 'method'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 208, in call_method
          message['method'],
      KeyError: 'method'

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  william William Grzybowski
                  Reporter:
                  aervin Aaron Ervin
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: