Консульский сервисный реестр ACL не найден - PullRequest
0 голосов
/ 19 сентября 2018

Я сталкиваюсь с этой ошибкой в ​​моем агенте, когда он пытается зарегистрировать службу из файла конфигурации:

Sep 19 08:48:57 agent-2 consul[5454]: 2018/09/19 08:48:57 [ERR] consul: "Catalog.NodeServices" RPC failed to server 172.20.20.11:8300: rpc error making
Sep 19 08:48:57 agent-2 consul[5454]: 2018/09/19 08:48:57 [ERR] agent: failed to sync remote state: rpc error making call: ACL not found
Sep 19 08:49:04 agent-2 consul[5454]: 2018/09/19 08:49:04 [ERR] consul: "Coordinate.Update" RPC failed to server 172.20.20.11:8300: rpc error making cal
Sep 19 08:49:04 agent-2 consul[5454]: 2018/09/19 08:49:04 [ERR] agent: Coordinate update error: rpc error making call: ACL not found

Я использую локальную конфигурацию vagrant, чтобы попытаться настроить консул с включенными ACL.Это конфигурация ACL моего агента:

{
  "acl_datacenter": "dc1",
  "acl_down_policy": "extend-cache",
  "acl_agent_token": "66a77320-cdbe-33e6-f3f8-ae248d965fc9",
  "acl_token": "df4ff023-7da2-ba66-dfb0-bf120af1d163" // the policy is set as below
}

Приведенный выше acl_token имеет следующую политику:

service "" {
   policy = "write"
}

node "" {
  policy = "write"
}

service "" {
  policy = "read"
}

node "" {
  policy = "read"
}

И это моя конфигурация регистрации службы в агенте:

{
  "service": {
    "name": "dummy1",
    "port": 8000
  }
}

Чего мне не хватает?

...