devstack/lib/cinder_backends/fake
Ivan Kolodyazhny 447f141d4f Added support for fake drivers as Cinder backend
FakeLoggingVolumeDriver  will be used for functional Cinder tests to
prevent dependencies on any storage.

FakeGateDriver is based on LVM and will be used to run Tempest tests for
such features like CG's, replication, etc.

Depends-On: I383bcdb531c7d52c0fdbb6875de73f1274a92854
Change-Id: I2dc8ea416f5eb3fcc9d2e959533497e464220ff5
2017-02-22 09:14:54 -05:00

48 lines
893 B
Bash

#!/bin/bash
#
# lib/cinder_backends/fake
# Configure the Fake backend
# Enable with:
#
# CINDER_ENABLED_BACKENDS+=,fake:fake
# Dependencies:
#
# - ``functions`` file
# - ``cinder`` configurations
# CINDER_CONF
# clean_cinder_backend_fake - called from clean_cinder()
# configure_cinder_backend_fake - called from configure_cinder()
# init_cinder_backend_fake - called from init_cinder()
# Save trace setting
_XTRACE_CINDER_FAKE=$(set +o | grep xtrace)
set +o xtrace
function cleanup_cinder_backend_fake {
local be_name=$1
}
function configure_cinder_backend_fake {
local be_name=$1
iniset $CINDER_CONF $be_name volume_backend_name $be_name
iniset $CINDER_CONF $be_name volume_driver "cinder.tests.fake_driver.FakeLoggingVolumeDriver"
}
function init_cinder_backend_fake {
local be_name=$1
}
# Restore xtrace
$_XTRACE_CINDER_FAKE
# mode: shell-script
# End: