chef-infraknife

"FATAL: No nodes returned from search!" while searching or accessing node using SSH


I am using EC2 for creating instances.

When I run knife node list, I can see all nodes

NodeA,
NodeB,
NodeC

When I try to search NodeC, it gives me an error message

FATAL: No nodes returned from search!

I am getting same error when I try to access same node NodeC using SSH.

$ knife search node name:NodeC
FATAL: No nodes returned from search!

But when I run knife node list, I can see NodeC in the list.

Even when I run knife search node:, it shows all nodes except NodeC

Can anyone suggest solution on this?


Solution

  • Has NodeC completed a successful run of chef-client? An up-to-date set of attributes is not uploaded to the Chef server if this is not the case which would explain why you are not seeing anything from knife-search.