Propagating quantum errors to Horizon

Asked by sudhakar on 2013-04-10

Hi,

I am using devstack single node installation with quantum enabled for my openstack learning and quantum plugin development.

Is there a way to send custom error messages from quantum plugin to Horizon to pop it to user?

I tried it by raising exceptions with a message, but horizon never displayed my exception message! For example, when I threw exception in my Create_Network handler, the horizon always displaying - 'Error: There was an error submitting the form. Please try again' instead of my exception message.

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Solved by:
sudhakar
Solved:
2013-04-11
Last query:
2013-04-11
Last reply:
2013-04-10
yong sheng gong (gongysh) said : #1

It seems you should ask this question in horizon.

Julie Pichon (jpichon) said : #2

There was an issue related to this fixed recently in devstack.

If you overwrite /opt/stack/horizon/openstack_dashboard/local/local_settings.py with local_settings.py.example from the same directory and restart httpd, does the problem still occur? (The HORIZON_CONFIG variable you can see in /opt/stack/horizon/openstack_dashboard/settings.py has an 'exception' attribute that is being overwritten by resetting HORIZON_CONFIG in the default devstack local_settings.py).

Hope this helps.

sudhakar (sudhakaroq) said : #3

Its look like devstack by default is using local_settings.py.example. After getting latest source from git, my little error propagating test is working now.
Thanks for your help Julie.