Allow testing of cinder multi backends w/ tempest

This commit adds the following variables to os_tempest role:

tempest_volume_backend1_name
tempest_volume_backend2_name
tempest_volume_multi_backend_enabled

This allows you to test that using multiple cinder backends
simultaneously works as expected.  A deployer may, for example, set
tempest_volume_backend1_name to 'lvm' and tempest_volume_backend2_name
to 'ceph'.

To avoid any surprises, tempest_volume_multi_backend_enabled defaults to
'False', which is the current tempest default value for multi_backend.

Closes-Bug: #1493911

Change-Id: I5eeb88d3e90b6ca046be96fb61a1cb6f4e6087ee
This commit is contained in:
Matt Thompson 2015-09-09 16:43:00 +01:00
parent 4da86250b7
commit ed4ed6aa20
2 changed files with 7 additions and 1 deletions

View File

@ -63,7 +63,10 @@ tempest_swift_discoverable_apis:
- slo
- tempurl
tempest_volume_backend1_name: backend1
tempest_volume_backend2_name: backend2
tempest_volume_backup_enabled: False
tempest_volume_multi_backend_enabled: False
tempest_main_group: tempest_all

View File

@ -191,9 +191,12 @@ run_validation = {{ tempest_compute_run_ssh }}
[volume]
endpoint_type = internalURL
backend1_name = lvm
# NOTE: These backends are only tested when multi_backend is enabled
backend1_name = {{ tempest_volume_backend1_name }}
backend2_name = {{ tempest_volume_backend2_name }}
[volume-feature-enabled]
backup = {{ tempest_volume_backup_enabled }}
snapshot = false
multi_backend = {{ tempest_volume_multi_backend_enabled }}