Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodes returned from search are missing attributes from ohai? #24

Closed
jwmarshall opened this issue Jun 2, 2016 · 3 comments
Closed

Nodes returned from search are missing attributes from ohai? #24

jwmarshall opened this issue Jun 2, 2016 · 3 comments

Comments

@jwmarshall
Copy link

I have a cookbook that relies on search to build hostsfile entries for all nodes in the environment. In my case I need to pull the private network interface address out of the node attributes, but for some reason this fails for all the ways I've tested it. Even the ['ipaddress'] attribute of a returned node seems to be nil. I've checked the temp files created by kitchen-nodes and it has all the expected ohai information, but I cannot seem to access them in my chef recipes. Any idea what the issue might be? I can try to provide an example if its not already something youre testing for, unfortunately I cannot share my existing cookbook.

@jwmarshall
Copy link
Author

Ok after some more testing I am getting the correct value from the ['ipaddress'] attribute on a node search. However the ['network'] attribute is nil.

@jwmarshall
Copy link
Author

I figured out my problem!

@raffomania
Copy link

@jwmarshall what was your solution? Currently also encountering a nil network attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants