Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3067

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

    XMLWordPrintable

Details

    • 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

    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

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Hynek Švábek Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 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