Problem with search

Hello!

I’ve got following problem with searching:

I’ve got node called 0001-ewpol_SUBIEKT, which I edited via knife node edit. Now it’s json (part of) look like this:

“normal”: {
“dfclient”: {
“checks”: {
“dfclient_ssh”: true,
“dfclient_vnc”: true
},
“mac”: “F4:CE:46:98:77:3A”,
“ip”: “10.0.4.8”
},
“tags”: [

]
},

When I do search (knife search node “dfclient_ip:[* TO *]”) this node is not found!

More - I’ve got another host, with ip set to 10.0.4.22. When I do knife search like above, this node is found. But when I try this:

knife search node ‘dfclient_ip:10.0.4.22’

nothing is found!

Where problem could be?


Grzegorz Marszałek
graf0@post.pl

I reinstalled chef from scratch - and problem persisted.

I'm completly unable to search by my attributes.

Any ideas?
Wiadomość napisana przez Grzegorz Marszałek w dniu 2011-03-18, o godz. 20:41:

Hello!

I've got following problem with searching:

I've got node called 0001-ewpol_SUBIEKT, which I edited via knife node edit. Now it's json (part of) look like this:

"normal": {
"dfclient": {
"checks": {
"dfclient_ssh": true,
"dfclient_vnc": true
},
"mac": "F4:CE:46:98:77:3A",
"ip": "10.0.4.8"
},
"tags": [

]
},

When I do search (knife search node "dfclient_ip:[* TO *]") this node is not found!

More - I've got another host, with ip set to 10.0.4.22. When I do knife search like above, this node is found. But when I try this:

knife search node 'dfclient_ip:10.0.4.22'

nothing is found!

Where problem could be?


Grzegorz Marszałek
graf0@post.pl


Grzegorz Marszałek
graf0@post.pl

I've noticed, that this happens only on windows nodes (unfortunately - those I'm most interested in). Each update of such node data causes error 400 in jetty logs.

Wiadomość napisana przez Grzegorz Marszałek w dniu 2011-03-18, o godz. 20:41:

Hello!

I've got following problem with searching:

I've got node called 0001-ewpol_SUBIEKT, which I edited via knife node edit. Now it's json (part of) look like this:

"normal": {
"dfclient": {
"checks": {
"dfclient_ssh": true,
"dfclient_vnc": true
},
"mac": "F4:CE:46:98:77:3A",
"ip": "10.0.4.8"
},
"tags": [

]
},

When I do search (knife search node "dfclient_ip:[* TO *]") this node is not found!

More - I've got another host, with ip set to 10.0.4.22. When I do knife search like above, this node is found. But when I try this:

knife search node 'dfclient_ip:10.0.4.22'

nothing is found!

Where problem could be?


Grzegorz Marszałek
graf0@post.pl


Grzegorz Marszałek
graf0@post.pl

Most likely this is caused by CHEF-2100[1]. I've merged a fix into 0.9-stable, and the issue is also fixed in the master (i.e. 0.10) branch.

  1. http://tickets.opscode.com/browse/CHEF-2100
    --
    Dan DeLeo
    On Friday, March 18, 2011 at 2:09 PM, Grzegorz Marszałek wrote:

I've noticed, that this happens only on windows nodes (unfortunately - those I'm most interested in). Each update of such node data causes error 400 in jetty logs.

Wiadomość napisana przez Grzegorz Marszałek w dniu 2011-03-18, o godz. 20:41:

Hello!

I've got following problem with searching:

I've got node called 0001-ewpol_SUBIEKT, which I edited via knife node edit. Now it's json (part of) look like this:

"normal": {
"dfclient": {
"checks": {
"dfclient_ssh": true,
"dfclient_vnc": true
},
"mac": "F4:CE:46:98:77:3A",
"ip": "10.0.4.8"
},
"tags": [

]
},

When I do search (knife search node "dfclient_ip:[* TO *]") this node is not found!

More - I've got another host, with ip set to 10.0.4.22. When I do knife search like above, this node is found. But when I try this:

knife search node 'dfclient_ip:10.0.4.22'

nothing is found!

Where problem could be?


Grzegorz Marszałek
graf0@post.pl


Grzegorz Marszałek
graf0@post.pl

Hello!

Wiadomość napisana przez Daniel DeLeo w dniu 2011-03-18, o godz. 23:55:

Most likely this is caused by CHEF-2100[1]. I've merged a fix into 0.9-stable, and the issue is also fixed in the master (i.e. 0.10) branch.

  1. http://tickets.opscode.com/browse/CHEF-2100
    Eh... I must really do more to search for existing tickets - I fixed that just now - seems second time :frowning:

But great, that problem is gone :slight_smile:

Cheers

Grzegorz Marszałek
graf0@post.pl