Timeouts when trying to create image remotely

asked 2019-10-17 16:59:26 -0500

awalters gravatar image

updated 2019-10-17 17:13:03 -0500

I'm trying to create images in OpenStack. If I do it with a file that's directly on the box, it works fine. However, if I do it with a remote file (either through Horizon, or via command line from another box) it times out after about (but not exactly, or the same amount of time) 12 minutes. I've tried it with a small image - only about 150MB and still have the same issue. I've upped the timeouts in /etc/openstack-dashboard/local_settings and /etc/keystone/keystone.conf to 24 hours and restarted services, with no effect. I can run other commands from the remote box and do other things within Horizon, so I'm connected and authed. (Also, using main admin user.) Interestingly, it fails faster from Horizon - only about three minutes or so. The GUI just gives the message "Unable to create the image".

There are no errors or warnings in the glance.api log other than the timeout (Failed to upload image data due to internal error: error: [Errno 110] Connection timed out).

After the failed attempts from the command line, an image shows up in Horizon with just a GUID for a name, no size, format RAW, and status queued. When it fails from Horizon itself, nothing new shows there.

Are there other timeout settings I should be looking for? Or something else?

edit retag flag offensive close merge delete


A 50 MB image should not take 3 minutes, let alone 12 for uploading.

What command are you using on the remote system? Which Glance store is configured? If Swift, check relevant Swift logs.

You created a Glance catalog entry but did not upload any image data. That explains the "queued" image.

Bernd Bausch gravatar imageBernd Bausch ( 2019-10-17 19:40:59 -0500 )edit

Command is 'openstack image create --disk-format qcow2 --public --file <path> <name>' - the same command that works when I run it directly on the box. I didn't change any config for glance - it appears to have file,http,swift as the store list, and file as the default.

Queued makes sense, thanks.

awalters gravatar imageawalters ( 2019-10-18 10:53:28 -0500 )edit