运行命令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.101fleetctl 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.101fleetctl 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日志想告诉我什么,它说的是什么注册表?
发布于 2015-05-11 15:00:46
当我从本地机器运行fleetctl到远程集群时,也会发生这种情况。
它谈论的注册表是舰队注册表,已经提交和/或使用fleetctl submit或fleetctl load加载的单元。
在这些情况下,我通常会连接到其中一个节点,并从那里运行我的fleetctl start命令。然后,您可以从本地计算机上运行它们,而不会再有任何问题。
我怀疑的是,由于某些原因,当您运行该命令时,单元文件并未加载到整个集群中。
https://stackoverflow.com/questions/30125131
复制相似问题