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

Fix traceback when wiping disk

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: 11.2-U5, TrueNAS 11.2-U5
    • Fix Version/s: 11.2-U5
    • Component/s: Middleware
    • Labels:
      None
    • Attempts to pass:
      1
    • Testing System:
      X10-HA
    • QA Status:
      Test Passes TrueNAS
    • Acceptance Criteria:
      Traceback should no longer occur.

      Description

      Seen in TrueNAS 11.2-Internal14

      I attempted to wipe 2 disks (on at a time) that were not in use. I got the following traceback:

      Traceback

      Request Method: POST
      Request URL: http://tn13.lab.ixsystems.com/legacy/storage/disks/wipe/da3/
      Software Version: TrueNAS-11.2-INTERNAL-14 (e6842b1b5)
      Exception Type: MiddlewareError
      Exception Value: [MiddlewareError: Disk wipe job failed: wipe() missing 1 required positional argument: 'sync']
      Exception Location: ./freenasUI/storage/views.py in disk_wipe, line 866
      Server time: Tue, 11 Jun 2019 14:35:01 -0400
       
      Environment:

      Software Version: TrueNAS-11.2-INTERNAL-14 (e6842b1b5)
      Request Method: POST
      Request URL: http://tn13.lab.ixsystems.com/legacy/storage/disks/wipe/da3/

      Traceback:
      File "./freenasUI/storage/views.py" in disk_wipe
      862. wait_job(c, DISK_WIPE_JOB_ID)
      File "./freenasUI/storage/views.py" in disk_wipe
      862. wait_job(c, DISK_WIPE_JOB_ID)
      File "./freenasUI/middleware/util.py" in wait_job
      29. raise JobFailed(job['error'])
      File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
      42. response = get_response(request)
      File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
      249. response = self._get_response(request)
      File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
      178. response = middleware_method(request, callback, callback_args, callback_kwargs)
      File "./freenasUI/freeadmin/middleware.py" in process_view
      163. return login_required(view_func)(request, *view_args, **view_kwargs)
      File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
      23. return view_func(request, *args, **kwargs)
      File "./freenasUI/storage/views.py" in disk_wipe
      866. raise MiddlewareError(_('Disk wipe job failed: %s') % str(e.value))

      Exception Type: MiddlewareError at /legacy/storage/disks/wipe/da3/
      Exception Value: [MiddlewareError: Disk wipe job failed: wipe() missing 1 required positional argument: 'sync']

      Request information
      GET

      No GET data
      POST
      Variable Value
      _all_ ''
      method 'QUICK'
      __form_id 'form_DiskWipeForm'
      FILES

      No FILES data
      COOKIES
      Variable Value
      fntreeSaveStateCookie 'root%2Croot%2F1%2Croot%2F1%2F6%2Croot%2F1%2F5'
      referrer 'http://10.215.7.211/ui/dashboard'
      _ga 'GA1.2.41536575.1551716182'
      _fbp 'fb.1.1551716182695.969664566'
      _mkto_trk 'id:855-MUM-343&token:_mch-ixsystems.com-1551716182756-63286'
      iXel 'www.ixsystems.com%2Fdocumentation%7C%2Fdocumentation%2Ftruenas%2F11.2-INTERNAL-14%2F%7Chttps%3A%2F%2Fwww.ixsystems.com%2Fdocumentation%2Ftruenas%2F11.2-INTERNAL-14%2F%7Csrv%3Dwww.ixsystems.com%2Fdocumentation%26path%3D%2Fdocumentation%2Ftruenas%2F11.2-INTERNAL-14%2F%7C1559661688'
      csrftoken '********'
      utm_source 'www.ixsystems.com%2Fdocumentation'
      utm_medium 'referral'
      utm_campaign 'iXel'
      utm_term '%2Fdocumentation%2Ftruenas%2F11.2%2F'
      utm_content '836'
      ajs_user_id '%22fa71a8cacefd0f20fdbe3eaefe19efde066f5005a2ea173beef26bbaa0a8db07%22'
      ajs_group_id '%22BCUN-X2JB-NVXN-7G1M%22'
      ajs_anonymous_id '%22d6356dd1-d4e2-4a92-a65c-0515e3a34b9a%22'
      sessionid '8pcoccl5d9l4ogl2lugbquca6mkutb9w'
      META
      Variable Value

        Attachments

          Container Issues

            Attachments

              Activity

                People

                • Assignee:
                  william William Grzybowski
                  Reporter:
                  bonnie Bonnie Follweiler
                  QE Engineer:
                  Bonnie Follweiler
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Merged after freeze:

                    Summary Panel