Removing service_* options from authtoken

These options are not used in keystoneclient.middleware.auth_token

Change-Id: I62bde18fc7f0b6c336fe941c91cf03f30a490445
Replace functions in utils with oslo.fileutils

The following functions have moved to oslo.
ensure_tree
remove_path_on_error
file_open
delete_if_exists

Replaced overlapping functions with the ones in fileutils

Change-Id: Ib10a7ca2c72620f7f1df6c5bd4ef6c9cc4d8e913
Replace FLAGS with cfg.CONF in tests

Replace all the FLAGS with cfg.CONF in cinder/tests
Large commit was split into several parts

Change-Id: I20a188c20f440e4ba3f5167bd65346ec9fb6e90b
Fixes: bug #1182037
Add policy checking for transfer create/accept.

This patch adds policy checks for transfer create/accept
as well as adding the associated default policy.  In addition
we add the wrap in the volume/api accept_transfer method.

Fixes bug: 1187910

Change-Id: I599ac0a95cea1605380d4595a1f21023fbcfb6f1
Remove direct call to utils.execute.

The executes calls in the base driver class
are set up to use the exectue enginge passed in on
init.  There are a couple of methods that call
utils.execute directly, and as a result you end
up not using the expected execute engine when
you pass in something other than default for these
two calls.

We'd like to get away from the local execute altogether
and use the OpenStack common version only, so fix these
in driver.py and put the appropriate wrapper around them.

Change-Id: Ibc17c9c2a0c8f27b4533ed86377a66ce668aeab5
Fix LVM logging error.

Missed a %s, which caused an exception.

Change-Id: Ib6fcabebdcf70430f3e46095da6c5e13b3e3a4ff
Fixes: bug 1189455
Integrate oslo's periodic tasks.

Cinder use old style invocation of periodic tasks, which not based on oslo library.
It will be better to use main idea of periodic tasks for all services.

Blueprint: oslo-periodic-tasks

Change-Id: I6ac1ca28abefcc9d0bbfd41873c8f57d40b4a97a
Add missing attributes to xml deserializer for volume request

The v1 and v2 xml deserializers for volume requests are missing
support for the imageRef, snapshot_id and source_volid attributes
resulting in xml format create volume requests which specify any
of those attributes being silently ignored. This fix adds support
to v1 and v2 and extends the volumes unit tests to check for this.
Also includes some minor debug logging enhancements to make this
easier to find in future.

Fixes bug #1188581

Change-Id: Ib661c4a961c57e682e0e4e6db98d863b3a99cf71
Add availability zone checking in the api service

This patch adds availability zone checking for api request period.
If the availability zone the request specified isn't exist in the
Cinder services, the response returned to the user will give an
error immediately.

Fixes bug: 1185714

Change-Id: I842eec7b500c3ff6a7e5d8fc5e397d61617b0eea
Allow disabling ssl compression for glance client

Add a new parameter 'glance_api_ssl_compression' which allows
disabling ssl layer compression negotiation for glance requests.

This may improve data throughput, eg when high network bandwidth is
available and you are using already compressed image formats such as
qcow2 .

Addresses bug 1189903.

Change-Id: I180501cc25a1ea177d0d8c52a879682b8a3921c6
Merge "Integrate oslo's periodic tasks."
Add missing exception from volume/api.py

Add InvalidSourceVolume exception that is used in the volume/api.py
without being defined.

Fix bug 1189987

Change-Id: Ifcea41e882e259416c91c91d9b202b3a939eb12f
Remove explicit distribute depend.

Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: Ib1a81596971a1db38f11bc5afbe98c9da68c938f
Merge "Add availability zone checking in the api service"
Merge "Fix LVM logging error."
Re-set default sql_connection and sqlite_db.

The defaults seem to have been lost in the migration to Oslo's
DB code.  Re-set them to pre-grizzly defaults.

Fixes bug: #1190036

Change-Id: I7fca70e67d67905b15c2faaa745a86e957bec06e
Merge "Add policy checking for transfer create/accept."
Fix the after subscription size checks.

It seems like the calculation was incorrect previously.

Fixes bug: #1190094

Change-Id: Iaec3c2ece6fc80e6bb87fde0a408608825212b49
Merge "Add missing exception from volume/api.py"
Merge "Add missing attributes to xml deserializer for volume request"