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

Deleting in SCALE a dataset return 500 with tuple indices must be integers or slices, not str

    XMLWordPrintable

    Details

      Description

       

      Error Message
      
      AssertionError: {    "message": "tuple indices must be integers or slices, not str",    "traceback": "Traceback (most recent call last):\n  File \"/usr/lib/python3/dist-packages/middlewared/restful.py\", line 573, in do\n    result = await self.middleware.call(methodname, *method_args, **method_kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/service.py\", line 523, in delete\n    rv = await self.middleware._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/schema.py\", line 1001, in nf\n    return await f(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/pool.py\", line 3360, in do_delete\n    attachments = await delegate.query(path, True)\n  File \"/usr/lib/python3/dist-packages/middlewared/common/attachment/__init__.py\", line 94, in query\n    for resource in await self.middleware.call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/schema.py\", line 1001, in nf\n    return await f(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/service.py\", line 488, in query\n    result = await self.middleware.call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/schema.py\", line 1001, in nf\n    return await f(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py\", line 164, in query\n    result = await self._queryset_serialize(\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py\", line 216, in _queryset_serialize\n    return [\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py\", line 217, in <listcomp>\n    await self._extend(data, extend, extend_context, extend_context_value, select)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py\", line 230, in _extend\n    data = await self.middleware.call(extend, data, extend_context_value)\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/service.py\", line 674, in sharing_task_extend\n    data = await self.middleware.call(self._config.datastore_extend, *args)\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/rsync.py\", line 306, in rsync_task_extend\n    data['job'] = context['jobs'].get(data['id'])\nTypeError: tuple indices must be integers or slices, not str\n"   } assert 500 == 200   -500   +200
      
      Stacktrace
      
      request = <FixtureRequest for <Function test_08_delete_s3_dataset>>
      
          def test_08_delete_s3_dataset(request):
              depends(request, ["pool_04"], scope="session")
              results = DELETE(f"/pool/dataset/id/{dataset_url}/")
      >       assert results.status_code == 200, results.text
      E       AssertionError: {
      E          "message": "tuple indices must be integers or slices, not str",
      E          "traceback": "Traceback (most recent call last):\n  File \"/usr/lib/python3/dist-packages/middlewared/restful.py\", line 573, in do\n    result = await self.middleware.call(methodname, *method_args, **method_kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/service.py\", line 523, in delete\n    rv = await self.middleware._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/schema.py\", line 1001, in nf\n    return await f(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/pool.py\", line 3360, in do_delete\n    attachments = await delegate.query(path, True)\n  File \"/usr/lib/python3/dist-packages/middlewared/common/attachment/__init__.py\", line 94, in query\n    for resource in await self.middleware.call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/schema.py\", line 1001, in nf\n    return await f(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/service.py\", line 488, in query\n    result = await self.middleware.call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/schema.py\", line 1001, in nf\n    return await f(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py\", line 164, in query\n    result = await self._queryset_serialize(\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py\", line 216, in _queryset_serialize\n    return [\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py\", line 217, in <listcomp>\n    await self._extend(data, extend, extend_context, extend_context_value, select)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py\", line 230, in _extend\n    data = await self.middleware.call(extend, data, extend_context_value)\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/service.py\", line 674, in sharing_task_extend\n    data = await self.middleware.call(self._config.datastore_extend, *args)\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1239, in call\n    return await self._call(\n  File \"/usr/lib/python3/dist-packages/middlewared/main.py\", line 1196, in _call\n    return await methodobj(*prepared_call.args)\n  File \"/usr/lib/python3/dist-packages/middlewared/plugins/rsync.py\", line 306, in rsync_task_extend\n    data['job'] = context['jobs'].get(data['id'])\nTypeError: tuple indices must be integers or slices, not str\n"
      E         }
      E       assert 500 == 200
      E         -500
      E         +200
      
      api2/test_390_s3.py:94: AssertionError

       

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  releng Triage Team
                  Reporter:
                  eturgeon Eric Turgeon
                  Watchers:
                  Eric Turgeon, William Grzybowski
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: