Failed to execute jaas commands in fabric environment.

Solution Verified - Updated -

Issue

  • When we are trying to update the security realms in Fuse, it fails with an error
Error executing command: io.fabric8.api.scr.InvalidComponentException
  • and the commands we tried are shown below.
JBossFuse:user@root> jaas:realms
Index Realm                Module Class
    1 karaf                org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
    2 karaf                org.apache.karaf.jaas.modules.publickey.PublickeyLoginModule
    3 karaf                io.fabric8.jaas.ZookeeperLoginModule
    4 karaf                org.apache.karaf.jaas.modules.ldap.LDAPLoginModule
    5 amqrealm             io.fabric8.jaas.ZookeeperLoginModule
    6 proxyrealm           io.fabric8.jaas.ZookeeperLoginModule
    7 proxyrealm           org.apache.karaf.jaas.modules.ldap.LDAPLoginModule
    8 karaf                io.fabric8.jaas.ZookeeperLoginModule
JBossFuse:user@root> jaas:manage --index 3
JBossFuse:user@root> jaas:users
Error executing command: io.fabric8.api.scr.InvalidComponentException
JBossFuse:user@root> jaas:cancel
JBossFuse:user@root> jaas:manage --index 2
JBossFuse:user@root> jaas:users
Can't get the list of users:
No backing engine serivce found for:org.apache.karaf.jaas.modules.publickey.PublickeyLoginModule
JBossFuse:user@root> jaas:cancel
JBossFuse:user@root> jaas:manage --index 8
JBossFuse:user@root> jaas:users
Error executing command: io.fabric8.api.scr.InvalidComponentException
JBossFuse:user@root> jaas:cancel
JBossFuse:user@root> jaas:manage --index 3
JBossFuse:user@root> jaas:useradd svccorpamqstg <password removed>
JBossFuse:user@root> jaas:roleadd svccorpamqstg corpamqadvisorystg
JBossFuse:user@root> jaas:roleadd svccorpamqstg corpamqadminstg
JBossFuse:user@root> jaas:update
Error executing command: io.fabric8.api.scr.InvalidComponentException
JBossFuse:user@root> jaas:cancel

Environment

  • Red Hat JBoss Fuse
    • 6.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content