Add known_stores option in class glance::api

In glance-api, if you use known_stores's default value and didn't use
all of the stores listed in known_stores, then glance-api service will
throw an error to point out which store missing, see more description
in related bug link.
This patchset adds known_stores option in glance::api, so that users
can configure it by their own needs.

Change-Id: If08254f419d182b82cc50137383985834f40a6fd
Closes-bug: #1259403
Merge "Add known_stores option in class glance::api"
support separate registry/api packages

on Debian plattforms there are separate packages
for glance registry and glance api. This allows
you to install api/registry on different servers.

If the packages for registry and api are the same,
(as it is the case for RedHat plattform)
the package is installed in ::glance class.
If the packages differs (as for Debian plattform),
installation of packages is done in
registry/api classes.

Additionaly this patch adds a test for unsupported
plattforms.

Change-Id: I8d4b74e8c8ad2dd7e6e2ad175326f36ff818c108
add kombu_ssl parameters to notify::rabbitmq

This adds the following parameters:
  * kombu_ssl_ca_certs
  * kombu_ssl_certfile
  * kombu_ssl_keyfile
  * kombu_ssl_version
these are necessary to establish a secure ssl
connection to rabbitmq.

Change-Id: Ia9ea7cf44664f71a4fb5cc76e3474aa54a9bb30d
Merge "add kombu_ssl parameters to notify::rabbitmq"
fix rspec tests in backend::rbd and notify::qpid

The tests in the second part of the file have never
been executed.
Also fixed typo's in notify:qpid which did not result in
errors, since the tests where not executed.

Closes-bug: #1301001

Change-Id: I97f3ee9f2d4073a218cc3866dc24701c99254757
Fixed the Glance add_image parser for new client

The python-glanceclient (glance) was updated to not report back
on the id of an uploaded image with the v2 API [1].  This broke
the parser for the glance_image provider. This change first checks
for the previous behavior (for performance and backwards
compatability), and failing that parses the results table and
pulls the id (if it exits) out of the results.

The new parse_table method was made to be generic so that any result
from the glance client could be parsed into an array of maps.

[1]
https://github.com/openstack/python-glanceclient/search?q=Added+new+image+with+ID&ref=cmdform

Change-Id: If7b5445c6f51d886427248827a73cc16b5a2e488
4.0.0 - 2014.1.0 - Icehouse Release

Updated Modulefile and README.md for 4.0.0 release.

Change-Id: I3d58b784c870fed5d7f349e9e7484d234690b8b4
Merge "Fixed the Glance add_image parser for new client"
Fixes wrong values in get_glance_image_attrs

The output of the glance show command in get_glance_image_attrs
does not get properly converted while being added to the
attrs array.

Change-Id: Ibe503b24ae3bfa10944537d5deaa068a01eaa5f3
Closes-Bug: #1199513
Add multiple rabbit hosts support

* Use new oslo.messaging conf options for rabbit_hosts and
  rabbit_ha_queues for glance::notify::rabbitmq class
* Warn on deprecated rabbit_durable_queues and use amqp_* instead
* Fix/add rspecs
* Fix a mess with wrong notification_driver usage
* Update README with usage example

DocImpact
Closes-bug: #1259193
Closes-bug: #1312054
Closes-bug: #1312658
Closes-bug: #1313553

Change-Id: I16b8e71db20602986a7afe8d24e7faba91a0997f
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Merge "4.0.0 - 2014.1.0 - Icehouse Release"
Merge "Fixes wrong values in get_glance_image_attrs"
api: add image_cache_dir parameter

Without image_cache_dir parameter, Glance API can't start.
Default value is set to /var/lib/glance/image-cache.

Change-Id: I1cfcbf0021cfae187d9c8d78a16b18de29c97b4a
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
Deprecate old SQL parameters

SQL configuration has changed in Havana.
This patch aims to deprecate old parameters and configure using the
right way.

Change-Id: I6a800d51294ae23636636a8d1c6ccad192f45d4e
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
Fix could not find user glance on ensure files

commit 394661ec introduces a bug when the etc files ensure owner
'glance' run before the installation of the packages, and user glance
is not available, since this user is added by the package installation
after that.

This fix adds the dependency between packages and the ensure of etc
files.

Change-Id: Ia6523daf69f684c5bdb83255a8e6f6de3160ecc1
Fail when ssl parameters are missing and rabbit_use_ssl is set to true

This commit causes the run to fail is rabbit_use_ssl parameter is set
to true but the ssl related parameters remains undef.

Change-Id: I12a8a87dde45a06d35c6d3e90ef2637085fdba86
Merge "Fix could not find user glance on ensure files"