Propagating quantum errors to Horizon

asked 2013-04-10 04:29:55 -0500

sudhakaroq gravatar image

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.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-04-10 10:16:44 -0500

gongysh gravatar image

It seems you should ask this question in horizon.

edit flag offensive delete link more
0

answered 2013-04-10 15:43:19 -0500

jpichon gravatar image

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.

edit flag offensive delete link more
0

answered 2013-04-11 05:33:34 -0500

sudhakaroq gravatar image

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.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-04-10 04:29:55 -0500

Seen: 37 times

Last updated: Apr 11 '13