Project

General

Profile

Bug #70581

Improve iSCSI validation for portals and initiators

Added by Daniel Stubbs almost 3 years ago. Updated over 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Waqar Ahmed
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Trying to add iscsi target as many guides have stated to do, but get this error every time.

nothingbutproblems.png (42 KB) nothingbutproblems.png Daniel Stubbs, 01/17/2019 04:06 AM
49303

Related issues

Copied to FreeNAS - Bug #70968: Improve iSCSI validation for portals and initiatorsDone

Associated revisions

Revision 2c169ee2 (diff)
Added by Waqar Ahmed almost 3 years ago

Improve iscsi validation This commit improves validation for querying portals and initiators before trying to insert them as a foreign key in database. Ticket: #70581

Revision 08eb0258 (diff)
Added by Waqar Ahmed almost 3 years ago

Improve iscsi validation This commit improves validation for querying portals and initiators before trying to insert them as a foreign key in database. Ticket: #70581

History

#1 Updated by Daniel Stubbs almost 3 years ago

Daniel Stubbs wrote:

Trying to add iscsi target as many guides have stated to do, but get this error every time.

I switched to legacy UI and got a bit more detail:

@Request Method: GET
Request URL: https://10.10.10.7/legacy/admin/services/iscsitargetextent/add/
Software Version: FreeNAS-11.2-RELEASE-U1 (31f889bbf)
Exception Type: ClientException
Exception Value:

not enough values to unpack (expected 2, got 1)

Exception Location: /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 454
Server time: Thu, 17 Jan 2019 11:00:17 -0500
Traceback
Environment:

Software Version: FreeNAS-11.2-RELEASE-U1 (31f889bbf)
Request Method: GET
Request URL: https://10.10.10.7/legacy/admin/services/iscsitargetextent/add/

Traceback:
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/freeadmin/options.py" in wrapper
216. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/site.py" in inner
143. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
403. mf = mf()
File "./freenasUI/services/forms.py" in init
831. 'iscsi.extent.disk_choices').items())
File "./freenasUI/services/forms.py" in init
831. 'iscsi.extent.disk_choices').items())
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
454. raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /legacy/admin/services/iscsitargetextent/add/
Exception Value: not enough values to unpack (expected 2, got 1)

Request information
GET

No GET data
POST

No POST data
FILES

No FILES data
COOKIES
Variable Value
fntreeSaveStateCookie 'root%2Croot%2F1%2Croot%2F83%2Croot%2F224%2Croot%2F224%2F249'
csrftoken '********'
sessionid 'i16plyrfyyp25zybq56wb5bquacqvk80'
META
Variable Value@

#2 Updated by Dru Lavigne almost 3 years ago

  • Private changed from No to Yes
  • Reason for Blocked set to Need additional information from Author

Thanks Daniel. Please also add a debug (System -> Advanced -> Save debug) to this ticket.

#3 Updated by Daniel Stubbs almost 3 years ago

  • File debug-hakarl-20190117122859.tgz added

Dru Lavigne wrote:

Thanks Daniel. Please also add a debug (System -> Advanced -> Save debug) to this ticket.

See attached

#4 Updated by Dru Lavigne almost 3 years ago

  • Assignee changed from Release Council to William Grzybowski
  • Reason for Blocked deleted (Need additional information from Author)

#5 Updated by William Grzybowski almost 3 years ago

  • Assignee changed from William Grzybowski to Waqar Ahmed
  • Target version changed from Backlog to 11.2-U3
  • Severity changed from New to Medium

#7 Updated by Waqar Ahmed almost 3 years ago

  • Status changed from Unscreened to In Progress

#8 Updated by Waqar Ahmed almost 3 years ago

  • Copied to Bug #70968: Improve iSCSI validation for portals and initiators added

#9 Updated by Waqar Ahmed almost 3 years ago

  • Status changed from In Progress to Ready for Testing

#12 Updated by Dru Lavigne almost 3 years ago

  • File deleted (debug-hakarl-20190117122859.tgz)

#13 Updated by Dru Lavigne almost 3 years ago

  • Subject changed from iscsi target error to Improve iSCSI validation for portals and initiators
  • Private changed from Yes to No
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#15 Updated by Bonnie Follweiler over 2 years ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Test Passed in FreeNAS-11.2-U2-INTERNAL97

#16 Updated by Dru Lavigne over 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF