Project

General

Profile

Bug #33330

Fix NFS share creation in API

Added by TIm Walter about 1 year ago. Updated about 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Severity:
Med High
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

In (todays) nightly if I try and create a new NFS Share in the new GUI I get this message

'networks' is an invalid keyword argument for this function

I can't create any new NFS shares though old ones work.

More info from the old gui

Request URL: http://192.168.0.110/legacy/admin/sharing/nfs_share/add/
Software Version: FreeNAS-11.2-MASTER-201805080407 (aa4a502)
Exception Type: ClientException
Exception Value:
'networks' is an invalid keyword argument for this function
Exception Location: /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 435
Server time: Wed, 9 May 2018 20:58:43 +0100
Traceback

Environment:

Software Version: FreeNAS-11.2-MASTER-201805080407 (aa4a502)
Request Method: POST
Request URL: http://192.168.0.110/legacy/admin/sharing/nfs_share/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
142. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
370. mf.save()
File "./freenasUI/middleware/form.py" in save
55. result = self.
_save()
File "./freenasUI/middleware/form.py" in __save
114. raise
File "./freenasUI/middleware/form.py" in __save
109. return c.call(f"{self.middleware_plugin}.{self._middleware_action}", *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
435. raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /legacy/admin/sharing/nfs_share/add/
Exception Value: 'networks' is an invalid keyword argument for this function

Request information

GET

No GET data
POST

Variable Value
path_set-TOTAL_FORMS '1'
path_set-INITIAL_FORMS '0'
formset_nfs_share_path-__all__ ''
path_set-0-__all__ ''
path_set-0-path '/mnt/tank/dockernfs'
path_set-0-share ''
path_set-0-id ''
all ''
nfs_comment ''
nfs_network ''
nfs_hosts ''
nfs_maproot_user ''
nfs_maproot_group ''
nfs_mapall_user ''
nfs_mapall_group ''
selecAt_from 'krb5p'
__form_id 'dialogForm_nfs_share'
FILES

No FILES data
COOKIES

Variable Value
fntreeSaveStateCookie 'root%2Croot%2F216%2Croot%2F218%2Croot%2F26%2Croot%2F26%2F27%2Croot%2F219%2Croot%2F219%2F225%2Croot%2F56%2F57%2F58%2F103%2F104%2Croot%2F56%2F57%2F58%2F103%2F104%2F105%2Croot%2F132%2Croot%2F132%2F143%2Croot%2F190%2Croot%2F203%2Croot%2F203%2F209%2Croot%2F202%2Croot%2F202%2F208%2Croot%2F201%2Croot%2F144%2Croot%2F144%2F155%2Croot%2F1%2Croot%2F1%2F5%2Croot%2F83%2Croot%2F83%2F84%2Croot%2F83%2F93%2Croot%2F56%2Croot%2F56%2F57%2Croot%2F88%2Croot%2F88%2F98%2Croot%2F88%2F89%2Croot%2F88%2F99%2Croot%2F26%2F31%2Croot%2F26%2F34%2Croot%2F56%2F83%2Croot%2F56%2F90%2Croot%2F98%2Croot%2F105%2Croot%2F105%2F106%2Croot%2F105%2F116%2Croot%2F140%2Croot%2F9%2Croot%2F109%2Croot%2F109%2F120%2Croot%2F109%2F114%2Croot%2F175%2Croot%2F175%2F181%2Croot%2F175%2F181%2F183%2Croot%2F41%2Croot%2F41%2F43%2Croot%2F117%2Croot%2F117%2F128%2Croot%2F121%2Croot%2F121%2F132%2Croot%2F125%2Croot%2F125%2F136%2Croot%2F56%2F57%2F58%2F63%2Croot%2F125%2F130%2Croot%2F56%2F57%2F58%2Croot%2F56%2F57%2F58%2F87%2Croot%2F125%2F140%2Croot%2F56%2F57%2F58%2F83%2Croot%2F121%2F126%2Croot%2F188%2Croot%2F197%2Croot%2F197%2F208%2F210%2Croot%2F196%2Croot%2F192%2Croot%2F197%2F208%2Croot%2F196%2F207%2Croot%2F202%2F217%2Croot%2F202%2F217%2F219%2Croot%2F199%2Croot%2F56%2F57%2F58%2F91%2Croot%2F137%2Croot%2F137%2F142%2Croot%2F56%2F57%2F58%2F71%2Croot%2F56%2F57%2F58%2F67%2Croot%2F56%2F57%2F58%2F99%2Croot%2F141%2Croot%2F141%2F158%2Croot%2F183%2Croot%2F141%2F146%2Croot%2F56%2F57%2F58%2F95%2Croot%2F214%2Croot%2F212%2Croot%2F58%2F59%2Croot%2F131%2Croot%2F131%2F136%2Croot%2F131%2F146%2Croot%2F135%2Croot%2F135%2F140%2Croot%2F58%2Croot%2F28%2Croot%2F28%2F29%2Croot%2F1%2F6%2Croot%2F58%2F59%2F60%2Croot%2F139%2Croot%2F139%2F144%2Croot%2F58%2F59%2F60%2F93%2Croot%2F135%2F148%2Croot%2F58%2F59%2F60%2F97%2Croot%2F58%2F59%2F60%2F69%2Croot%2F58%2F59%2F60%2F105%2Croot%2F139%2F153%2Croot%2F58%2F59%2F60%2F101%2Croot%2F58%2F59%2F60%2F61%2Croot%2F45%2Croot%2F60%2Croot%2F60%2F115%2Croot%2F60%2F122%2Croot%2F60%2F61%2Croot%2F137%2F152%2Croot%2F177%2Croot%2F60%2F61%2F62%2Croot%2F60%2F61%2F62%2F91%2Croot%2F60%2F61%2F62%2F95%2Croot%2F60%2F61%2F62%2F99%2Croot%2F60%2F111%2Croot%2F45%2F57%2Croot%2F11%2Croot%2F139%2F154%2Croot%2F202%2F208%2F210%2Croot%2F202%2F213%2Croot%2F28%2F42%2Croot%2F28%2F36%2Croot%2F47%2Croot%2F47%2F49%2Croot%2F47%2F52%2Croot%2F47%2F56%2Croot%2F47%2F59%2Croot%2F190%2F201%2Croot%2F190%2F196%2Croot%2F28%2F43%2Croot%2F63%2Croot%2F63%2F64%2Croot%2F28%2F37%2Croot%2F63%2F117%2Croot%2F31%2Croot%2F69%2Croot%2F31%2F32%2Croot%2F69%2F70%2Croot%2F69%2F70%2F71%2Croot%2F11%2F18%2Croot%2F11%2F21%2Croot%2F31%2F35%2Croot%2F31%2F46%2Croot%2F69%2F152%2Croot%2F160%2Croot%2F167%2Croot%2F167%2F179'
csrftoken '********'
sessionid 'h2gshgcn01ujq8y8o72gqyy6qz3pnraa'
META

Variable Value

Associated revisions

Revision 74eab5d5 (diff)
Added by Vladimir Vinogradenko about 1 year ago

fix(nfs): Fix NFS share creation

Ticket: #33330

History

#1 Updated by Dru Lavigne about 1 year ago

  • Private changed from No to Yes
  • Seen in changed from 11.2-RC2 to Master - FreeNAS Nightlies
  • Reason for Blocked set to Need additional information from Author

Tim: please attach a debug (System -> Advanced -> Save Debug).

#2 Updated by William Grzybowski about 1 year ago

  • Category changed from GUI (new) to Middleware
  • Assignee changed from Release Council to Vladimir Vinogradenko
  • Target version changed from Backlog to 11.2-BETA1
  • Severity changed from New to Med High
  • Reason for Blocked deleted (Need additional information from Author)

#3 Updated by TIm Walter about 1 year ago

  • File debug-freenas-20180510181456.tar added

Dru Lavigne wrote:

Tim: please attach a debug (System -> Advanced -> Save Debug).

Debug hopefully attached after trying to add NFS Share under old gui

#4 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from Unscreened to Ready for Testing

#5 Updated by Dru Lavigne about 1 year ago

  • File deleted (debug-freenas-20180510181456.tar)

#6 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Unable to create new NFS Share FreeNAS-11.2-MASTER-201805080407 to Fix NFS share creation in API
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#7 Updated by Dru Lavigne about 1 year ago

  • Private changed from Yes to No

#8 Updated by Eric Turgeon about 1 year ago

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

I have done a lot of NFS sharing today with FreeNAS-11.2-INTERNAL8 everything worked fine.

#9 Updated by Dru Lavigne about 1 year ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF