summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMark Vanderwiel <vanderwl@us.ibm.com>2015-03-24 11:58:28 -0500
committerMa Wen Cheng <wenchma@cn.ibm.com>2015-04-09 15:00:27 +0000
commit98688befe1ff9fe7bbdbf89680584042b4268d7d (patch)
tree9f0c363ce2109b76ae9983ff1772ed06ba6608a3 /spec
parent440f32f4fb030a03aa3e9c92cefa434d92809ee5 (diff)
Make sure lvm2 package is installed
lvm volume recipe makes use of lvm commands like vgcreate. These commands are part of the lvm2 package which may not be a dependency for the base openstack cinder packages anymore. So, make sure this get installed before using those commands. Change-Id: I75f47260677b409ff32c4b2c6fc5598a31214ecf Closes-Bug: #1435968
Notes
Notes (review): Verified+2: Jenkins Code-Review+1: Zhu Zhu <bjzzu.zz@gmail.com> Code-Review+2: Ma Wen Cheng <wenchma@cn.ibm.com> Code-Review+1: John Kasperski <jckasper@linux.vnet.ibm.com> Workflow+1: JJ Asghar <jj@getchef.com> Code-Review+1: Samuel Cassiba <sam@cassiba.com> Submitted-by: Jenkins Submitted-at: Mon, 13 Apr 2015 20:13:39 +0000 Reviewed-on: https://review.openstack.org/167321 Project: stackforge/cookbook-openstack-block-storage Branch: refs/heads/master
Diffstat (limited to 'spec')
-rw-r--r--spec/volume_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/volume_spec.rb b/spec/volume_spec.rb
index 28d6c3c..f891089 100644
--- a/spec/volume_spec.rb
+++ b/spec/volume_spec.rb
@@ -243,6 +243,10 @@ describe 'openstack-block-storage::volume' do
243 stub_command('vgs cinder-volumes').and_return(false) 243 stub_command('vgs cinder-volumes').and_return(false)
244 end 244 end
245 245
246 it 'upgrades lvm packages' do
247 expect(chef_run).to upgrade_package 'lvm2'
248 end
249
246 it 'cinder vg active' do 250 it 'cinder vg active' do
247 expect(chef_run).to enable_service 'cinder-group-active' 251 expect(chef_run).to enable_service 'cinder-group-active'
248 end 252 end