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

Chef occasionally fails when adding/removing instances #230

Open
dvalfre opened this issue Jul 16, 2023 · 0 comments
Open

Chef occasionally fails when adding/removing instances #230

dvalfre opened this issue Jul 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dvalfre
Copy link
Contributor

dvalfre commented Jul 16, 2023

It has been observed that Chef fails on occasion with the following error:

 ERROR: resource execute[remove-vm.overcommit_memory-in-sysctl] is configured to notify resource execute[reload-sysctl] with action run, but execute[reload-sysctl] cannot be found in the resource collection

This error happens when instances are added or removed and the platform runs ey-init::integrate.

A workaround is pasted below. Please be aware that this fix has not been throughly tested, so test it on a non-production environment beforehand.

Add the following lines at the beginning of file ey-init/recipes/integrate.rb, and overwrite the recipe:

execute "reload-sysctl" do
  command "sysctl -p"
  action :nothing
end

Once more evidence of this issue, and proper reproduction steps, are available, then a fix will be released.

@dvalfre dvalfre added the bug Something isn't working label Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant