blob: 79151cd2e18e3f1318b46a3ab687d1f2e0ddcc1e [file] [log] [blame]
jacky068ab0e972019-06-18 22:45:50 +08001==============================
Sean McGinnis44fed342017-12-01 16:44:57 -06002Tempest Integration for Cinder
jacky068ab0e972019-06-18 22:45:50 +08003==============================
Nishant Kumar9d06ea92017-07-20 12:13:03 -04004
Sean McGinnis44fed342017-12-01 16:44:57 -06005This directory contains additional Cinder tempest tests.
Nishant Kumar9d06ea92017-07-20 12:13:03 -04006
Sean McGinnis44fed342017-12-01 16:44:57 -06007See the tempest plugin docs for information on using it:
8https://docs.openstack.org/tempest/latest/plugin.html#using-plugins
Nishant Kumar9d06ea92017-07-20 12:13:03 -04009
Sean McGinnis44fed342017-12-01 16:44:57 -060010To run all tests from this plugin, install cinder into your environment. Then
11from the tempest directory run::
Nishant Kumar9d06ea92017-07-20 12:13:03 -040012
anastasiya-zhyrkevich147b7f32019-10-16 09:07:46 +030013 $ tox -e all -- cinder_tempest_plugin
Nishant Kumar9d06ea92017-07-20 12:13:03 -040014
Sean McGinnis44fed342017-12-01 16:44:57 -060015
anastasiya-zhyrkevich147b7f32019-10-16 09:07:46 +030016It is expected that Cinder third party CI's use the `all` tox environment
Sean McGinnis44fed342017-12-01 16:44:57 -060017above for all test runs. Developers can also use this locally to perform more
18extensive testing.
19
20Any typical devstack instance should be able to run all Cinder plugin tests.
21For completeness, here is an example of a devstack local.conf that should
22work. Update backend information to fit your environment.
23
24::
25
26 [[local|localrc]]
27 VIRT_DRIVER=libvirt
28 ADMIN_PASSWORD=secret
29 SERVICE_TOKEN=$ADMIN_PASSWORD
30 MYSQL_PASSWORD=$ADMIN_PASSWORD
31 RABBIT_PASSWORD=$ADMIN_PASSWORD
32 SERVICE_PASSWORD=$ADMIN_PASSWORD
33 LOGFILE=$DEST/logs/stack.sh.log
34 LOGDAYS=2
35 SYSLOG=False
36 LOG_COLOR=False
37 RECLONE=yes
38 ENABLED_SERVICES=c-api,c-sch,c-vol,cinder,dstat,g-api,g-reg,key,mysql,
39 n-api,n-cond,n-cpu,n-crt,n-net,n-sch,rabbit,tempest
40 CINDER_ENABLED_BACKENDS=lvmdriver-1
41 CINDER_DEFAULT_VOLUME_TYPE=lvmdriver-1
42 CINDER_VOLUME_CLEAR=none
43 TEMPEST_ENABLED_BACKENDS=lvmdriver-1
44 TEMPEST_VOLUME_DRIVER=lvmdriver-1
45 TEMPEST_VOLUME_VENDOR="Open Source"
46 TEMPEST_STORAGE_PROTOCOL=iSCSI
47 LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver
48 VIRT_DRIVER=libvirt
49 ACTIVE_TIMEOUT=120
50 BOOT_TIMEOUT=120
51 ASSOCIATE_TIMEOUT=120
52 TERMINATE_TIMEOUT=120
53
54
55 [[post-config|$CINDER_CONF]]
56 [DEFAULT]
57 [lvmdriver-1]
58 volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
59 volume_group=stack-volumes-1
60 volume_backend_name=lvmdriver-1
61