Openshift:为什么我不能将节点添加到区域?

Openshift:为什么我不能将节点添加到区域?,openshift,paas,Openshift,Paas,我正在尝试将节点添加到区域: [root@broker ~]# oo-admin-ctl-district -c add-node -n small_district -i node1.example.com ERROR OUTPUT: Node with server identity: node1.example.com is of node profile '' and needs to be 'small' to add to district 'small_district'

我正在尝试将节点添加到区域:

[root@broker ~]# oo-admin-ctl-district -c add-node -n small_district -i node1.example.com
ERROR OUTPUT:
Node with server identity: node1.example.com is of node profile '' and needs to be 'small'     to add to district 'small_district'
但是,当我转到节点时,它似乎知道它应该是一个小的:

[root@node1 ~]# grep -i profile /etc/mcollective/facts.yaml
node_profile: small
我在代理上运行oo诊断并获得:

[root@broker ~]# oo-diagnostics 
FAIL: test_node_profiles_districts_from_broker
      No node hosts found. Please install some,
      or ensure the existing ones respond to 'mco ping'.
      OpenShift cannot host gears without at least one node host responding.

FAIL: run_script
oo-accept-systems -w 2 had errors:
--BEGIN OUTPUT--
FAIL: No node hosts responded. Run 'mco ping' and troubleshoot if this is unexpected.
1错误

但mco ping没有显示出任何问题:

[root@broker ~]# mco ping
node1.example.com                        time=106.82 ms


---- ping statistics ----
1 replies max: 106.82 min: 106.82 avg: 106.82 
我还发现,其中列出了相同的错误消息。但是,我已经在/etc/mcollective/facts.yaml中拥有了线程获得的所有信息:

[root@node1 ~]# grep 'node_profile' /etc/mcollective/facts.yaml 
node_profile: small

什么可能会阻止将节点添加到district

问题是节点配置错误。应解决导致此问题的文档问题

解决方案是更新/etc/mcollective/server.cfg:

[root@node1 ~]# git diff --color /etc/mcollective/server.cfg.old /etc/mcollective/server.cfg
diff --git a/etc/mcollective/server.cfg.old b/etc/mcollective/server.cfg
index c614ed9..fff36c5 100644
--- a/etc/mcollective/server.cfg.old
+++ b/etc/mcollective/server.cfg
@@ -22,4 +22,5 @@ plugin.activemq.pool.1.password = marionette

 # Facts
 factsource = yaml
-plugin.yaml = /opt/rh/ruby193/root/etc/mcollective/facts.yaml
+plugin.yaml = /etc/mcollective/facts.yaml