[chef] Node won't stay in configured environment


Chronological Thread 
  • From: Benoit Caron < >
  • To:
  • Subject: [chef] Node won't stay in configured environment
  • Date: Thu, 20 Oct 2011 14:16:48 -0400

I have this node I want to change from my "preproduction" to "production" chef environment.

If I edit the node in the Web UI, when I submit the form it says that my node is in the correct environment. But if I recheck the node list or refresh the node list, it still says "preproduction".

If I use knife like this:

knife exec -E 'nodes.transform("name:my-node-name-in-chef") { |n| n.chef_environment("production") }'

and then do a 

knife node show my-node-name-in-chef

It still say "preproduction" too... except that odd time when it DID said production, as expected... but got back to "preproduction" on next call to knife node show.

Any idea what can alter the node environment like this?

This is on chef-server 0.10.0 and chef-client 0.10.4 (I know, should upgrade my server)





Archive powered by MHonArc 2.6.16.

§