-
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
Start+Enable the lvmetad service on RHEL7 #52
Conversation
Start+Enable the lvmetad service on RHEL7
Hi we get the below error with this fix
the service command is not able to enable |
Ok from my investigation, I believe the base image is amazon linux
which is recognised as a redhat family with +7 version however amazon linux still use init.d instead of systemd, which caused the error, if my investigation is correct. |
I've removed the |
Hi @irvingpop according to this i believe amazon linux 2017 is classified as but amazon linux 2017 doesn't use Systemd i believe we for the below change
we need to either add a condition
or we remove the |
Thanks @Shuliyey you're right - my change didn't account for Amazon linux, my apologies. It was also done during a time period when Chef client didn't reliably detect RHEL7 as a systemd, but that was resolved a long time ago. could you please open a pull request to change the behavior? I think both or your suggestions could be safely implemented at this point. |
Correction: it looks like a PR has already been submitted for that in #127 |
thanks @irvingpop , sorry i didn't reply in time. I can see the PR in #127 , i was wondering, do you think the best change for this is to exclude the amazon linux, or actually removed the so if node['platform_family'] == 'rhel' && node['platform_version'].to_i >= 7 && node['platform'] != 'amazon' or remove provider Chef::Provider::Service::Systemd I've mentioned the above in #127, thx for referencing it ;) |
Hi @irvingpop I've submitted my pull-request #128, i believe the kitchen test passed. I don't believe #127 is the correct change, it failed the test with the same error, i got for amazon linux 2017. theoretically i even think, the check condition Because i think the It's more on the level of lvm configuration that defines whether |
just a note, i tried removing it failed on ubuntu with
not sure why it's |
the lvmetad service is required by default in RHEL7 but is not automatically started. This patch enables and starts the service on RHEL7.
fixes: #43