Project

General

Profile

Bug #21007

IPV6 error when adding an alias

Added by David Hilling over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Important
Assignee:
Marcelo Araujo
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

HP N40L

ChangeLog Required:
No

Description

When trying to add an alias for an IPV6 interface though the UI I get an error every time. The address stays in the field if its reopened and it was not pingable after the error. I rebooted and the new address did start working. See https://forums.freenas.org/index.php?threads/ipv6.50387/

Internal
Request Method: POST
Request URL: http://freenas/admin/network/interfaces/edit/3/InterfacesEditForm
Software Version: FreeNAS-9.10.2-U1 (86c7ef5)
Exception Type: ClientException
Exception Value:
[Errno 22] Invalid argument
Exception Location: /usr/local/lib/python2.7/site-packages/middlewared/client/client.py in call, line 158
Server time: Thu, 9 Feb 2017 11:07:12 -0500
Traceback

Environment:

Software Version: FreeNAS-9.10.2-U1 (86c7ef5)
Request Method: POST
Request URL: http://freenas/admin/network/interfaces/edit/3/InterfacesEditForm

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
208. 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
145. return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in edit
573. mf.done(request=request, events=events)
File "/usr/local/www/freenasUI/../freenasUI/network/forms.py" in done
379. notifier().start("network")
File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py" in start
360. self._simplecmd("start", what)
File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py" in _simplecmd
261. f()
File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py" in _start_network
485. c.call('routes.sync')
File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py" in _start_network
484. c.call('interfaces.sync')
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py" in call
158. raise ClientException(c.error, c.trace)

Exception Type: ClientException at /admin/network/interfaces/edit/3/InterfacesEditForm
Exception Value: [Errno 22] Invalid argument

Request information

GET

No GET data
POST

Variable Value
alias_set-0-alias_v6address u'2605:a000:1d01:8087:e4e6:8566:f3e:45'
alias_set-0-alias_v4netmaskbit u''
int_v6netmaskbit u''
formset_alias-__all__ u''
int_options u''
int_interface u'bge0'
alias_set-0-id u'1'
alias_set-INITIAL_FORMS u'1'
int_name u'Internal'
alias_set-0-alias_v6netmaskbit u'64'
alias_set-0-__all__ u''
confirm u'1'
alias_set-TOTAL_FORMS u'1'
int_ipv6address u''
alias_set-0-alias_v4address u''
int_ipv4address u'192.168.1.45'
_form_id u'dialogForm_interfaces'
int_v4netmaskbit u'24'
_all
u''
alias_set-0-alias_interface u'3'
FILES

No FILES data
COOKIES

Variable Value
sessionid 'g0zh7tfstzs1f2so08kj8xykam0qaizj'
fntreeSaveStateCookie 'root%2Croot%2F8%2Croot%2F77%2Croot%2F77%2F78%2Croot%2F56%2Croot%2F56%2F63%2Croot%2F56%2F58%2Croot%2F131%2Croot%2F131%2F148%2Croot%2F131%2F148%2F150'
csrftoken 'HETDUSrz2rUVqkoO5P9ZbU06jiWV62xS'
META

Variable Value
HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.8'
rollbar.uuid u'd4c2fadf-3310-4303-8644-f0833b97aa92'
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded'
DOCUMENT_URI '/admin/network/interfaces/edit/3/InterfacesEditForm'
CONTENT_TYPE 'application/x-www-form-urlencoded'
HTTP_REFERER 'http://freenas/'
SCRIPT_NAME u''
wsgi.input <flup.server.fcgi_base.InputStream object at 0x80f6f1950>
SERVER_SOFTWARE 'nginx/1.10.1'
HTTP_X_CSRFTOKEN 'HETDUSrz2rUVqkoO5P9ZbU06jiWV62xS'
SERVER_PROTOCOL 'HTTP/1.1'
GATEWAY_INTERFACE 'CGI/1.1'
CONTENT_LENGTH '501'
QUERY_STRING ''
CSRF_COOKIE u'HETDUSrz2rUVqkoO5P9ZbU06jiWV62xS'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'
REQUEST_URI '/admin/network/interfaces/edit/3/InterfacesEditForm'
PATH_INFO u'/admin/network/interfaces/edit/3/InterfacesEditForm'
HTTP_HOST 'freenas'
wsgi.multithread True
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'
HTTP_COOKIE 'sessionid=g0zh7tfstzs1f2so08kj8xykam0qaizj; fntreeSaveStateCookie=root%2Croot%2F8%2Croot%2F77%2Croot%2F77%2F78%2Croot%2F56%2Croot%2F56%2F63%2Croot%2F56%2F58%2Croot%2F131%2Croot%2F131%2F148%2Croot%2F131%2F148%2F150; csrftoken=HETDUSrz2rUVqkoO5P9ZbU06jiWV62xS'
wsgi.url_scheme 'http'
HTTPS ''
HTTP_ORIGIN 'http://freenas'
SERVER_ADDR '2605:a000:1d01:8087:e4e6:8566:f3e:45'
DOCUMENT_ROOT '/usr/local/etc/nginx/html'
wsgi.version (1, 0)
wsgi.run_once False
SERVER_NAME 'localhost'
HTTP_ACCEPT '*/*'
REMOTE_PORT '33272'
REMOTE_ADDR '2605:a000:1d01:8087:b183:c4a6:521f:d2d5'
SERVER_PORT '80'
HTTP_ACCEPT_ENCODING 'gzip, deflate'
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x80f6cd9d0>
HTTP_CONTENT_LENGTH '501'
wsgi.multiprocess False
REDIRECT_STATUS '200'
REQUEST_METHOD 'POST'
HTTP_CONNECTION 'keep-alive'

Associated revisions

Revision e4a28264 (diff)
Added by Marcelo Araujo over 4 years ago

fix(middlewared): There are some logic issues addressed with this fix: - Add an IPv6 address doesn't work. - If set IPv6 Auto and after disable it and add manually another address, we will have both address. - If DHCP IPv4 is enabled we can't add an IPv6 address. Ticket: #21007

Revision ecea5fa2 (diff)
Added by Marcelo Araujo over 4 years ago

fix(middlewared): If we have an IPv6 address and add an IPv6 alias, don't set the auto address when the checkbox is not checked. Ticket: #21007

History

#1 Avatar?id=14398&size=24x24 Updated by Kris Moore over 4 years ago

  • Assignee set to Marcelo Araujo
  • Priority changed from No priority to Important
  • Target version set to 9.10.3

#2 Updated by Marcelo Araujo over 4 years ago

  • Status changed from Unscreened to Screened

#3 Updated by Marcelo Araujo over 4 years ago

  • Status changed from Screened to Ready For Release

#4 Avatar?id=14398&size=24x24 Updated by Kris Moore over 4 years ago

  • Target version changed from 9.10.3 to 11.0

#6 Updated by Vaibhav Chauhan about 4 years ago

  • Target version changed from 11.0 to 11.0-RC

#7 Updated by Vaibhav Chauhan about 4 years ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF