diff options
author | Yifei Xue <xueyifei@huawei.com> | 2017-04-24 11:22:40 +0800 |
---|---|---|
committer | Yifei Xue <xueyifei@huawei.com> | 2017-04-24 21:37:19 +0800 |
commit | 23f50d5aeda3ff3ab96f17e04df4df7646589c58 (patch) | |
tree | 8f4c99f09edf5e8587e40026665ddd73f6ff4556 /deploy/adapters/ansible/roles/cinder-volume | |
parent | 494ac5825c5b435d512cc13332e302efd30e2a6c (diff) |
tempest test case failed in Functest smoke
JIRA: COMPASS-545
1. LVMISCSIDriver has been removed but LVMVolumeDriver is what actually exists.
Updating the LVM driver name in cinder.conf will solve this.
2. Add tgt to cinder-volume's service list
3. Add section of ceph in cinder.conf for cinder backend
4. Add enable_backends in cinder.conf
Change-Id: I477d2b17ce9e10871a7b96c1a98a49506b36a6ef
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-volume')
3 files changed, 5 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-volume/templates/cinder.conf b/deploy/adapters/ansible/roles/cinder-volume/templates/cinder.conf index e7946b5c..9a5ca005 100644 --- a/deploy/adapters/ansible/roles/cinder-volume/templates/cinder.conf +++ b/deploy/adapters/ansible/roles/cinder-volume/templates/cinder.conf @@ -17,6 +17,8 @@ control_exchange = cinder rpc_backend = rabbit my_ip = {{ storage_controller_host }} +enabled_backends = lvm + glance_host = {{ internal_vip.ip }} glance_port = 9292 glance_api_servers = http://{{ internal_vip.ip }}:9292 @@ -44,7 +46,6 @@ iscsi_port=3260 iscsi_helper=tgtadm volumes_dir=/var/lib/cinder/volumes -volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver [database] connection = mysql://cinder:{{ CINDER_DBPASS }}@{{ db_host }}/cinder @@ -67,7 +68,7 @@ admin_password = {{ CINDER_PASS }} [lvm] volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver -volume_group = cinder-volumes +volume_group = storage-volumes iscsi_protocol = iscsi iscsi_helper = tgtadm diff --git a/deploy/adapters/ansible/roles/cinder-volume/vars/Debian.yml b/deploy/adapters/ansible/roles/cinder-volume/vars/Debian.yml index d95b779c..8c3cb728 100644 --- a/deploy/adapters/ansible/roles/cinder-volume/vars/Debian.yml +++ b/deploy/adapters/ansible/roles/cinder-volume/vars/Debian.yml @@ -12,3 +12,4 @@ packages: services: - cinder-volume + - tgt diff --git a/deploy/adapters/ansible/roles/cinder-volume/vars/RedHat.yml b/deploy/adapters/ansible/roles/cinder-volume/vars/RedHat.yml index 6d596f4b..892c66d8 100644 --- a/deploy/adapters/ansible/roles/cinder-volume/vars/RedHat.yml +++ b/deploy/adapters/ansible/roles/cinder-volume/vars/RedHat.yml @@ -17,3 +17,4 @@ packages: services: - openstack-cinder-volume - lvm2-lvmetad + - target |