blob: 47ed98ef80e47f3e415d307e19ede2701a6fbeea [file] [log] [blame]
Chandan Kumar6f67e372016-05-02 10:19:22 +00001===============================================
2Tempest Integration for Cinder
3===============================================
4
5This directory contains additional Cinder tempest tests.
6
7See the tempest plugin docs for information on using it:
8http://docs.openstack.org/developer/tempest/plugin.html#using-plugins
9
10To run all tests from this plugin, install cinder into your environment. Then
11from the tempest directory run::
12
13 $ tox -e all-plugin -- volume
14
15
16It is expected that Cinder third party CI's use the all-plugin tox environment
17above 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 SCREEN_LOGDIR=/opt/stack/screen-logs
34 LOGFILE=$DEST/logs/stack.sh.log
35 LOGDAYS=2
36 SYSLOG=False
37 LOG_COLOR=False
38 RECLONE=yes
39 ENABLED_SERVICES=c-api,c-sch,c-vol,cinder,dstat,g-api,g-reg,key,mysql,
40 n-api,n-cond,n-cpu,n-crt,n-net,n-sch,rabbit,tempest
41 CINDER_ENABLED_BACKENDS=lvmdriver-1
42 CINDER_DEFAULT_VOLUME_TYPE=lvmdriver-1
Isaac Beckmand18594a2017-05-17 15:07:04 +030043 CINDER_VOLUME_CLEAR=none
Chandan Kumar6f67e372016-05-02 10:19:22 +000044 TEMPEST_ENABLED_BACKENDS=lvmdriver-1
45 TEMPEST_VOLUME_DRIVER=lvmdriver-1
46 TEMPEST_VOLUME_VENDOR="Open Source"
47 TEMPEST_STORAGE_PROTOCOL=iSCSI
48 LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver
49 VIRT_DRIVER=libvirt
50 ACTIVE_TIMEOUT=120
51 BOOT_TIMEOUT=120
52 ASSOCIATE_TIMEOUT=120
53 TERMINATE_TIMEOUT=120
54
55
56 [[post-config|$CINDER_CONF]]
57 [DEFAULT]
58 [lvmdriver-1]
59 volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
60 volume_group=stack-volumes-1
61 volume_backend_name=lvmdriver-1``
62