Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8863

Initial Infinispan subsystem cannot be created via CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.2.0.Final
    • 9.2.0.Final
    • Server
    • None
    • Hide
      1. Download `no-ispn.xml` to
        $ISPN_SERVER_HOME/standalone/configuration

        .

      2. Run the server with
        standalone.sh -c no-ispn.xml
      3. Connect via the CLI
        ispn-cli.sh -c
      4. Issue the follow commands
        /extension=org.infinispan.extension:add #works
        /subsystem=datagrid-infinispan:add() # fails with WFLYCTL0158: Operation handler failed: java.lang.IllegalStateException
        /subsystem=datagrid-infinispan/cache-container=local:add()  #fails with: "WFLYCTL0175: Resource [(\"subsystem\" => \"datagrid-infinispan\")] does not exist; a resource at address [
            (\"subsystem\" => \"datagrid-infinispan\"),
            (\"cache-container\" => \"test\")
        ] cannot be created until all ancestor resources have been added",
        
      Show
      Download `no-ispn.xml` to $ISPN_SERVER_HOME/standalone/configuration . Run the server with standalone.sh -c no-ispn.xml Connect via the CLI ispn-cli.sh -c Issue the follow commands /extension=org.infinispan.extension:add #works /subsystem=datagrid-infinispan:add() # fails with WFLYCTL0158: Operation handler failed: java.lang.IllegalStateException /subsystem=datagrid-infinispan/cache-container=local:add() #fails with: "WFLYCTL0175: Resource [(\" subsystem\ " => \" datagrid-infinispan\")] does not exist; a resource at address [ (\ "subsystem\" => \ "datagrid-infinispan\" ), (\ "cache-container\" => \ "test\" ) ] cannot be created until all ancestor resources have been added",

      If the infinispan server is created with a .xml file that does not contain a

      <subsystem xmlns="urn:infinispan:server:core:9.2"><cache-container>...</cache-container></subsystem

      entry, then it's not possible to initialise the subsystem via CLI DMR operations.

      Executing

      /subsystem=datagrid-infinispan:add()

      results in the following server error:

      16:46:18,701 INFO  [org.jboss.as.clustering.infinispan] (management-handler-thread - 2) Activating Infinispan subsystem.
      16:46:18,705 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "datagrid-infinispan")]): java.lang.IllegalStateException
      	at org.jboss.as.server.AbstractDeploymentChainStep.execute(AbstractDeploymentChainStep.java:74)
      	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:980)
      	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
      	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
      	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1402)
      	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:418)
      	at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
      	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:217)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:137)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:161)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:157)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:287)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:244)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:157)
      	at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
      	at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: