jacky06 | 8ab0e97 | 2019-06-18 22:45:50 +0800 | [diff] [blame] | 1 | ============================== |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 2 | Tempest Integration for Cinder |
jacky06 | 8ab0e97 | 2019-06-18 22:45:50 +0800 | [diff] [blame] | 3 | ============================== |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 4 | |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 5 | This directory contains additional Cinder tempest tests. |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 6 | |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 7 | See the tempest plugin docs for information on using it: |
| 8 | https://docs.openstack.org/tempest/latest/plugin.html#using-plugins |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 9 | |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 10 | To run all tests from this plugin, install cinder into your environment. Then |
| 11 | from the tempest directory run:: |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 12 | |
anastasiya-zhyrkevich | 147b7f3 | 2019-10-16 09:07:46 +0300 | [diff] [blame] | 13 | $ tox -e all -- cinder_tempest_plugin |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 14 | |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 15 | |
anastasiya-zhyrkevich | 147b7f3 | 2019-10-16 09:07:46 +0300 | [diff] [blame] | 16 | It is expected that Cinder third party CI's use the `all` tox environment |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 17 | above for all test runs. Developers can also use this locally to perform more |
| 18 | extensive testing. |
| 19 | |
| 20 | Any typical devstack instance should be able to run all Cinder plugin tests. |
| 21 | For completeness, here is an example of a devstack local.conf that should |
| 22 | work. Update backend information to fit your environment. |
| 23 | |
| 24 | :: |
| 25 | |
| 26 | [[local|localrc]] |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 27 | ADMIN_PASSWORD=secret |
| 28 | SERVICE_TOKEN=$ADMIN_PASSWORD |
| 29 | MYSQL_PASSWORD=$ADMIN_PASSWORD |
| 30 | RABBIT_PASSWORD=$ADMIN_PASSWORD |
| 31 | SERVICE_PASSWORD=$ADMIN_PASSWORD |
| 32 | LOGFILE=$DEST/logs/stack.sh.log |
| 33 | LOGDAYS=2 |
| 34 | SYSLOG=False |
| 35 | LOG_COLOR=False |
| 36 | RECLONE=yes |
chenwei | e50d50e | 2022-06-23 09:31:31 +0800 | [diff] [blame] | 37 | ENABLED_SERVICES=c-api,c-bak,c-sch,c-vol,cinder,dstat,g-api,key |
Gabriel Calixto | f89eb82 | 2021-10-26 15:35:06 +0000 | [diff] [blame] | 38 | ENABLED_SERVICES+=,mysql,n-api,n-cond,n-cpu,n-crt,n-sch,rabbit,tempest,placement-api |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 39 | CINDER_ENABLED_BACKENDS=lvmdriver-1 |
| 40 | CINDER_DEFAULT_VOLUME_TYPE=lvmdriver-1 |
| 41 | CINDER_VOLUME_CLEAR=none |
| 42 | TEMPEST_ENABLED_BACKENDS=lvmdriver-1 |
| 43 | TEMPEST_VOLUME_DRIVER=lvmdriver-1 |
| 44 | TEMPEST_VOLUME_VENDOR="Open Source" |
| 45 | TEMPEST_STORAGE_PROTOCOL=iSCSI |
| 46 | LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver |
| 47 | VIRT_DRIVER=libvirt |
| 48 | ACTIVE_TIMEOUT=120 |
| 49 | BOOT_TIMEOUT=120 |
| 50 | ASSOCIATE_TIMEOUT=120 |
| 51 | TERMINATE_TIMEOUT=120 |
| 52 | |
| 53 | |
| 54 | [[post-config|$CINDER_CONF]] |
| 55 | [DEFAULT] |
| 56 | [lvmdriver-1] |
| 57 | volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver |
| 58 | volume_group=stack-volumes-1 |
| 59 | volume_backend_name=lvmdriver-1 |
| 60 | |