Openshift:为什么我不能在区域中添加节点?

时间:2014-02-12 19:54:25

标签: 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@node1 ~]# grep -i profile /etc/mcollective/facts.yaml
node_profile: small

我在经纪人处运行oo-diagnostics并得到:

[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 

我还找到了https://lists.openshift.redhat.com/openshift-archives/users/2013-November/msg00006.html,它列出了相同的错误消息。但是,我已经将/etc/mcollective/facts.yaml中的所有内容都包含在线程中:

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

什么可能阻止节点被添加到区?

1 个答案:

答案 0 :(得分:0)

问题是节点配置错误。 https://bugzilla.redhat.com/show_bug.cgi?id=1064977应解决导致此问题的文档问题。

决议是更新/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