glance_store/glance_store/tests
Dharini Chandrasekar e79162423f Raise exc when using multi-tenant and swift+config
When Swift multi-tenant store is used along with the
scheme ``swift+config`` (the scheme that identifies the
need to use the swift config), a reference to use swift
objects from the swift config file set using the option
``swift_store_config_file`` is made resulting in the
storage url for an accessible object being created from
a swift auth_address. So is the case when the scheme is
``swift``. This behavior is suitable for single-tenant
swift store and not multi-tenant store.

The solution is to ensure that if deploying multi-tenant swift
store, prohibit setting of swift_store_config_file.
This patch does this by ensuring that multi-tenant and
swift_store_config_file are not configured to work together.

TODO: When somebody changes to multi-tenant from single-tenant store,
and they were using the swift config for single-tenant, the operator will
not be able to access those images any longer. Logic to ensure that
multi-tenant uses the swift conf file if there is a need to  access
an image that was created using single-tenant and swift+config could be
introduced.

UpgradeImpact
DocImpact

Closes-Bug: 1625075

Change-Id: I8b5c31541d3c501ad7c2520b463f881599f4a28e
Co-Authored-By: Hemanth Makkapati <hemanth.makkapati@rackspace.com>
Co-Authored-By: Dharini Chandrasekar <dharini.chandrasekar@intel.com>
2016-12-16 19:48:09 +00:00
..
etc Support V3 authentication with swift 2015-07-22 23:58:30 +00:00
functional Split functional tests apart 2016-07-01 16:54:48 +00:00
unit Raise exc when using multi-tenant and swift+config 2016-12-16 19:48:09 +00:00
__init__.py Rename glance.store to glance_store 2014-08-28 10:09:36 +02:00
base.py Fix Python 3 issues 2015-05-20 12:47:02 -07:00
fakes.py Propagate BadStoreConfiguration to library user 2015-03-28 19:34:15 +01:00
utils.py Switch VMWare Datastore to use Requests 2016-02-24 22:53:15 -08:00