运行命令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
运行load命令,它会提供相同的错误,但会完成,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日志试图告诉我什么,它在说什么注册表?
答案 0 :(得分:0)
当我从本地机器运行fleetctl到远程集群时,也会发生这种情况。
它正在讨论的注册表是车队注册表,已经使用fleetctl submit
或fleetctl load
提交和/或加载的单位。
在这些情况下我通常做的是连接其中一个节点,然后从那里运行fleetctl start
命令。然后,您可以在本地计算机上运行它们而不会出现任何问题。
我怀疑是由于某种原因,当您运行该命令时,单元文件未在整个群集中加载。