0
votes

What happens if during a chef-client run someone is altering the chef server using knife upload cookbooks, knife environment from file... or knife role from file ? Is it possible that the node will remain in an uncertain state if these commands are being run sequently and the chef-client is being executed in between ? Or does the Chef server have any lock mechanism that prevents this issue ?

Thanks in advance, Antonio

1

1 Answers

0
votes

There is no locking system, the last writer will win. The state is never uncertain per se, but it can be confusing to the end user(s). This is especially notable with node edits, since a running chef-client keeps a copy of the node data for the duration of the run, potentially overwriting server-side changes made to the node while it was converging. As such, we do not recommend editing nodes unless you are certain there is no running chef-client process on it.