roles/credentials 在 JBoss Fuse 6.2 中使用 ensemble-add 时操作不足

Insufficient roles/credentials for operation when using ensemble-add in JBoss Fuse 6.2

我正在使用 JBoss Fuse 6.2 并尝试创建一个包含 3 个服务器的整体。服务器是 3 台物理服务器 运行ning Ubuntu 14.04.3 LTS 并安装了 JDK 1.8.0_60.

我将 etc/system.properties 中的根容器分别重命名为 root1、root2 和 root3,并确保所有服务器上的 etc/users.properties 中都没有配置用户。

然后我在 server1 上启动 fuse 和 运行 命令

fabric:create --new-user admin --new-user-password admin --new-user-role Administrator --zookeeper-password admin --resolver manualip --manual-ip xxx.xxx.xxx.xxx --wait-for-provisioning

xxx.xxx.xxx.xxx 是server1的IP

然后我在服务器 2 和服务器 3 上开始熔断,运行 执行以下命令:

fabric:join --zookeeper-password admin server1:2181

一切正常,server1 上 container-list 的输出是

[id]    [version]  [type]  [connected]  [profiles]              [provision status]
root1*  1.0        karaf   yes          fabric                  success
                                        fabric-ensemble-0000-1
                                        jboss-fuse-full
root2   1.0        karaf   yes          fabric                  success
root3   1.0        karaf   yes          fabric                  success

然后当我 运行 将 root2 和 root3 添加到集合中的命令时:

fabric:ensemble-add root2 root3

我收到这个错误:

执行命令时出错:java.lang.SecurityException:操作roles/credentials不足

我在 JBoss Fuse 问题跟踪器中发现了类似此问题的内容:ENTESB-3530

任何人对完成这项工作有任何建议吗?

尽量不要在fabric:create命令中使用--new-user-role Administrator参数。看来 Fuse 6.2 中的角色名称现在有所不同。让 Fuse fabric 分配默认的。

看看 fabric:create --help 是怎么说的:

--new-user-role
  The role of the new user. The option refers to karaf user (ssh, http, jmx). 
  (defaults to _g_:admin)