Ask Your Question

Revision history [back]

How to setup swift as glance backend on RDO Liberty ?

I attempted to follow https://www.rdoproject.org/storage/Swift/Liberty/using-swift-for-glance-with-rdo-liberty/
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. When tried configure per Ubuntu Howto's for Juno like :-
http://magicalyak.org/2015/03/20/using-swift-backend-for-glance-on-ubuntu-openstack/

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.

How to setup swift as glance backend on RDO Liberty ?

I attempted to follow https://www.rdoproject.org/storage/Swift/Liberty/using-swift-for-glance-with-rdo-liberty/
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 like :-, i.e updating section [glance_store] , following
http://magicalyak.org/2015/03/20/using-swift-backend-for-glance-on-ubuntu-openstack/

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.