Ask Your Question
0

How to setup swift as glance backend on RDO Liberty ?

asked 2016-02-14 05:23:35 -0600

updated 2016-02-14 05:32:15 -0600

I attempted to follow https://www.rdoproject.org/storage/Sw...
which seems to have typos as follows :-

 # openstack-config --set /etc/glance/glance-api.conf DEFAULT default_store swift
 # openstack-config --set /etc/glance/glance-api.conf DEFAULT swift_store_auth_address http://Controller:5000/v2.0/
 # openstack-config --set /etc/glance/glance-api.conf DEFAULT swift_store_user services:glance
 # openstack-config --set /etc/glance/glance-api.conf DEFAULT swift_store_key $SERVICE_PASSWORD
 # openstack-config --set /etc/glance/glance-api.conf DEFAULT swift_store_create_container_on_put True

Completed this notes

NOTE: you should replace $KEYSTONE_HOST with the IP address of the node running Keystone and $SERVICE_PASSWORD with the password assigned to the "glance" user. If you installed using packstack, that is in your answer file, search for CONFIG_GLANCE_KS_PW

You will also need to assign the "ResellerAdmin" role to the "glance" user or it won't be able to create containers.

# keystone user-role-add --tenant_id=$UUID_SERVICES_TENANT --user=$UUID_GLANCE_USER --role=$UUID_ResellerAdmin_ROLE

Adding role "ResellerAdmin" was verified.
No luck. I mean all changes done, service restarted , but images still go to /var/lib/glance/images .
When tried configure per Ubuntu Howto's for Juno , i.e updating section [glance_store] , following
http://magicalyak.org/2015/03/20/usin...

Service openstack-glance-api fails to restart

I've also tried via packstack

CONFIG_SWIFT_INSTALL=n
CONFIG_GLANCE_BACKEND=swift
Having previously activated 50 GB Swift storage on XFS

No results 'swift' turns back to 'file' /etc/glance/glance-api.conf has not been touched at all.

edit retag flag offensive close merge delete

1 answer

Sort by ┬╗ oldest newest most voted
1

answered 2016-02-14 11:48:48 -0600

dbaxps gravatar image
edit flag offensive delete link more

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-02-14 05:23:35 -0600

Seen: 459 times

Last updated: Feb 14 '16