Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.9.12
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Start chef-run, currently run_list has A in it.
Use knife to edit the node (run_list, etc), make it has A, and B in it, save,
chef-run finishes, save the node. Now run_list becomes A again.
When chef-client saves the node, it should retrieve the current state first.
Issue Links
- is duplicated by
-
CHEF-2710
Chef-client doesn't save changes made by knife while it was running
-
I'm confused how simply retrieving the current state can help here.
Recipes can modify any of the node's attributes (not just the run_list), and if chef-client just retrieves the current state without doing either a lock or a very complex merge process it will a) overwrites any intentional changes that cookbooks attempted to make, and b) only reduce the likelihood of a race condition, rather than eliminate it.