Horizon shows stack trace while creating vip

Bug #1155075 reported by Tatiana Ovchinnikova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Tatiana Ovchinnikova

Bug Description

Steps to reproduce:
1. Create pool.
2. Create vip using some IP address.
3. Delete vip.
4. Create vip using the same IP address as previous vip. The following stack trace page is displayed in Horizon:

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  38. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  54. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  38. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  86. return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  48. return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  69. return handler(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/workflows/views.py" in post
  139. exceptions.handle(request)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/workflows/views.py" in post
  136. success = workflow.finalize()
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/workflows/base.py" in finalize
  779. if not self.handle(self.request, self.context):
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/loadbalancers/workflows.py" in handle
  244. self.failure_message)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/loadbalancers/workflows.py" in handle
  240. api.lbaas.vip_create(request, **context)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/lbaas.py" in vip_create
  136. vip = quantumclient(request).create_vip(body).get('vip')
File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py" in with_params
  107. ret = self.function(instance, *args, **kwargs)
File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py" in create_vip
  547. return self.post(self.vips_path, body=body)
File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py" in post
  987. headers=headers, params=params)
File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py" in do_request
  912. self._handle_fault_response(status_code, replybody)
File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py" in _handle_fault_response
  893. exception_handler_v20(status_code, des_error_body)
File "/opt/stack/python-quantumclient/quantumclient/v2_0/client.py" in exception_handler_v20
  80. message=error_dict)

Exception Type: QuantumClientException at /project/loadbalancers/addvip/096308f7-0183-48a7-a1d7-f22cd02e1300/
Exception Value: Unable to complete operation for network fe2e5fcb-6531-40d1-bad8-a7103a3105c2. The IP address 10.0.0.5 is in use.

There should be user-friendly error message with explaination.

description: updated
Changed in horizon:
assignee: nobody → Tatiana Mazur (tmazur)
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

I'm having trouble reproducing this. The QuantumClientException seems to be caught correctly for me... can you verify this happens on the latest master code?

Changed in horizon:
status: New → Incomplete
Revision history for this message
Tatiana Ovchinnikova (tmazur) wrote :

The traceback presented in DevStack environment only. In production environment the error is handled correctly (two red messages about Vip creation failure are shown).

Revision history for this message
Julie Pichon (jpichon) wrote :

Can you try commenting out the HORIZON_CONFIG dictionary in /opt/stack/horizon/openstack_dashboard/local/local_settings.py, or copy-pasting in there the HORIZON_CONFIG from settings.py including the 'exceptions' key?

The default devstack configuration overrides the 'exceptions' argument, which can cause error messages to not be surfaced in some cases.

David Lyle (david-lyle)
Changed in horizon:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.