How to setup swift as glance backend on RDO Liberty ?

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

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

I attempted to follow
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

Service openstack-glance-api fails to restart

I've also tried via packstack

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

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

dbaxps gravatar image
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-02-14 05:23:35 -0500

Seen: 520 times

Last updated: Feb 14 '16