sous-chefs / chef-ruby-lvm-attrib

A fork of https://github.com/gregsymons/di-ruby-lvm for use with the chef LVM cookbook
Apache License 2.0
6 stars 37 forks source link

RHEL 9.4 Requires [2.03.23(2)] #72

Open ds01efp opened 5 months ago

ds01efp commented 5 months ago

:speaking_head: Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

👻

RHEL 9.4 Requires [2.03.23(2)]

Installed latest gem 0.3.15 but creating group failing because of missing attribute for LVM

[2024-05-28T12:59:57-07:00] FATAL: ArgumentError: lvm_volume_group[vgapp] (nix_server::alloc line 14) had an error: ArgumentError: Unable to load lvm attributes [lvs.yaml] for version [2.03.23(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.1.0/gems/chef-ruby-lvm-attrib-0.3.15/lib/lvm/attributes/2.03.23(2)/lvs.yaml] 1055time="2024-05-28T12:59:57-07:00" level=fatal msg="Error running chef: exit status 1" source="chef.go:404"

:pancakes: Cookbook version

lvm (5.03) Version of the cookbook where you are encountering the issue.

:woman_cook: Chef-Infra Version

18.3.0

Version of chef-client in your environment.

:tophat: Platform details

RHEL 9.4 Operating system distribution and release version. Cloud provider if running in the cloud.

Steps To Reproduce

Steps to reproduce the behavior:

lvm_volume_group("vgapp01") do provider Chef::Provider::LvmVolumeGroup action [:create] default_guard_interpreter :default declared_type :lvm_volume_group cookbook_name "nix_server" recipe_name "alloc" physical_volumes ["/dev/sdd"] not_if { #code block } end

:police_car: Expected behavior

Volume group and volume created

A clear and concise description of what you expected to happen.

:heavy_plus_sign: Additional context

Add any other context about the problem here. e.g. related issues or existing pull requests.

lukeskaivolker commented 5 months ago

Same issue we face as well:

5.14.0-427.16.1.el9_4.x86_64

Unable to load lvm attributes [lvs.yaml] for version [2.03.23(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.1.0/gems/chef-ruby-lvm-attrib-0.3.15/lib/lvm/attributes/2.03.23(2)/lvs.yaml]

bish0polis commented 4 months ago
override['lvm']['chef-ruby-lvm-attrib']['version'] = '0.4.0'
Chef Client finished, 65/138 resources updated in 03 minutes 01 seconds