Ask Your Question
0

Change Glance image location

asked 2016-10-23 04:13:10 -0500

eckdd gravatar image

I'm running an OpenStack all-in-one controller VM on a Hyper-V host build with v-magine/devstack/RDO. The images uploaded appear to be in a local XFS mount point:

[root@rdo ~(keystone_admin)]# df -h
Filesystem                   Size  Used Avail Use% Mounted on
/dev/mapper/centos_rdo-root   36G   33G  3.8G  90% /

Unfortunately, I would like to add more than 36G's of images--is there anyway to either change the location that Glance uses to store added images, or increase the size of centos_rdo-root?

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-10-24 06:44:05 -0500

Dilipsun gravatar image

filesystem_store_datadir = /var/lib/glance/images/-->change this path in /etc/glance/glance-api.conf

su -s /bin/sh -c "glance-manage db_sync" glance

service glance-registry restart

service glance-api restart

and sync the database ,restart the glance services ,that should do it for you

edit flag offensive delete link more

Comments

It appeared to work, but when I try adding an image it fails with the

410 Gone: Error in store configuration. Adding images to store is disabled. (HTTP N/A)

Did some research on that and no changes in the glance-api.conf file that people recommended seemed to work.

eckdd gravatar imageeckdd ( 2016-10-30 04:28:55 -0500 )edit

Ok got it working. Had to make the glance account owner of the mount point: https://ask.openstack.org/en/question/81632/glance-error-in-store-configuration-adding-images-to-store-is-disabled/?answer=81633#post-id-81633 (https://ask.openstack.org/en/question...)

eckdd gravatar imageeckdd ( 2016-10-31 16:36:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-23 04:13:10 -0500

Seen: 2,047 times

Last updated: Oct 24 '16