Problem listing clients in 0.9.8

Hi,

I’ve installed chef 0.9.8 on centos via rpm install. I’m getting an
error when trying to list existing clients via knife:

HTTP Request Returned 500 Internal Server Error: Option name’s value
does not match regular expression /^[-[:alnum:]_.]+$/
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:229:inapi_request’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:280:in
retriable_rest_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:210:inapi_request’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:110:in
get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/api_client.rb:185:inlist’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife/client_list.rb:35:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:inrun’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/knife:25 from /usr/bin/knife:19:inload’
from /usr/bin/knife:19

From web ui I can’t list clients either.

By the way other operations on client work just fine, including
showing info for a specific client. Is it possible that the problem is
that I’m using the same couchdb database from 0.9.6?

Found the problem, for some reason I had a client with an empty name.
After deleting it manually everything works fine.

On Wed, Oct 6, 2010 at 1:40 PM, Boris Shulman shulmanb@gmail.com wrote:

Hi,

I've installed chef 0.9.8 on centos via rpm install. I'm getting an
error when trying to list existing clients via knife:

HTTP Request Returned 500 Internal Server Error: Option name's value
does not match regular expression /[1]+$/
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:229:in api_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:280:in
retriable_rest_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:210:in api_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:110:in
get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/api_client.rb:185:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife/client_list.rb:35:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/knife:25 from /usr/bin/knife:19:in load'
from /usr/bin/knife:19

From web ui I can't list clients either.

By the way other operations on client work just fine, including
showing info for a specific client. Is it possible that the problem is
that I'm using the same couchdb database from 0.9.6?


  1. -[:alnum:]_. ↩︎

On Wed, Oct 6, 2010 at 5:03 AM, Boris Shulman shulmanb@gmail.com wrote:

Found the problem, for some reason I had a client with an empty name.
After deleting it manually everything works fine.

That sounds right. There is a known bug, that will be fixed in an
upcoming release, that allows objects to be created with invalid names
that later trigger the validation error that you pasted.

Cheers,

  • seth