2

运行命令fleetctl load registry@1.service registry-presence@1.service我得到以下输出:

2015/05/08 10:25:26 WARN fleetctl.go:772: Error retrieving Unit(registry@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry%401.service?alt=json: forwarding request denied
2015/05/08 10:30:31 WARN fleetctl.go:772: Error retrieving Unit(registry-presence@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry-presence%401.service?alt=json: forwarding request denied
2015/05/08 10:36:14 WARN fleetctl.go:772: Error retrieving Unit(registry@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 10:42:44 WARN fleetctl.go:772: Error retrieving Unit(registry-presence@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry-presence%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 10:54:46 WARN fleetctl.go:772: Error retrieving Unit(registry@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 10:57:51 WARN fleetctl.go:772: Error retrieving Unit(registry-presence@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry-presence%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 10:58:12 WARN fleetctl.go:772: Error retrieving Unit(registry@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)
2015/05/08 11:02:43 WARN fleetctl.go:772: Error retrieving Unit(registry-presence@1.service) from Registry: Get http://domain-sock/fleet/v1/units/registry-presence%401.service?alt=json: ssh: rejected: administratively prohibited (open failed)

这只是重复,我已经让命令运行了 30 多分钟。当我按 CTRL-C 并运行时,fleetctl list-unit-files我看到以下内容:

UNIT                            HASH    DSTATE          STATE           TARGET
registry-presence@1.service     f54aa0d loaded          inactive        0d8d13be.../172.17.8.101
registry@1.service              d233714 loaded          inactive        0d8d13be.../172.17.8.101

的输出fleetctl list-units是:

UNIT                            MACHINE                         ACTIVE          SUB

如果我运行加载命令,-block-attempts=2它会给出相同的错误但完成并且输出fleetctl list-unit-files是:

UNIT                            HASH    DSTATE          STATE           TARGET
registry-presence@1.service     f54aa0d loaded          loaded        0d8d13be.../172.17.8.101
registry@1.service              d233714 loaded          loaded        0d8d13be.../172.17.8.101

的输出fleetctl list-units是:

UNIT                            MACHINE                         ACTIVE          SUB
registry-presence@1.service     0d8d13be.../172.17.8.101        inactive        dead
registry@1.service              0d8d13be.../172.17.8.101        inactive        dead

我想知道 WARN 日志试图告诉我什么,它在说什么注册表?

4

1 回答 1

0

当我从本地机器运行flectl到远程集群时,也会发生这种情况。

它所说的注册表是车队注册表,即已提交和/或加载的单位fleetctl submitor fleetctl load

在这些情况下,我通常做的是连接到其中一个节点,然后fleetctl start从那里运行我的命令。然后,您可以从本地计算机上运行它们而不会出现任何问题。

我怀疑的是,由于某种原因,当您运行该命令时,单元文件没有加载到整个集群中。

于 2015-05-11T07:00:45.623 回答