diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f814b6..36b6700 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/attributes/default.rb b/attributes/default.rb index 2e8db03..14f3c78 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -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', diff --git a/spec/volume-redhat_spec.rb b/spec/volume-redhat_spec.rb index ca1caa9..934f512 100644 --- a/spec/volume-redhat_spec.rb +++ b/spec/volume-redhat_spec.rb @@ -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 diff --git a/spec/volume-suse_spec.rb b/spec/volume-suse_spec.rb index 88c0db3..ad6d32a 100644 --- a/spec/volume-suse_spec.rb +++ b/spec/volume-suse_spec.rb @@ -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 diff --git a/spec/volume_spec.rb b/spec/volume_spec.rb index 51c4d98..fa11620 100644 --- a/spec/volume_spec.rb +++ b/spec/volume_spec.rb @@ -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