envoyproxy / envoyproxy/envoy

Cluster ‘xxx’ Not Found Error When Adding Fluentd Access Log to Listener

Open
#36,511 8 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
437

Description

Hi everyone,

I’m encountering an issue when trying to add a Fluentd access log to a listener in Envoy. I receive the following error:
```
[2024-10-09 18:05:42.405][75338004][warning][config] [source/extensions/config_subscription/grpc/grpc_subscription_impl.cc:138] gRPC config for type.googleapis.com/envoy.config.listener.v3.Listener rejected: Error adding/updating listener(s) testlstnrnaJDny: cluster 'abc' was not found
```

However, the Fluentd cluster abc is clearly added, as shown below:

```
{
"dynamic_active_clusters":
[
{
"cluster":
{
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
"alt_stat_name": "aasdaa",
"load_assignment":
{
"cluster_name": "abc",
"endpoints":
[
{
"lb_endpoints":
[
{
"endpoint":
{
"address":
{
"socket_address":
{
"address": "1.1.1.1",
"port_value": 80
}
}
}
}
]
}
]
},
"name": "abc",
"type": "STATIC"
},
"last_updated": "2024-10-09T15:05:42.392Z",
"version_info": "12a56d24a2dca4e5778852ecdf1aa919a78e9ca35f729bdb9a7c71998cc288dc"
}
]
}
```

![image](https://github.com/user-attachments/assets/833473ca-fc2a-44fa-963f-7517dda0633f)

Despite the cluster being active and correctly configured, Envoy fails to recognize it when applying the listener configuration.

Any insights or suggestions on what might be causing this discrepancy would be greatly appreciated. Thanks in advance for your help!

Note: When I assign the same cluster abc to a route, it works without any issues.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.