Getting SecurityException while starting container after changing fabric admin user password through the jaas command

Solution Verified - Updated -

Issue

  • In fabric environment, after changing the admin user password, I am trying to start the child container, but getting java.lang.SecurityException: Authentication failed.

  • I followed the following steps

1. Create a fabric
fabric:create --new-user admin --new-user-password admin123 --new-user-role Administrator --zookeeper-password P@ssw0rd --resolver manualip --global-resolver manualip --manual-ip 127.0.0.1 --wait-for-provisioning

2. Create a managed container
fabric:container-create-child root managed-node

3. Before changing the admin user password, container-start and container-stop are working fine
JBossFuse:karaf@root> container-stop managed-node
The list of container names: [managed-node]
Container 'managed-node' stopped successfully.
JBossFuse:karaf@root> container-start managed-node
The list of container names: [managed-node]

4. After changing the admin user password, it is no longer possible to start or stop the managed containers:
JBossFuse:karaf@root> jaas:realms
Index Realm                Module Class
1     karaf                io.fabric8.jaas.ZookeeperLoginModule
JBossFuse:karaf@root> jaas:manage --index 1
JBossFuse:karaf@root> jaas:useradd admin newP@ssw0rd
JBossFuse:karaf@root> jaas:update

JBossFuse:karaf@root> container-stop managed-node
The list of container names: [managed-node]
Error executing command: java.lang.SecurityException: Authentication failed

Environment

  • RedHat JBoss Fuse
    • 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.