openstack-guides icon indicating copy to clipboard operation
openstack-guides copied to clipboard

glance error uploading image

Open konetzed opened this issue 10 years ago • 5 comments

Following your docs I got this error.

glance image-create --name "CoreOS 493.0.0 - Linux 3.17.2 - Docker 1.3.1 - etcd 0.4.6 - fleet 0.8.1" --container-format ovf --disk-format qcow2 --file coreos_production_openstack_image.img --is-public True Request returned failure status 410.

410 Gone

410 Gone

Error in store configuration. Adding images to store is disabled.

(HTTP N/A)

I was able to fix it using this glance-api.conf

[DEFAULT] bind_host = 0.0.0.0 default_store = file

registry_host = controller.yourdomain.com

rabbit_host = controller.yourdomain.com

[database] connection = mysql://glanceUser:[email protected]/glance

[keystone_authtoken] identity_uri = http://controller.yourdomain.com:35357 auth_uri = http://controller.yourdomain.com:5000 admin_tenant_name = service admin_user = glance admin_password = service_pass

[paste_deploy] flavor = keystone

[glance_store] filesystem_store_datadir = /var/lib/glance/images/

Sorry its not a pull request but hopefully this is helpful :D

konetzed avatar Jan 27 '15 06:01 konetzed

What is the value of 'stores' under section 'glance_store' ? It should be

[glance_store]
stores = glance.store.filesystem.Store,glance.store.http.Store

Other key-values looks ok. I hope you have restarted glance services and they are in active state

psachin avatar Mar 01 '16 10:03 psachin

@psachin Does the :

stores = file,http

OK?

liaodalin19903 avatar Aug 04 '17 09:08 liaodalin19903

@liaodalin19903

It should be fine if your default_store backend is file

psachin avatar Aug 04 '17 14:08 psachin

Hi Guys, I have the same problem.

eduardocalfaia avatar Aug 18 '17 08:08 eduardocalfaia

I was facing the same problem and got a surprise when I found my own guide being used by others, so cool!

I just tried to deploy OpenStack Ansible Rocky and saw this very same problem.

My problem was that the Linux user "glance" had no write access to the NFS Share, mounted under /var/lib/glance/images.

Easy fix with:

chown glance: /var/lib/glance/images -R

From within the Glance container.

thiagocmartinsc avatar Oct 22 '18 18:10 thiagocmartinsc