Implement get_volume_stats for GlusterFS driver

Implement get_volume_stats(), so that the GlusterFS driver
will work correctly with the scheduler.

Fixes bug: 1164038

Change-Id: Ib4db8bad897212227b39704e2e6cb5f07f2bb70e
(cherry picked from commit d59094f316f0c41aaa7be63ee4e25e2dea4fa0a9)
Fix cinder-manage backup list to work with uuids

Fixes bug #1164922

Change-Id: I8ed7ff7ca334b983d60445d96cd1f6c368766407
(cherry picked from commit 9d359c01f383807846a8be2f7180641880d76952)
leave re-scheduled volume status to creating

A re-scheduled volume should not be exported and set to available

Fixes bug #1159027

Change-Id: Ie61d9132ce1bd6461d5e4d9836424ebf14100389
(cherry picked from commit b823de4370fb306de0416d8ec1c1a70ac224207c)
getLogger should be called after logging is configured

logging needs to be setup properly before we try to log
something. Fixed one spot from logging->LOG

Fixes LP# 1161038

Change-Id: I87743cff9062e47c1d5e989c2c0c05c3921b65c7
(cherry picked from commit 3a106f7e67e4b7f7c446058b98c33f8c71ca2868)
Mark sql_connection with secret flag

sql_connection contains the password in some setups and marking as
secret prevents accidental logging

fixes bug 1160680

Change-Id: I3704237d0923bb30138b5ece7e5c7bbda0a78b9b
(cherry picked from commit 9f8ee9d2981c5f317139e3743385b59956546d65)
Merge "Mark sql_connection with secret flag" into stable/grizzly
Merge "getLogger should be called after logging is configured" into stable/grizzly
Merge "Fix cinder-manage backup list to work with uuids" into stable/grizzly
Merge "leave re-scheduled volume status to creating" into stable/grizzly
Merge "Implement get_volume_stats for GlusterFS driver" into stable/grizzly
Fix create bootable volume bug

The RBD driver was blindly truncating the created image
without checking the size.

Now, with the allowresize flag set, it automatically creates
a correctly sized volume.  Without it, an error is generated
which clarifies the problem.