Chef occasionally fails when adding/removing instances
dvalfre opened this issue · comments
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.