Add cinder backup to scenario002

Configure cinder backup to use swift and test

Change-Id: I9b645b2e7b76e97403b95459578979ec9f53c0b4
Depends-On: I588c9864cd20c75de7caecf733603a3587c34d12
This commit is contained in:
Keith Schincke 2016-10-02 23:34:09 -04:00 committed by David Moreau-Simard
parent 44a2019d29
commit 195872d0d8
5 changed files with 26 additions and 0 deletions

View File

@ -45,6 +45,7 @@ scenario](#all-in-one).
| ceilometer | X | | | |
| aodh | X | | | |
| designate | | | bind | |
| backup | | swift | | |
| gnocchi | rbd | | | |
| heat | | | X | |
| swift | | X | | |

View File

@ -66,6 +66,7 @@ class { '::openstack_integration::nova':
class { '::openstack_integration::cinder':
volume_encryption => $barbican_enabled,
cinder_backup => 'swift',
}
if $barbican_enabled {
@ -74,6 +75,7 @@ if $barbican_enabled {
class { '::openstack_integration::tempest':
cinder => true,
cinder_backup => true,
swift => true,
ironic => true,
zaqar => $zaqar_enabled,

View File

@ -9,9 +9,14 @@
# (optional) Boolean to configure or not volume encryption
# Defaults to false.
#
# [*cinder_backup*]
# (optional) Set type of cinder backup
# Possible values: false, swift
# defaults to false.
class openstack_integration::cinder (
$backend = 'iscsi',
$volume_encryption = false,
$cinder_backup = false,
) {
include ::openstack_integration::config
@ -136,4 +141,13 @@ class openstack_integration::cinder (
properties => ['volume_backend_name=BACKEND_1'],
}
if $cinder_backup == swift {
include ::cinder::backup
class { '::cinder::backup::swift':
backup_swift_user_domain => 'Default',
backup_swift_project_domain => 'Default',
backup_swift_project => 'Default',
}
}
}

View File

@ -12,6 +12,10 @@
# (optional) Define if Cinder needs to be tested.
# Default to false.
#
# [*cinder_backup*]
# (optional) Define if Cinder Backup needs to be tested.
# Default to false.
#
# [*designate*]
# (optional) Define if Designate needs to be tested.
# Default to false.
@ -72,6 +76,7 @@ class openstack_integration::tempest (
$aodh = false,
$ceilometer = false,
$cinder = false,
$cinder_backup = false,
$designate = false,
$glance = true,
$gnocchi = false,
@ -121,6 +126,7 @@ class openstack_integration::tempest (
image_name => 'cirros',
image_name_alt => 'cirros_alt',
cinder_available => $cinder,
cinder_backup_available => $cinder_backup,
designate_available => $designate,
glance_available => $glance,
horizon_available => $horizon,

View File

@ -204,6 +204,9 @@ echo "api.baremetal.admin.test_drivers" >> /tmp/openstack/tempest/test-whitelist
# Zaqar
echo "v2.test_queues.TestManageQueue" >> /tmp/openstack/tempest/test-whitelist.txt
# Cinder Backup
echo "VolumesBackupsAdminV2Test" >> /tmp/openstack/tempest/test-whitelist.txt
# Cinder encrypted volumes
echo "TestEncryptedCinderVolumes" >> /tmp/openstack/tempest/test-whitelist.txt