Search is not working with knife.
However, it does work from the OpsCode management console.
liam@gavilan:~/Documents/Development/chef-repo$ knife node show mongo1
Node Name: mongo1
Environment: _default
FQDN:
IP:
Run List: recipe[bti_mongo]
Roles:
Recipes:
Platform:
Tags:
liam@gavilan:~/Documents/Development/chef-repo$ knife search node 'mongo1'
0 items found
liam@gavilan:~/Documents/Development/chef-repo$ knife search node ''
0 items found
Any idea why that doesn't find the node?
Liam
--
Liam Kirsher
PGP: http://liam.numenet.com/pgp/
A blank query isn't valid, you need to search for 'fqdn:mongo1' or 'name:mongo1'
Dan
On Thursday, May 30, 2013 at 11:32 AM, Liam Kirsher wrote:
Search is not working with knife.
However, it does work from the OpsCode management console.
liam@gavilan:~/Documents/Development/chef-repo$ knife node show mongo1
Node Name: mongo1
Environment: _default
FQDN:
IP:
Run List: recipe[bti_mongo]
Roles:
Recipes:
Platform:
Tags:
liam@gavilan:~/Documents/Development/chef-repo$ knife search node 'mongo1'
0 items found
liam@gavilan:~/Documents/Development/chef-repo$ knife search node ''
0 items found
Any idea why that doesn't find the node?
Liam
-- Liam Kirsher PGP: http://liam.numenet.com/pgp/
If you want to search for all nodes, you can do "knife search node ':'".
--
~~ StormeRider ~~
"Every world needs its heroes [...] They inspire us to be better than we
are. And they protect from the darkness that's just around the corner."
(from Smallville Season 6x1: "Zod")
On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS
On Thu, May 30, 2013 at 11:33 AM, Daniel Condomitti
daniel@condomitti.comwrote:
A blank query isn't valid, you need to search for 'fqdn:mongo1' or
'name:mongo1'
Dan
On Thursday, May 30, 2013 at 11:32 AM, Liam Kirsher wrote:
Search is not working with knife.
However, it does work from the OpsCode management console.
liam@gavilan:~/Documents/Development/chef-repo$ knife node show mongo1
Node Name: mongo1
Environment: _default
FQDN:
IP:
Run List: recipe[bti_mongo]
Roles:
Recipes:
Platform:
Tags:
liam@gavilan:~/Documents/Development/chef-repo$ knife search node 'mongo1'
0 items found
liam@gavilan:~/Documents/Development/chef-repo$ knife search node ''
0 items found
Any idea why that doesn't find the node?
Liam
--
Liam Kirsher
PGP: http://liam.numenet.com/pgp/
Thanks for the responses. Now I get it.
On 05/30/2013 11:35 AM, Morgan Blackthorne wrote:
If you want to search for all nodes, you can do "knife search node ':'".
--
~~ StormeRider ~~
"Every world needs its heroes [...] They inspire us to be better than
we are. And they protect from the darkness that's just around the corner."
(from Smallville Season 6x1: "Zod")
On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS
On Thu, May 30, 2013 at 11:33 AM, Daniel Condomitti
<daniel@condomitti.com mailto:daniel@condomitti.com> wrote:
A blank query isn't valid, you need to search for 'fqdn:mongo1' or
'name:mongo1'
Dan
On Thursday, May 30, 2013 at 11:32 AM, Liam Kirsher wrote:
Search is not working with knife.
However, it does work from the OpsCode management console.
liam@gavilan:~/Documents/Development/chef-repo$ knife node show
mongo1
Node Name: mongo1
Environment: _default
FQDN:
IP:
Run List: recipe[bti_mongo]
Roles:
Recipes:
Platform:
Tags:
liam@gavilan:~/Documents/Development/chef-repo$ knife search
node 'mongo1'
0 items found
liam@gavilan:~/Documents/Development/chef-repo$ knife search node ''
0 items found
Any idea why that doesn't find the node?
Liam
--
Liam Kirsher
PGP: http://liam.numenet.com/pgp/
--
Liam Kirsher
PGP: http://liam.numenet.com/pgp/
On Thursday, May 30, 2013 at 11:57 AM, Liam Kirsher wrote:
Thanks for the responses. Now I get it.
On 05/30/2013 11:35 AM, Morgan Blackthorne wrote:
If you want to search for all nodes, you can do "knife search node ':'".
--
~~ StormeRider ~~
"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."
(from Smallville Season 6x1: "Zod")
On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS
On Thu, May 30, 2013 at 11:33 AM, Daniel Condomitti <daniel@condomitti.com (mailto:daniel@condomitti.com)> wrote:
A blank query isn't valid, you need to search for 'fqdn:mongo1' or 'name:mongo1'
Dan
Just FYI, there's a minor enhancement in Chef 11's knife where a query that does not contain a colon character gets expanded into a search across fqdn, IP address, roles, and a few other attributes:
https://github.com/opscode/chef/blob/master/lib/chef/knife/search.rb#L146
--
Daniel DeLeo