yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #69266
[Bug 1733047] [NEW] Unable to create router when the external network is specified
Public bug reported:
Env: devstack master branch
Steps to reproduce:
1. Go to Project/Network Routers panel
2. Click Create Router button
3. Choose an external network and on form submit
Error info:
INFO openstack_dashboard.dashboards.project.routers.forms Failed to create router: 'CreateForm' object has no attribute 'ext_gw_mode_supported'
ERROR django.request Internal Server Error: /project/routers/create/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py", line 52, in dec
return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py", line 84, in dec
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 88, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py", line 183, in post
return self.form_valid(form)
File "/opt/stack/horizon/horizon/forms/views.py", line 188, in form_valid
exceptions.handle(self.request)
File "/opt/stack/horizon/horizon/exceptions.py", line 351, in handle
six.reraise(exc_type, exc_value, exc_traceback)
File "/opt/stack/horizon/horizon/forms/views.py", line 185, in form_valid
handled = form.handle(self.request, form.cleaned_data)
File "/opt/stack/horizon/openstack_dashboard/dashboards/project/routers/forms.py", line 141, in handle
if exc.status_code == 409:
AttributeError: 'exceptions.AttributeError' object has no attribute 'status_code'
ERROR django.server "POST /project/routers/create/ HTTP/1.1" 500 145275
** Affects: horizon
Importance: Undecided
Assignee: wei.ying (wei.yy)
Status: New
** Changed in: horizon
Assignee: (unassigned) => wei.ying (wei.yy)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1733047
Title:
Unable to create router when the external network is specified
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Env: devstack master branch
Steps to reproduce:
1. Go to Project/Network Routers panel
2. Click Create Router button
3. Choose an external network and on form submit
Error info:
INFO openstack_dashboard.dashboards.project.routers.forms Failed to create router: 'CreateForm' object has no attribute 'ext_gw_mode_supported'
ERROR django.request Internal Server Error: /project/routers/create/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py", line 52, in dec
return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py", line 84, in dec
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 88, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py", line 183, in post
return self.form_valid(form)
File "/opt/stack/horizon/horizon/forms/views.py", line 188, in form_valid
exceptions.handle(self.request)
File "/opt/stack/horizon/horizon/exceptions.py", line 351, in handle
six.reraise(exc_type, exc_value, exc_traceback)
File "/opt/stack/horizon/horizon/forms/views.py", line 185, in form_valid
handled = form.handle(self.request, form.cleaned_data)
File "/opt/stack/horizon/openstack_dashboard/dashboards/project/routers/forms.py", line 141, in handle
if exc.status_code == 409:
AttributeError: 'exceptions.AttributeError' object has no attribute 'status_code'
ERROR django.server "POST /project/routers/create/ HTTP/1.1" 500 145275
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1733047/+subscriptions
Follow ups