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

Overriding socket binding attributes using yaml fails

XMLWordPrintable

      There is error when the same socket binding attributes are overriden by two yamls:

       
      12:57:33,860 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
          ("socket-binding-group" => "standard-sockets"),
          ("remote-destination-outbound-socket-binding" => "mail-snmt")
      ]) - failure description: "WFLYCTL0212: Duplicate resource [
          (\"socket-binding-group\" => \"standard-sockets\"),
          (\"remote-destination-outbound-socket-binding\" => \"mail-snmt\")
      ]"
      12:57:33,863 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details. - Server configuration file in use: standalone.xml
      

      First test.yml: 

      wildfly-configuration:
          socket-binding-group:
              standard-sockets:
                remote-destination-outbound-socket-binding:
                  mail-snmt:  
                    host: foo
                    port: 8081
                  foo2:
                    host: foo2
                    port: 8082
      

      a second overriding yaml:

      wildfly-configuration:
        socket-binding-group:
          standard-sockets:
            remote-destination-outbound-socket-binding:
              mail-snmt:
                host: foo-override
                port: 8083
              foo2:
                host: foo2-override
                port: 8084
      

      Expected is that changes from 2nd yaml will be applied.

              ehugonne1@redhat.com Emmanuel Hugonnet
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: