Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.10.0
-
Fix Version/s: 0.10.0
-
Component/s: Chef Server
-
Labels:None
-
Environment:
tested on RHEL 5.6, chef server installed via gem. should impact all environments
Description
Running knife index rebuild does not appear to reindex environment which is a new index. Shown by the output of the command:
[chef@i-5-140-VM ~]$ knife index rebuild -y
Chef::ApiClient: success
Chef::DataBag: success
Chef::Node: success
Chef::Role: success
I would expect Chef::Environment: to be listed if it were re-indexing environments properly. I believe the problem is in how the list of items to be rebuilt is generated, see chef-0.10.0.rc.0/lib/chef/solr_query.rb line 155:
[Chef::ApiClient, Chef::Node, Chef::Role].each do |klass|
results[klass.name] = reindex_all(klass) ? "success" : "failed"
end
Hoping it is as simple as adding in Chef::Environment to the list, but I haven't tried hacking it up myself yet.
Activity
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
8d 2h 3m | 1 | Daniel DeLeo | 27/Apr/11 10:25 PM |