Ask Your Question

How do I create an image in the dashboard clicking the "Create Image" button causes a failure?

asked 2015-09-30 11:23:48 -0500

Infantry gravatar image

updated 2015-10-01 14:43:08 -0500

I cannot create an image using the dashboard. I can create new images using Glance from the command line. But in Horizon, as soon as I click the "Create Image" button I get this: "Danger: An error occurred. Please try again later." Horizon is working fine otherwise.

I tried modifying /etc/openstack-dashboard/ I tried using different values for the OPENSTACK_API_VERSIONS. This line was commented out completely. But uncommenting it, trying 2.0 or 3 for identity didn't help. I tried restarting apache after each change.

Deleting an image in the dashboard works. The web log for the dashboard shows the activity with the standard 200 URL return code. The respective web log activity for the failed "Create Image" clicks involves the 500 URL return code. I don't know why the server isn't registering this "Create Image" click.

On the back end of the dashboard server, /var/log/apache2/horizon_access.log is the log file. horizon.log doesn't log activity.

The error that is reproduced in Firefox is the same as Chrome. When "Create Image" is clicked, the user sees a pop-up "Danger: An error occurred. Please try again later." The /var/log/apache2/horizon_access.log shows the activity with a 500 URL return code. The web address in the browser doesn't change http://<ip address="">/horizon/admin/images/.

With IE, there is no pop-up. The user is redirected from the "Images" page to a web page with this URL: http://<ip address="">/horizon/admin/images/create/

IE shows this:

"Something went wrong! An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator." The logging in the horizon_access.log shows approximately the same activity with a 500 URL return code.

The /var/log/glance/api.log shows activity when Horizon is bypassed with CLI glance commands. The /var/log/glance/api.log shows activity when an image is deleted via Horizon. The /var/log/glance/api.log file does NOT show activity when someone clicks the "Create Image" image button on the dashboard. The Apache2 horizon_access log shows a response code of 500. From there, I cannot trace another command or any other activity.

Nothing seems to work to create an image in Horizon. What should I do?

edit retag flag offensive close merge delete


reinstall horizon

soumitrakarmakar gravatar imagesoumitrakarmakar ( 2015-10-01 04:19:24 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-01 15:52:46 -0500

Moe gravatar image

make sure the glance is working

# netstat -ntlp |grep 9292
if the glance port is open then try
# service glance-api stop

then try again the netstat be sure the glance stops working sometimes It needs to be killed after that

# service glance-api start

in all steps monitor the logs.

sometimes the service shows that is working but it actually does not work (kind of weird) in those cases I stop the service and make sure the service is stopped. then I try:

# su glance
# glance-api

when running the glance-api it returns some logs and information on terminal which are always usefull to me

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-09-30 11:23:48 -0500

Seen: 1,118 times

Last updated: Oct 01 '15