iSCSI Extent. Cant create.

Status
Not open for further replies.

beaverwolf

Cadet
Joined
Nov 27, 2015
Messages
3
Been evaluating FreeNas for a few days, and everything works fine except the iSCSI part. When I try to create an Extent something breaks, I post the error message plus Traceback log down below. I have tested the latest stable version and a nightly build (not 10.x). Same error on both versions.

Code:
Environment:

Software Version: FreeNAS-9.3-Nightlies-201511271501
Request Method: POST
Request URL: http://192.168.1.52/admin/services/iscsitargetextent/add/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  105.                     response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
  156.         return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in wrapper
  209.                 return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  99.                     response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  52.         response = view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner
  142.             return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in add
  364.                     mf.save()
File "/usr/local/www/freenasUI/../freenasUI/services/forms.py" in save
  1462.                 ).order_by('-id')[0]
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in __getitem__
  132.         return list(qs)[0]

Exception Type: IndexError at /admin/services/iscsitargetextent/add/
Exception Value: list index out of range


Code:
Request information

GET

No GET data
POST

Variable    Value
iscsi_target_extent_disk    u'ada2'
iscsi_target_extent_blocksize    u'512'
iscsi_target_extent_comment    u''
__form_id    u'dialogForm_Extent'
iscsi_target_extent_path    u''
iscsi_target_extent_type    u'Disk'
__all__    u''
iscsi_target_extent_serial    u'00155d7f010e00'
iscsi_target_extent_insecure_tpc    u'on'
iscsi_target_extent_avail_threshold    u''
iscsi_target_extent_filesize    u'0'
iscsi_target_extent_rpm    u'SSD'
iscsi_target_extent_name    u'klj'
FILES

No FILES data
COOKIES

Variable    Value
sessionid    'dqzsjfdzfy9097zfn41sriqgfyja9bzt'
csrftoken    'IDoZPEYQ2fQVdwHIm7wYu0dUu4EXwbhf'
fntreeSaveStateCookie    'root%2Croot%2F86%2Croot%2F86%2F96%2Croot%2F53%2F54%2F55%2F60%2Croot%2F53%2F54%2F55%2Croot%2F126%2Croot%2F93%2F103%2Croot%2F53%2F54%2Croot%2F53%2F54%2F55%2F56%2Croot%2F82%2F89%2Croot%2F1%2F6%2Croot%2F71%2Croot%2F51%2F52%2Croot%2F51%2F52%2F53%2Croot%2F91%2Croot%2F91%2F101%2Croot%2F95%2F105%2Croot%2F22%2F23%2Croot%2F22%2F26%2Croot%2F22%2F32%2Croot%2F35%2F41%2Croot%2F35%2F45%2Croot%2F103%2F113%2Croot%2F159%2Croot%2F159%2F165%2Croot%2F158%2F164%2F166%2Croot%2F158%2F164%2Croot%2F51%2F52%2F53%2F54%2Croot%2F136%2Croot%2F136%2F146%2Croot%2F1%2Croot%2F8%2Croot%2F103%2Croot%2F103%2F116%2Croot%2F92'
META

Variable    Value
wsgi.multiprocess    False
SCRIPT_NAME    u''
SERVER_SOFTWARE    'nginx/1.6.2'
QUERY_STRING    ''
HTTP_CONTENT_TYPE    'application/x-www-form-urlencoded'
wsgi.version    (1, 0)
HTTP_ACCEPT    '*/*'
HTTP_CONTENT_LENGTH    '388'
HTTP_ORIGIN    'http://192.168.1.52'
REDIRECT_STATUS    '200'
wsgi.run_once    False
HTTP_X_CSRFTOKEN    'IDoZPEYQ2fQVdwHIm7wYu0dUu4EXwbhf'
DOCUMENT_URI    '/admin/services/iscsitargetextent/add/'
HTTP_CONNECTION    'keep-alive'
SERVER_PORT    '80'
REMOTE_ADDR    '192.168.1.28'
CONTENT_LENGTH    '388'
DOCUMENT_ROOT    '/usr/local/etc/nginx/html'
HTTP_REFERER    'http://192.168.1.52/'
wsgi.input    <flup.server.fcgi_base.InputStream object at 0x812bf6150>
SERVER_PROTOCOL    'HTTP/1.1'
SERVER_NAME    'localhost'
wsgi.multithread    True
REMOTE_PORT    '21257'
HTTP_USER_AGENT    'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36'
HTTP_ACCEPT_LANGUAGE    'sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4'
wsgi.url_scheme    'http'
HTTPS    ''
HTTP_COOKIE    'sessionid=dqzsjfdzfy9097zfn41sriqgfyja9bzt; fntreeSaveStateCookie=root%2Croot%2F86%2Croot%2F86%2F96%2Croot%2F53%2F54%2F55%2F60%2Croot%2F53%2F54%2F55%2Croot%2F126%2Croot%2F93%2F103%2Croot%2F53%2F54%2Croot%2F53%2F54%2F55%2F56%2Croot%2F82%2F89%2Croot%2F1%2F6%2Croot%2F71%2Croot%2F51%2F52%2Croot%2F51%2F52%2F53%2Croot%2F91%2Croot%2F91%2F101%2Croot%2F95%2F105%2Croot%2F22%2F23%2Croot%2F22%2F26%2Croot%2F22%2F32%2Croot%2F35%2F41%2Croot%2F35%2F45%2Croot%2F103%2F113%2Croot%2F159%2Croot%2F159%2F165%2Croot%2F158%2F164%2F166%2Croot%2F158%2F164%2Croot%2F51%2F52%2F53%2F54%2Croot%2F136%2Croot%2F136%2F146%2Croot%2F1%2Croot%2F8%2Croot%2F103%2Croot%2F103%2F116%2Croot%2F92; csrftoken=IDoZPEYQ2fQVdwHIm7wYu0dUu4EXwbhf'
SERVER_ADDR    '192.168.1.52'
CONTENT_TYPE    'application/x-www-form-urlencoded'
REQUEST_URI    '/admin/services/iscsitargetextent/add/'
HTTP_HOST    '192.168.1.52'
PATH_INFO    u'/admin/services/iscsitargetextent/add/'
REQUEST_METHOD    'POST'
HTTP_X_REQUESTED_WITH    'XMLHttpRequest'
GATEWAY_INTERFACE    'CGI/1.1'
CSRF_COOKIE    u'IDoZPEYQ2fQVdwHIm7wYu0dUu4EXwbhf'
HTTP_ACCEPT_ENCODING    'gzip, deflate'
wsgi.errors    <flup.server.fcgi_base.TeeOutputStream object at 0x80db3b050>
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
There are a couple iscsi bugs (like 11110, 11340, 11340, 11621, and 11985) that were fixed in yesterday's update. I'd look into those and see if it's your issue. Or, just update and see if it fixes the problem.
 

beaverwolf

Cadet
Joined
Nov 27, 2015
Messages
3
Hi,
I have the latest updates. Running nightly at the moment, and I guess the fixes is in that to?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I would imagine, but I don't know. I'm running on stable.
 
D

dlavigne

Guest
If you're getting a traceback on a fresh stable install with latest update, please create a bug report at bugs.freenas.org that includes the full text of the traceback and post the issue number here.
 
Status
Not open for further replies.
Top