Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load lvm attributes [lvs.yaml] for version [2.02.188(2)] #215

Open
RoeeFabrikant opened this issue Nov 21, 2021 · 3 comments
Open
Labels
Upstream Bug Bug in upstream vendor application

Comments

@RoeeFabrikant
Copy link
Contributor

πŸ₯ž Cookbook version

5.2.0

πŸ‘©β€πŸ³ Chef-client Version

17.7.29

🎩 Platform details

sles 12 sp5

Steps To Reproduce

lvm_volume_group vg01r1 do
  physical_volumes volumes
  physical_extent_size '32M'
  logical_volume 'data' do
    size '100%VG'
    filesystem 'ext3'
    mount_point location: '/data', options: 'noatime,nodiratime'
    stripes volumes.count
    stripe_size 4
  end
end

Error

[2021-11-21T13:11:08+00:00] FATAL: ArgumentError: lvm_volume_group[vg01r1] (litc-docker::database-disk-sliced line 18) had an error: ArgumentError: Unable to load lvm attributes [lvs.yaml] for version [2.02.188(2)]. The version/object may not be supported or you may need to upgrade the chef-ruby-lvm-attrib gem. Error [No such file or directory @ rb_sysopen - /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/chef-ruby-lvm-attrib-0.3.3/lib/lvm/attributes/2.02.188(2)/lvs.yaml]

@ramereth
Copy link
Contributor

@roee73 it looks like you're using an older chef-ruby-lvm-attrib gem. Can you please update it to the latest and confirm it's still not working? I think it will still not work but I wanted to confirm before making an upstream PR to resolve this. Thanks!

@ramereth ramereth added Bug Something isn't working Waiting on Contributor Awaiting on the person who raised this to update labels Nov 22, 2021
@RoeeFabrikant
Copy link
Contributor Author

@roee73 it looks like you're using an older chef-ruby-lvm-attrib gem. Can you please update it to the latest and confirm it's still not working? I think it will still not work but I wanted to confirm before making an upstream PR to resolve this. Thanks!

Hi Lance,
We are updating the chef-ruby-lvm-attrib gem to the latest version before we are running this block:

chef_gem 'chef-ruby-lvm-attrib' do
  action :upgrade
  clear_sources true
  compile_time true
end

include_recipe 'lvm'

lvm_volume_group vg01r1 do
  physical_volumes volumes
  physical_extent_size '32M'
  logical_volume 'data' do
    size '100%VG'
    filesystem 'ext3'
    mount_point location: '/data', options: 'noatime,nodiratime'
    stripes volumes.count
    stripe_size 4
  end
end

I have opened PR for chef-ruby-lvm-attrib repository , that may resolve the issue:
sous-chefs/chef-ruby-lvm-attrib#39

@ramereth
Copy link
Contributor

Yeah, that should fix it once it's merged/released.

@ramereth ramereth added Upstream Bug Bug in upstream vendor application and removed Waiting on Contributor Awaiting on the person who raised this to update Bug Something isn't working labels Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upstream Bug Bug in upstream vendor application
Projects
None yet
Development

No branches or pull requests

2 participants