Install qemu-img package for cinder-volume node

Currently the qemu-img package is not installed by default
for a cinder-volume node. This causes cinder to fail when
trying to create images using the qemu-img command.

This patch will change the 'cinder_volume_packages' attribute
to also install the qemu-img package for cinder-volume nodes.

Change-Id: Idb923f3edfa39720178e498433d94e4e37a76f7d
Closes-bug: #1413088
This commit is contained in:
lqslan 2015-01-21 17:23:21 +08:00
parent 2f788ab80f
commit 6ef4275296
5 changed files with 16 additions and 3 deletions

View File

@ -4,6 +4,7 @@ This file is used to list changes made in each version of the openstack-block-st
## 10.1.0
* Add disable logic for stage fix to tgtd issue on RHEL 7
* Use common specific_endpoint routines (bug 1412919)
* Install qemu-img package for volume nodes
## 10.0.1
# Update cinder.conf mode from 0644 to 0640

View File

@ -311,7 +311,7 @@ when 'fedora', 'rhel' # :pragma-foodcritic: ~FC024 - won't fix this
'cinder_api_packages' => ['python-cinderclient'],
'cinder_api_service' => 'openstack-cinder-api',
'cinder_client_packages' => ['python-cinderclient'],
'cinder_volume_packages' => [],
'cinder_volume_packages' => ['qemu-img'],
'cinder_volume_service' => 'openstack-cinder-volume',
'cinder_scheduler_packages' => [],
'cinder_scheduler_service' => 'openstack-cinder-scheduler',
@ -341,7 +341,7 @@ when 'suse'
'cinder_client_packages' => ['python-cinderclient'],
'cinder_scheduler_packages' => ['openstack-cinder-scheduler'],
'cinder_scheduler_service' => 'openstack-cinder-scheduler',
'cinder_volume_packages' => ['openstack-cinder-volume'],
'cinder_volume_packages' => ['openstack-cinder-volume', 'qemu-img'],
'cinder_volume_service' => 'openstack-cinder-volume',
'cinder_ceph_packages' => ['python-ceph', 'ceph-common'],
'cinder_iscsitarget_packages' => ['tgt'],
@ -359,7 +359,7 @@ when 'debian'
'cinder_api_packages' => ['cinder-api', 'python-cinderclient'],
'cinder_api_service' => 'cinder-api',
'cinder_client_packages' => ['python-cinderclient'],
'cinder_volume_packages' => ['cinder-volume'],
'cinder_volume_packages' => ['cinder-volume', 'qemu-utils'],
'cinder_volume_service' => 'cinder-volume',
'cinder_scheduler_packages' => ['cinder-scheduler'],
'cinder_scheduler_service' => 'cinder-scheduler',

View File

@ -31,6 +31,10 @@ describe 'openstack-block-storage::volume' do
expect(chef_run).not_to upgrade_package('MySQL-python')
end
it 'upgrades qemu img package' do
expect(chef_run).to upgrade_package('qemu-img')
end
it 'upgrades cinder iscsi package' do
expect(chef_run).to upgrade_package('scsi-target-utils')
end

View File

@ -16,6 +16,10 @@ describe 'openstack-block-storage::volume' do
expect(chef_run).to upgrade_package('openstack-cinder-volume')
end
it 'upgrades qemu img package' do
expect(chef_run).to upgrade_package('qemu-img')
end
it 'upgrades mysql python package' do
expect(chef_run).to upgrade_package('python-mysql')
end

View File

@ -19,6 +19,10 @@ describe 'openstack-block-storage::volume' do
expect(chef_run).to upgrade_package 'cinder-volume'
end
it 'upgrades qemu utils package' do
expect(chef_run).to upgrade_package 'qemu-utils'
end
it 'starts cinder volume' do
expect(chef_run).to start_service 'cinder-volume'
end