nova/nova/volume
Xavier Queralt ff67b463b1 Pass volume_api to get_encryption_metadata
The module encryptors was creating a volume API instance in the module
scope which caused all the modules importing it to depend on
cinderclient.

This was affecting scheduler and cert services which at some point import
the compute manager module only to access their config options. It makes
no sense to force scheduler and cert services to require cinderclient.

This patch makes the callers of get_encryption_metadata to pass the
volume api object to this method to prevent this dependency.

Closes-Bug: #1246103
Change-Id: I9eb4ae3754fa2a5ac646560a62477d6ed672e272
(cherry picked from commit a3aeace9af)
2013-10-30 13:55:07 +01:00
..
encryptors Pass volume_api to get_encryption_metadata 2013-10-30 13:55:07 +01:00
__init__.py Use oslo-config-2013.1b4 2013-02-19 21:16:32 -08:00
cinder.py Typo: certicates=>certificates in nova.conf 2013-09-19 09:48:26 -07:00