【问题标题】:403 errors when bootstrapping chef引导厨师时出现 403 错误
【发布时间】:2021-09-21 11:16:40
【问题描述】:

客户端日志:

10.41.11.3 Authorization Error:
10.41.11.3 --------------------
10.41.11.3 Your validation client is not authorized to create the client for this node (HTTP 403).
10.41.11.3
10.41.11.3 Possible Causes:
10.41.11.3 ----------------
10.41.11.3 * There may already be a client named "chef02"
10.41.11.3 * Your validation client (chef1-validator) may have misconfigured authorization permissions.

10.41.11.3 [2014-10-24T10:02:50+08:00] FATAL: Stacktrace dumped to /var/chef/cac
he/chef-stacktrace.out
10.41.11.3 Chef Client failed. 0 resources updated in 0.739747653 seconds
10.41.11.3 [2014-10-24T10:02:50+08:00] ERROR: 403 "Forbidden"
10.41.11.3 [2014-10-24T10:02:50+08:00] FATAL: Chef::Exceptions::ChildConvergeErr
or: Chef run process exited unsuccessfully (exit code 1)

我已确认不存在名为“chef02”的客户端,但我被困在可能需要解决的授权权限上。

【问题讨论】:

标签: chef-infra


【解决方案1】:

由于 Chef 12 引入了 ACL,因此获取客户端 (https://github.com/chef/chef-server/issues/63) 的访问权限可能会出现一些问题:

我有同样的问题,我用这个命令解决了:

knife acl bulk add group clients nodes '.*' update,read

(https://github.com/chef/chef-server/issues/63#issuecomment-137766205)

首先通过发出命令安装knife acl插件: chef gem install knife-acl

(更多信息:https://github.com/chef/knife-acl

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多