-
Notifications
You must be signed in to change notification settings - Fork 122
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
Path to lvm binary should be set by default #167
Comments
Hey There If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution. |
I can confirm the issue is reproducible in version 14.14.25 of the Chef-Client. |
I am facing the same issue |
This is basically the same as the closed issue #133, that is still an issue with Chef 13 / 14.
Cookbook version
4.5.1
Chef-client version
14.5.33 with path_sanity disabled
Platform Details
RHEL 7.6
Scenario:
Create a PV on /dev/sdc
Steps to Reproduce:
Expected Result:
PV to be created
Actual Result:
Because of the change in path-sanity handling ( Ref: Chef 13 / 14 path-sanity behaviour ), we can no longer assume /sbin or /usr/sbin will always be in $PATH. Different Chef version and OS settings can now affect it as well. Therefore it seems more reliable to set the path to the lvm binary when calling it (good practice as well?).
This cookbook has recently been updated to have an internal attribute lvm_options when calling the lvm gem, eg LVM::LVM.new(lvm_options) (See examples within this cookbook)
Perhaps something similar can be done so that the command attribute is pass on to the lvm gem with the full path to lvm:
LVM::LVM.new(command: '/sbin/lvm')
The text was updated successfully, but these errors were encountered: