openstack-guides
openstack-guides copied to clipboard
glance error uploading image
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
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
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 Does the :
stores = file,http
OK?
@liaodalin19903
It should be fine if your default_store
backend is file
Hi Guys, I have the same problem.
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.