Need to install cryptsetup for cinder

when creating encrypted volume from image, cryptsetup is needed.

Change-Id: I6fab763ba2c17c42e5acf371ef5c02c92600f3e1
Closes-bug: #1752256
(cherry picked from commit cb59631414)
This commit is contained in:
liyingjun 2018-02-28 15:21:06 +08:00 committed by zhongshengping
parent 93a808a0ee
commit caed04bc22
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set cinder_base_packages = [
'ceph-common',
'lvm2',
'cryptsetup',
'openstack-cinder',
'python-automaton',
'python-oslo-vmware'
@ -21,6 +22,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'ceph-common',
'cinder-common',
'lvm2',
'cryptsetup',
'python-oslo.vmware'
] %}
{% endif %}
@ -31,12 +33,14 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set cinder_base_packages = [
'ceph-common',
'lvm2',
'cryptsetup',
'qemu-img'
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set cinder_base_packages = [
'ceph-common',
'lvm2',
'cryptsetup',
'qemu-utils'
] %}
{% endif %}