Closed eyespies closed 8 years ago
+1. Just ran into this same problem.
From @zts on #chef IRC:
https://github.com/chef-cookbooks/lvm/blob/master/attributes/default.rb#L21
default['lvm']['di-ruby-lvm-attrib']['version'] = '0.0.26'
Set the version of the gem in attributes.
Cookbook version
2.1.0
Chef-client version
[root@ip-172-18-0-171 etc]# chef-client -v Chef: 12.10.24
Platform Details
[root@ip-172-18-0-171 etc]# cat /etc/centos-release CentOS release 6.7 (Final)
Scenario:
Creating a logical volume fails
Steps to Reproduce:
Create a logical volume on CentOS 6.7 fails when the latest version of LVM2 is installed:
Expected Result:
The system should create a logical volume, set it up for swap, and then enable the swap space.
Actual Result:
I seem to have a newer version of LVM2:
I am running LVM 2.02.143, hence the
Error [No such file or directory @ rb_sysopen - /root/.chefdk/gem/ruby/2.1.0/gems/di-ruby-lvm-attrib-0.0.25/lib/lvm/attributes/2.02.143(2)/lvs.yaml]
Checking the Gem, that directory/file does indeed NOT exist:
Installing the latest version of the di-ruby-lvm-attrib however, does: