Hi there,
I’m facing something strange and not understanding
what’s going on.
I’ve attributes in cookbook, role and environment,
when running the node attributes ends up with a "loop"where attributes
are child in loop where they should not.
Here
https://gist.github.com/4118081 [1] is the gist of my env, role,
cookbook attribute file and what a knife node edit looks like after a
run.
Each run adds levels to the “loop”.
I’m not setting attributes
within my recipes and I can’t pinpoint where the problem resides.
I’ve
tried to set env and role attributes in override instead of default with
the same behavior.
If someone can help me
Regards,
Tensibai
Links:
[1] https://gist.github.com/4118081
No one to help me about it ?
Forgot to say: chef server and client
are in version 10.16.2-1
This nesting loop is quite annoying as it
ends up that I can't edit node with webui and that I found incorrect
entries in templates.
One more thing I don't understand: I'm not
saving attributes within my recipe, so I can't see why it does "set"
attributes on node.
Regards,
Tensibai
Le 2012-11-20 15:33,
Tensibai a écrit :
Hi there,
I'm facing something strange and
not understanding what's going on.
I've attributes in cookbook,
role and environment, when running the node attributes ends up with a
"loop"where attributes are child in loop where they should not.
Here https://gist.github.com/4118081 [1] is the gist of my env, role,
cookbook attribute file and what a knife node edit looks like after a
run.
Each run adds levels to the "loop".
I'm not setting
attributes within my recipes and I can't pinpoint where the problem
resides.
I've tried to set env and role attributes in override
instead of default with the same behavior.
If someone can help me
Regards,
Tensibai
Links:
[1]
https://gist.github.com/4118081
On Thursday, November 22, 2012 at 12:22 AM, Tensibai wrote:
No one to help me about it ?
Forgot to say: chef server and client are in version 10.16.2-1
This nesting loop is quite annoying as it ends up that I can't edit node with webui and that I found incorrect entries in templates.
Not sure why it's happening, there may be a similar bug on tickets.opscode.com
Also, I'm pretty sure this will be fixed with Chef 11.
One more thing I don't understand: I'm not saving attributes within my recipe, so I can't see why it does "set" attributes on node.
Regards,
Tensibai
--
Daniel DeLeo
Found something about it (which hopefully solves my direct problem)
In my recipe I was passing variables { var => node["var"] } to the
template.
It seems the mess appeared at this moment, using node
attributes directly inside the template instead of converting to a var
did solve my "nesting" problem.
Tensibai
Le 2012-11-22 09:22,
Tensibai a écrit :
No one to help me about it ?
Forgot to say:
chef server and client are in version 10.16.2-1
This nesting loop
is quite annoying as it ends up that I can't edit node with webui and
that I found incorrect entries in templates.
One more thing I
don't understand: I'm not saving attributes within my recipe, so I can't
see why it does "set" attributes on node.
Regards,
Tensibai
Le 2012-11-20 15:33, Tensibai a écrit :
Hi there,
I'm facing something strange and not understanding what's going on.
I've attributes in cookbook, role and environment, when running the
node attributes ends up with a "loop"where attributes are child in loop
where they should not.
Here https://gist.github.com/4118081 [1]
is the gist of my env, role, cookbook attribute file and what a knife
node edit looks like after a run.
Each run adds levels to the
"loop".
I'm not setting attributes within my recipes and I can't
pinpoint where the problem resides.
I've tried to set env and
role attributes in override instead of default with the same behavior.
If someone can help me
Regards,
Tensibai
Links:
[1] https://gist.github.com/4118081