Converging node not picking up changes to cookbook


#1

I made some changes to an app cookbook, bumped the version, then uploaded with knife. I pinned the version in the environment associated with the node, but when I run chef-client, it’s not picking up the changes. Using chef 11.6 for client, and my server is 11.0.8 I’m not a seasoned chef user by any means, and googling hasn’t helped much. Thanks.

Bill


#2

Hi Bill,

so my first idea would be that the version is probably still pinned
through the environment. Could you check that once again? Maybe even
unpin it?

knife environment show ENVIRONMENT shows you the pinned version.

Check using knife cookbook show COOKBOOK [VERSION] [PART] [FILENAME]
that the version contains really the file as you expect it.

Yours
Steffen

On 18/01/14 07:34, William Hatch wrote:

I made some changes to an app cookbook, bumped the version, then uploaded with knife. I pinned the version in the environment associated with the node, but when I run chef-client, it’s not picking up the changes. Using chef 11.6 for client, and my server is 11.0.8 I’m not a seasoned chef user by any means, and googling hasn’t helped much. Thanks.

Bill


#3

Ugh, I just found the “user error” causing all this; one line I didn’t catch within the recipe that was causing the same error. Sorry for the noise; chef was working as it should. Thanks for the help and the good info.

Bill

On Jan 18, 2014, at 5:28 AM, Steffen Gebert st+gmane@st-g.de wrote:

Hi Bill,

so my first idea would be that the version is probably still pinned
through the environment. Could you check that once again? Maybe even
unpin it?

knife environment show ENVIRONMENT shows you the pinned version.

Check using knife cookbook show COOKBOOK [VERSION] [PART] [FILENAME]
that the version contains really the file as you expect it.

Yours
Steffen

On 18/01/14 07:34, William Hatch wrote:

I made some changes to an app cookbook, bumped the version, then uploaded with knife. I pinned the version in the environment associated with the node, but when I run chef-client, it’s not picking up the changes. Using chef 11.6 for client, and my server is 11.0.8 I’m not a seasoned chef user by any means, and googling hasn’t helped much. Thanks.

Bill