Add ceph-common to cinder_ceph_packages
The ceph-common packages provides the `ceph` command line client that is needed by cinder for getting the list of currently active MON hosts: https://github.com/openstack/cinder/blob/stable/havana/cinder/volume/drivers/rbd.py#L310 Implements: blueprint rbd-for-block-storage Change-Id: I00c08c26109763923c284e1759527dae911482df
This commit is contained in:
parent
d316106989
commit
77a62d51ef
|
@ -220,7 +220,7 @@ when 'fedora', 'redhat', 'centos' # :pragma-foodcritic: ~FC024 - won't fix this
|
||||||
'cinder_scheduler_service' => 'openstack-cinder-scheduler',
|
'cinder_scheduler_service' => 'openstack-cinder-scheduler',
|
||||||
'cinder_iscsitarget_packages' => ['scsi-target-utils'],
|
'cinder_iscsitarget_packages' => ['scsi-target-utils'],
|
||||||
'cinder_iscsitarget_service' => 'tgtd',
|
'cinder_iscsitarget_service' => 'tgtd',
|
||||||
'cinder_ceph_packages' => ['python-ceph'],
|
'cinder_ceph_packages' => ['python-ceph', 'ceph-common'],
|
||||||
'cinder_nfs_packages' => ['nfs-utils', 'nfs-utils-lib'],
|
'cinder_nfs_packages' => ['nfs-utils', 'nfs-utils-lib'],
|
||||||
'cinder_emc_packages' => ['pywbem'],
|
'cinder_emc_packages' => ['pywbem'],
|
||||||
'package_overrides' => ''
|
'package_overrides' => ''
|
||||||
|
@ -240,7 +240,7 @@ when 'suse'
|
||||||
'cinder_scheduler_service' => 'openstack-cinder-scheduler',
|
'cinder_scheduler_service' => 'openstack-cinder-scheduler',
|
||||||
'cinder_volume_packages' => ['openstack-cinder-volume'],
|
'cinder_volume_packages' => ['openstack-cinder-volume'],
|
||||||
'cinder_volume_service' => 'openstack-cinder-volume',
|
'cinder_volume_service' => 'openstack-cinder-volume',
|
||||||
'cinder_ceph_packages' => ['python-ceph'],
|
'cinder_ceph_packages' => ['python-ceph', 'ceph-common'],
|
||||||
'cinder_iscsitarget_packages' => ['tgt'],
|
'cinder_iscsitarget_packages' => ['tgt'],
|
||||||
'cinder_iscsitarget_service' => 'tgtd',
|
'cinder_iscsitarget_service' => 'tgtd',
|
||||||
'cinder_nfs_packages' => ['nfs-utils'],
|
'cinder_nfs_packages' => ['nfs-utils'],
|
||||||
|
@ -261,7 +261,7 @@ when 'ubuntu'
|
||||||
'cinder_volume_service' => 'cinder-volume',
|
'cinder_volume_service' => 'cinder-volume',
|
||||||
'cinder_scheduler_packages' => ['cinder-scheduler'],
|
'cinder_scheduler_packages' => ['cinder-scheduler'],
|
||||||
'cinder_scheduler_service' => 'cinder-scheduler',
|
'cinder_scheduler_service' => 'cinder-scheduler',
|
||||||
'cinder_ceph_packages' => ['python-ceph'],
|
'cinder_ceph_packages' => ['python-ceph', 'ceph-common'],
|
||||||
'cinder_iscsitarget_packages' => ['tgt'],
|
'cinder_iscsitarget_packages' => ['tgt'],
|
||||||
'cinder_iscsitarget_service' => 'tgt',
|
'cinder_iscsitarget_service' => 'tgt',
|
||||||
'cinder_nfs_packages' => ['nfs-common'],
|
'cinder_nfs_packages' => ['nfs-common'],
|
||||||
|
|
|
@ -106,11 +106,13 @@ describe 'openstack-block-storage::volume' do
|
||||||
expect(@chef_run).to include_recipe('openstack-common::ceph_client')
|
expect(@chef_run).to include_recipe('openstack-common::ceph_client')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'installs the python-ceph package by default' do
|
it 'installs the needed ceph packages by default' do
|
||||||
expect(@chef_run).to install_package('python-ceph')
|
%w{ python-ceph ceph-common }.each do |pkg|
|
||||||
|
expect(@chef_run).to install_package(pkg)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'honors package option platform overrides for python-ceph' do
|
it 'honors package option platform overrides for cinder_ceph_packages' do
|
||||||
@chef_run = ::ChefSpec::Runner.new ::UBUNTU_OPTS do |n|
|
@chef_run = ::ChefSpec::Runner.new ::UBUNTU_OPTS do |n|
|
||||||
n.set['openstack']['block-storage']['volume']['driver'] = 'cinder.volume.drivers.rbd.RBDDriver'
|
n.set['openstack']['block-storage']['volume']['driver'] = 'cinder.volume.drivers.rbd.RBDDriver'
|
||||||
n.set['openstack']['block-storage']['rbd_secret_name'] = 'rbd_secret_uuid'
|
n.set['openstack']['block-storage']['rbd_secret_name'] = 'rbd_secret_uuid'
|
||||||
|
@ -118,10 +120,12 @@ describe 'openstack-block-storage::volume' do
|
||||||
end
|
end
|
||||||
@chef_run.converge 'openstack-block-storage::volume'
|
@chef_run.converge 'openstack-block-storage::volume'
|
||||||
|
|
||||||
expect(@chef_run).to install_package('python-ceph').with(options: '--override1 --override2')
|
%w{ python-ceph ceph-common }.each do |pkg|
|
||||||
|
expect(@chef_run).to install_package(pkg).with(options: '--override1 --override2')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'honors package name platform overrides for python-ceph' do
|
it 'honors package name platform overrides for cinder_ceph_packages' do
|
||||||
@chef_run = ::ChefSpec::Runner.new ::UBUNTU_OPTS do |n|
|
@chef_run = ::ChefSpec::Runner.new ::UBUNTU_OPTS do |n|
|
||||||
n.set['openstack']['block-storage']['volume']['driver'] = 'cinder.volume.drivers.rbd.RBDDriver'
|
n.set['openstack']['block-storage']['volume']['driver'] = 'cinder.volume.drivers.rbd.RBDDriver'
|
||||||
n.set['openstack']['block-storage']['rbd_secret_name'] = 'rbd_secret_uuid'
|
n.set['openstack']['block-storage']['rbd_secret_name'] = 'rbd_secret_uuid'
|
||||||
|
|
Loading…
Reference in New Issue