Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5966

Error executing command: Insufficient credentials when we use JMX Mbeans for creating fabric & ssh containers

XMLWordPrintable

    • % %

      1. - Unzip jboss-fuse-full-6.2.1.redhat-084.zip
      2. - vi etc/users.properties to grant admin user
      3. - bin/fuse
      • Connect to Hawtio, and create fabric like following:

      http://localhost:8181/hawtio/jmx/operations?nid=root-io.fabric8-ClusterBootstrapManager

      io.fabric8:type=ClusterBootstrapManager::createCluster(java.util.Map)

      {
      	"username": "admin",
      	"globalResolver": "",
      	"waitForProvisioning": true,
      	"zookeeperPassword": "admin",
      	"role": "admin",
      	"resolver": "",
      	"manualIp": "",
      	"password": "admin"
      }
      
      • After, create a ssh container like following:

      http://localhost:8181/hawtio/jmx/operations?nid=root-io.fabric8-Fabric
      io.fabric8:type=Fabric::createContainers(java.util.Map)

      {
                     "providerType": "ssh",
                     "username": "aboucham",
                     "password": "xxxxxxx",
                     "host": "10.36.4.81",
                     "name": "sshabel",
                     "path": "/home/aboucham/dev/sshcontainers",
                     "profiles": ["default", "mq-client"]
      }
      
      • Connect to the container created and try to run the osgi:refresh command, and you get Insufficient credentials error:
        e.g;
        Fabric8:admin@sshabel> osgi:refresh 158
        Error executing command: Insufficient credentials.
        

              ggrzybek Grzegorz Grzybek
              rhn-support-aboucham Abel Bouchama
              Andrej Vano Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: