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

removebrick STATUS broken in upstream module

    XMLWordPrintable

    Details

      Description

      sc01# midclt call gluster.volume.removebrick '{"name": "gvol3", "operation": "STATUS", "bricks": [{"peer_name": "192.168.1.188", "peer_path": "/mnt/cargo/.glusterfs/gvol4/brick0"}]}'
      'NoneType' object has no attribute 'find'
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 138, in call_method
          result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1196, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1001, in nf
          return await f(*args, **kwargs)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/gluster_linux/volume.py", line 379, in removebrick
          return await self.middleware.call('gluster.method.run', method, options)
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1239, in call
          return await self._call(
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1207, in _call
          return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1111, in run_in_executor
          return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
        File "/usr/lib/python3/dist-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
          result = self.fn(*self.args, **self.kwargs)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/gluster_linux/run.py", line 24, in run
          result = func(*args, **kwargs)
        File "/usr/lib/python3/dist-packages/glustercli/cli/bricks.py", line 128, in remove_status
          return parse_remove_brick_status(volume_execute_xml(cmd))
        File "/usr/lib/python3/dist-packages/glustercli/cli/parsers.py", line 602, in parse_remove_brick_status
          result = {'nodes': [], 'aggregate': _parse_remove_aggregate(
        File "/usr/lib/python3/dist-packages/glustercli/cli/parsers.py", line 630, in _parse_remove_aggregate
          'files': aggregate_el.find('files').text,
      AttributeError: 'NoneType' object has no attribute 'find'

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                caleb Caleb St. John
                Reporter:
                caleb Caleb St. John
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: