#23620·consul

定义了多个过滤链,这些过滤链具有重叠的匹配规则

作者: hazard0975创建于 2026年5月15日更新于 2026年8月24日
标签type/bug

Nomad 版本

nomad 版本 Nomad v2.0.0 BuildDate 2026-04-21T15:42:13Z Revision 7a90601f4d9bc473718311fe5167c0c1f66500ba root@nomad-client15:~# consul version Consul v1.19.2 Revision 048f1936 Build Date 2024-08-27T16:06:44Z Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)

操作系统和环境详细信息

Ubuntu 22.04.5 LTS

问题

将 Nomad 发展集群从 1.8.3 升级到 2.0,并将 Consul v1.19.2 升级到 v1.22.7 后,出现以下错误:

May 15 00:36:45 nomad-client15 consul[284309]: error=
May 15 00:36:45 nomad-client15 consul[284309]: | rpc error: code = Internal desc = Error adding/updating listener(s) outbound_listener:127.0.0.1:15001: error adding listener '127.0.0.1:15001': multiple filter chains with overlapping matching rules are defined

重现步骤

我不确定是什么导致了这个问题,因为我无法在单节点测试集群上重现它。 我知道我提供的信息很少,但也许您可以指导我走对路。或者告诉我您需要哪些额外信息。 有时 consul reload 有助于解决问题,并且在部署新作业或执行 systemctl restart consul 时会返回错误。 稍后,我将更新生产集群,以便我可以逐步从 1.8 升级到 2.0,看看什么时候出现问题。

Nomad 作业示例

flows-consumer.txt

客户端配置

nomad-client.txt

内容来源: hashicorp/consul