the search_env filter is missing here:

```ruby
   env_filter = " AND database_config_environment:database-config-#{node[:ceilometer][:database_instance]}"
   swift_nodes = search(:node, "roles:swift-proxy#{env_filter}") || [] 
```