2016-08-29 14:23:52 +00:00
|
|
|
==============================================================
|
|
|
|
Configure project-specific image locations with Object Storage
|
|
|
|
==============================================================
|
2015-06-11 12:06:11 +10:00
|
|
|
|
|
|
|
For some deployers, it is not ideal to store all images in one place to
|
2016-08-29 14:23:52 +00:00
|
|
|
enable all projects and users to access them. You can configure the Image
|
|
|
|
service to store image data in project-specific image locations. Then,
|
|
|
|
only the following projects can use the Image service to access the
|
2015-06-11 12:06:11 +10:00
|
|
|
created image:
|
|
|
|
|
2016-08-29 14:23:52 +00:00
|
|
|
- The project who owns the image
|
|
|
|
- Projects that are defined in ``swift_store_admin_tenants`` and that
|
2015-06-11 12:06:11 +10:00
|
|
|
have admin-level accounts
|
|
|
|
|
2016-08-29 14:23:52 +00:00
|
|
|
**To configure project-specific image locations**
|
2015-06-11 12:06:11 +10:00
|
|
|
|
2015-06-20 20:20:23 +02:00
|
|
|
#. Configure swift as your ``default_store`` in the
|
2015-12-15 11:07:25 +05:30
|
|
|
``glance-api.conf`` file.
|
2015-06-11 12:06:11 +10:00
|
|
|
|
2015-12-15 11:07:25 +05:30
|
|
|
#. Set these configuration options in the ``glance-api.conf`` file:
|
2015-06-11 12:06:11 +10:00
|
|
|
|
|
|
|
- swift_store_multi_tenant
|
|
|
|
Set to ``True`` to enable tenant-specific storage locations.
|
|
|
|
Default is ``False``.
|
|
|
|
|
|
|
|
- swift_store_admin_tenants
|
|
|
|
Specify a list of tenant IDs that can grant read and write access to all
|
|
|
|
Object Storage containers that are created by the Image service.
|
|
|
|
|
|
|
|
With this configuration, images are stored in an Object Storage service
|
|
|
|
(swift) endpoint that is pulled from the service catalog for the
|
|
|
|
authenticated user.
|