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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.ER3
    • 7.1.0.DR19
    • Security
    • Not Required
    • 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

      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'."
      

            rhn-engineering-lgao Lin Gao
            rhatlapa@redhat.com Radim Hatlapatka (Inactive)
            Hynek Švábek Hynek Švábek (Inactive)
            Hynek Švábek Hynek Švábek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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