--- /dev/null
+---
+driver:
+ name: docker
+ hostname: cinder.ci.local
+ use_sudo: false
+
+provisioner:
+ name: salt_solo
+ salt_install: bootstrap
+ salt_bootstrap_url: https://bootstrap.saltstack.com
+ salt_version: latest
+ require_chef: false
+ log_level: error
+ formula: cinder
+ grains:
+ noservices: True
+ state_top:
+ base:
+ "*":
+ - cinder
+ pillars:
+ top.sls:
+ base:
+ "*":
+ - cinder
+
+verifier:
+ name: inspec
+ sudo: true
+
+platforms:
+ - name: <%=ENV['PLATFORM'] || 'ubuntu-xenial'%>
+ driver_config:
+ image: <%=ENV['PLATFORM'] || 'trevorj/salty-whales:xenial'%>
+ platform: ubuntu
+
+suites:
+
+ - name: ceph_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/ceph_single.sls
+
+ - name: control_cluster
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/control_cluster.sls
+
+ - name: control_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/control_single.sls
+
+ - name: eternus_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/eternus_single.sls
+
+ - name: gpfs_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/gpfs_single.sls
+
+ - name: hp3par_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/hp3par_single.sls
+
+ - name: lefthand_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/lefthand_single.sls
+
+ - name: solidfire_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/solidfire_single.sls
+
+ - name: storwize_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/storwize_single.sls
+
+ - name: volume_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/volume_single.sls
+
+ - name: vsp_single
+ provisioner:
+ pillars-from-files:
+ cinder.sls: tests/pillar/vsp_single.sls
+# vim: ft=yaml sw=2 ts=2 sts=2 tw=125
--- /dev/null
+sudo: required
+services:
+ - docker
+
+install:
+ - pip install PyYAML
+ - pip install virtualenv
+ - |
+ test -e Gemfile || cat <<EOF > Gemfile
+ source 'https://rubygems.org'
+ gem 'rake'
+ gem 'test-kitchen'
+ gem 'kitchen-docker'
+ gem 'kitchen-inspec'
+ gem 'inspec'
+ gem 'kitchen-salt', :git => 'https://github.com/epcim/kitchen-salt.git', :branch => 'dependencis-pkg-repo2'
+ #Waiting for PR#78
+ #gem 'kitchen-salt', '>=0.2.25'
+ - bundle install
+
+env:
+ - PLATFORM=trevorj/salty-whales:trusty
+ - PLATFORM=trevorj/salty-whales:xenial
+
+before_script:
+ - make test | tail
+
+script:
+ - test ! -e .kitchen.yml || bundle exec kitchen test -t tests/integration
hp3par_api_url={{ backend.url }}
# 3PAR Super user username
-hp3par_username={{ backend.storage.user }}
+hp3par_username={{ backend.user }}
# 3PAR Super user password
hp3par_password={{ backend.password }}
- group: cinder
- require:
- pkg: cinder_volume_packages
+ {%- if not grains.get('noservices', False) %}
- require_in:
- service: cinder_volume_services
+ {%- endif %}
{%- if not pillar.cinder.get('controller', {}).get('enabled', False) %}
{%- if backend.engine in ['iscsi' , 'hp_lefthand'] %}
+{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
+
cinder_iscsi_packages_{{ loop.index }}:
pkg.installed:
- names:
- require:
- pkg: cinder_iscsi_packages
+{%- if not grains.get('noservices', False) %}
+
cinder_scsi_service:
service.running:
- names:
{%- endif %}
+{%- endif %}
+
+{%- endif %}
+
{%- if backend.engine == 'hitachi_vsp' %}
{%- if grains.os_family == 'Debian' and volume.version == 'juno' %}
{%- if backend.engine == 'fujitsu' %}
+{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
+
cinder_driver_fujitsu_{{ loop.index }}:
pkg.latest:
- name: cinder-driver-fujitsu
+ - refresh: true
/etc/cinder/cinder_fujitsu_eternus_dx_{{ backend_name }}.xml:
file.managed:
{%- endif %}
+{%- endif %}
+
{%- endfor %}
{%- endif %}
- require:
- pkg: cinder_iscsi_packages
+{%- if not grains.get('noservices', False) %}
+
cinder_scsi_service:
service.running:
- names:
{%- endif %}
+{%- endif %}
+
{%- if volume.storage.engine == 'hitachi_vsp' %}
{%- if grains.os_family == 'Debian' and volume.version == 'juno' %}
{%- endif %}
+{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
+
{%- if volume.storage.engine == 'fujitsu' %}
cinder_driver_fujitsu:
{%- endif %}
+{%- endif %}
+
{%- endif %}
name: "cinder"
version: "2016.4.1"
-source: "https://github.com/openstack/salt-formula-cinder"
+source: "https://github.com/salt-formulas/salt-formula-cinder"
user: cinder
secret_uuid: password
client_cinder_key: password
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ osapi_max_limit: 500
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
volume:
enabled: true
version: liberty
engine: ceph
user: cinder
secret_uuid: password
- client_cinder_key: password
\ No newline at end of file
+ client_cinder_key: password
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
port: 11211
- host: 127.0.0.1
port: 11211
+ storage:
+ engine: storwize
+ host: 192.168.0.1
+ port: 22
+ user: username
+ password: pass
audit:
filter_factory: 'keystonemiddleware.audit:filter_factory'
user: openstack
password: password
virtual_host: '/openstack'
+ storage:
+ engine: storwize
+ host: 192.168.0.1
+ port: 22
+ user: username
+ password: pass
password: password
connection: FC
name: 7k2RAID6
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
controller:
enabled: true
version: liberty
user: username
password: password
connection: FC
- name: 7k2RAID6
\ No newline at end of file
+ name: 7k2RAID6
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ osapi_max_limit: 500
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
type_name: GPFS-SILVER
engine: gpfs
mount_point: '/mnt/gpfs-openstack/cinder/silver'
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
controller:
enabled: true
version: liberty
GPFS-SILVER:
type_name: GPFS-SILVER
engine: gpfs
- mount_point: '/mnt/gpfs-openstack/cinder/silver'
\ No newline at end of file
+ mount_point: '/mnt/gpfs-openstack/cinder/silver'
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ osapi_max_limit: 500
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
backend:
hp3par_backend:
type_name: hp3par
+ engine: hp3par
backend: hp3par_backend
user: admin
password: password
sanpassword: password
debug: True
snapcpg: OpenStackSNAPCPG
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ osapi_max_limit: 500
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
volume:
enabled: true
version: liberty
sanpassword: password
debug: True
snapcpg: OpenStackSNAPCPG
- engine: hp3par
\ No newline at end of file
+ engine: hp3par
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
password: password
clustername: cluster1
iscsi_chap_enabled: false
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
controller:
enabled: true
version: liberty
username: username
password: password
clustername: cluster1
- iscsi_chap_enabled: false
\ No newline at end of file
+ iscsi_chap_enabled: false
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ osapi_max_limit: 500
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
san_password: password
clustername: cluster1
sf_emulate_512: false
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
controller:
enabled: true
version: liberty
san_login: username
san_password: password
clustername: cluster1
- sf_emulate_512: false
\ No newline at end of file
+ sf_emulate_512: false
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ osapi_max_limit: 500
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
multihost: true
multipath: true
pool: SAS15K
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
controller:
enabled: true
version: liberty
connection: FC
multihost: true
multipath: true
- pool: SAS15K
\ No newline at end of file
+ pool: SAS15K
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ osapi_max_limit: 500
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
user: cinder
password: password
endpoint_type: internalURL
+ region: regionOne
glance:
host: 127.0.0.1
port: 9292
user: openstack
password: password
virtual_host: '/openstack'
+ storage:
+ engine: storwize
+ host: 192.168.0.1
+ port: 22
+ user: username
+ password: pass
backend: hus100_backend
engine: hitachi_vsp
connection: FC
+ storage_id: 1
+ pool_id: 10
+ thin_pool_id: 12
+ user: admin
+ password: password
+ target_ports: CL3-B
+ compute_target_ports: CL1-E,CL2-E,CL3-B,CL4-D
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ osapi_max_limit: 500
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd
volume:
enabled: true
version: liberty
type_name: HUS100
backend: hus100_backend
engine: hitachi_vsp
- connection: FC
\ No newline at end of file
+ connection: FC
+ identity:
+ engine: keystone
+ host: 127.0.0.1
+ port: 35357
+ tenant: service
+ user: cinder
+ password: pwd
+ region: regionOne
+ osapi:
+ host: 127.0.0.1
+ glance:
+ host: 127.0.0.1
+ port: 9292
+ default_volume_type: 7k2SaS
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: pwd
+ virtual_host: '/openstack'
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: cinder
+ user: cinder
+ password: pwd