Ask Your Question

Glance Using Swift Backend on Separate Openstack Cloud

asked 2017-03-30 10:08:58 -0500

Trying to determine whether or not it's possible to configure Glance to utilize a Swift backend that is running on a separate Openstack cloud.

Example Architecture:

Cloud #1 - OpenStack1

  • This Cloud runs all of the requisite services:

    • Glance
    • Ironic
    • Keystone
    • Neutron
    • Nova

Cloud #2 - OpenStack2

  • Separate Cloud which runs all the same requisite services

    • Keystone
    • Neutron
    • Nova
    • This Cloud also hosts the Swift Service/Object store

I should note that with my current configuration, I can push directly to Swift from OpenStack1 via either Curl or the swift cmdline Utility. The Issue I'm experiencing is when creating a glance image, the file upload fails due to the following error on OpenStack1:

2017-03-29 21:05:45.523 48778 ERROR glance.common.wsgi BackendException: Cannot find swift service endpoint : The request you have made requires authentication. (HTTP 401)

Is there a method that can be used to ensure that the Glance service on OpenStack1 can use swift as the default_backend, given that there will be no defined swift service/endpoint on OpenStack1 and the keystone auth endpoints for Glance and Swift would be configured as:

  • Glance Authenticates against Keystone on OpenStack1


auth_url = <keystone_endpoint_on_OpenStack1>
auth_uri = <keystone_endpoint_on_OpenStack1>
  • Swift Authenticates against Keystone on Openstack2


auth_address = <keystone_endpoint_on_OpenStack2>
edit retag flag offensive close merge delete


I also thought it might be useful to configure OpenStack1 with a service/endpoint for Swift that points to the Swift Endpoint URL on OpenStack2, but that doesn't seem to work as the Cannot find swift service endpoint errors are still logged

exodusftw gravatar imageexodusftw ( 2017-03-31 07:49:10 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-04-03 16:20:05 -0500

updated 2017-04-03 16:20:33 -0500

If you're using CEPH as a storage backend, using the (RadosGW Guide) allowed glance to connect to Swift on the OpenStack2 cloud instance without requiring a local entry in the service catalog route to swift

edit flag offensive delete link more


Also made the RGW+keystone integration. It will be good.

keerthivasanselvaraj gravatar imagekeerthivasanselvaraj ( 2017-04-07 01:53:24 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-30 09:47:56 -0500

Seen: 479 times

Last updated: Apr 03 '17