Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11183

add-alias for credential store might fail when executed in the same batch operation with credential store creation

    XMLWordPrintable

    Details

    • Target Release:
    • Steps to Reproduce:
      Hide
      1. start EAP server
      2. execute this in CLI:
        batch
        /subsystem=elytron/credential-store=cred-store:add(create=true, modifiable=true,location=cred-store.jks, relative-to=jboss.server.data.dir, credential-reference={clear-text=passwd}
        /subsystem=elytron/credential-store=cred-store:add-alias(alias=alias1, secret-value=sec1)
        run-batch
        
      Show
      start EAP server execute this in CLI: batch /subsystem=elytron/credential-store=cred-store:add(create=true, modifiable=true,location=cred-store.jks, relative-to=jboss.server.data.dir, credential-reference={clear-text=passwd} /subsystem=elytron/credential-store=cred-store:add-alias(alias=alias1, secret-value=sec1) run-batch
    • Release Notes Docs Status:
      Not Required

      Description

      When creating in single batch command credential store and adding aliases to it, it often fails with [1] (depending on machine speed) indicating that credential store is not yet up and running. I guess this is somehow related to runtime-only operations.

      I believe this should work in batch operations. If it is not possible this needs to be at least very well documented.

      [1]

      10:49:03,633 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("add-alias") failed - address: ([
          ("subsystem" => "elytron"),
          ("credential-store" => "cred-store")
      ]) - failure description: "WFLYELY00007: The required service 'service org.wildfly.security.credential-store.cred-store' is not UP, it is currently 'STARTING'."
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gaol Lin Gao
              Reporter:
              rhatlapa Radim Hatlapatka (Inactive)
              Tester:
              Hynek Švábek Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified