Project

General

Profile

Bug #26416

Do not traceback if volume is locked

Added by P Eriksson about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

When trying to fetch the status of an encrypted pool that is currently locked, I get the following response (edited for formatting):

{
    "error_message": "list index out of range", 
    "traceback": "Traceback (most recent call last):\n\n  
                  File \"/usr/local/lib/python3.6/site-packages/tastypie/resources.py\", line 219, in wrapper\n
                  response = callback(request, *args, **kwargs)\n\n
                  File \"./freenasUI/api/resources.py\", line 749, in status\n
                  pool = notifier().zpool_parse(bundle.obj.vol_name)\n\n
                  File \"./freenasUI/middleware/notifier.py\", line 4086, in zpool_parse\n
                  parse = zfs.parse_status(name, doc, res)\n\n
                  File \"./freenasUI/middleware/zfs.py\", line 766, in parse_status\n
                  status = data.split('config:')[1]\n\nIndexError: list index out of range\n" 
}

If I unlock the pool, it works as expected.

History

#1 Updated by Dru Lavigne about 1 year ago

  • Assignee changed from Release Council to William Grzybowski

#2 Updated by William Grzybowski about 1 year ago

  • Status changed from Unscreened to Screened
  • Priority changed from No priority to Nice to have
  • Target version set to 11.1

#3 Updated by William Grzybowski about 1 year ago

  • Status changed from Screened to Needs Developer Review

#4 Updated by William Grzybowski about 1 year ago

  • Status changed from Needs Developer Review to Ready For Release

Vladimir approved in PR

#5 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Unable to get status of locked pool via API to Do not traceback if volume is locked

#6 Updated by Bonnie Follweiler about 1 year ago

  • Needs QA changed from Yes to No
  • QA Status deleted (Not Tested)

After a conversation with William I am unchecking Needs QA

#7 Updated by Dru Lavigne about 1 year ago

  • Target version changed from 11.1 to 11.1-RC2

#8 Updated by Dru Lavigne about 1 year ago

  • Target version changed from 11.1-RC2 to 11.1-RC3

#9 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF