Rancher2.0集群部署问题

Rancher2.0集群部署只能启用一个Server节点,第二个Server节点启动时报错无法连接主节点。 启动命令: 第一节Server节点启动命令: docker run -d --restart=unless-stopped -p 8080:8080 -p 9345:9345 rancher/server:v2.0.0-alpha10 --db-host 100.100.1.61 --db-port 3306 --db-user cattle --db-pass cattle --db-name cattle --advertise-address 100.100.1.62 第二个Server节点启动命令: docker run -d --restart=unless-stopped -p 8080:8080 -p 9345:9345 rancher/server:v2.0.0-alpha10 --db-host 100.100.1.61 --db-port 3306 --db-user cattle --db-pass cattle --db-name cattle --advertise-address 100.100.1.63 第一个Server节点报错信息: 2018-01-22 03:22:07,691 ERROR [] [] [] Loop 2/2/0 14ms java.lang.NullPointerException: null         at io.cattle.platform.loop.ConditionsLoop.checkHealthyHosts(ConditionsLoop.java:76)         at io.cattle.platform.loop.ConditionsLoop.run(ConditionsLoop.java:31)         at io.cattle.platform.engine.manager.impl.LoopWrapper.lambda$executeLoop$1(LoopWrapper.java:112)         at io.cattle.platform.deferred.util.DeferredUtils.nest(DeferredUtils.java:53)         at io.cattle.platform.engine.manager.impl.LoopWrapper.executeLoop(LoopWrapper.java:112)         at org.apache.cloudstack.managed.context.NoException$1.doRun(NoException.java:10)         at org.apache.cloudstack.managed.context.NoExceptionRunnable.runInContext(NoExceptionRunnable.java:15)         at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:36)         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:57)         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:110)         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:54)         at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:33)         at org.apache.cloudstack.managed.context.NoException.run(NoException.java:12)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)         at java.lang.Thread.run(Thread.java:748) 第二个Server节点报错信息: 2018-01-22 03:24:04,731 ERROR   Failed to connect to master at 100.100.1.62 
已邀请:

hongxiaolu

赞同来自: weiweinews

在预览版alpha10 中,这个问题是已知的。这个问题已修复,只是代码还未合并。

要回复问题请先登录注册