Uploading glance image with direct flag

asked 2018-06-18 03:12:09 -0500

mike11 gravatar image

updated 2018-06-18 03:58:35 -0500

Hi Everyone,

There is a flag in local_settings.py which enables direct upload of images (by passing the temporary storage of the image). However, when i use the flag i get the error (only in the Horizon) of: TypeError: Cannot read property 'data' of undefined. In my setting, i am running all in one. I changed the [cors] in glance-api.conf file, however, i still get this error and the image gets stuck in queue. Below are the settings that i put in cors.

[cors]
allowed_origin= http://169.19.1.80/horizon, https://localhost.local,http://localhost.local, https://0.0.0.0:0,http://0.0.0.0:0,http://169.19.1.80/dashboard
allow_methods: GET,PUT,POST,DELETE
allow_headers=X-Custom-Header
expose_headers=X-Custom-Header
max_age: 3600

in the allowed_origins i tried multiple settings which is why there are multiple addresses. Source: https://docs.openstack.org/horizon/latest/configuration/settings.html (https://docs.openstack.org/horizon/la...)

Thank you for any input, Michael

edit retag flag offensive close merge delete