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

Restore configurability of the management client bind address

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.DR13
    • None
    • Management, Remoting
    • None
    • Regression
    • Not Required
    • Hide

      Create simple client app (change client bind address to some local one):

      public static void main( String[] args ) throws IOException, InterruptedException {
              ModelControllerClientConfiguration conf = new ModelControllerClientConfiguration.Builder()
                      .setHostName("localhost").setPort(9990).setClientBindAddress("192.168.112.10").build();
              ModelControllerClient client = ModelControllerClient.Factory.create(conf);
              ModelNode response = client.execute(Operations.createOperation("whoami"));
              Thread.sleep(15000);
          }
      

      During sleep use ss utility to investigate sockets, look for socket connection to 127.0.0.1:9990
      Wrong output would be similar to

      tcp   ESTAB      0      0                                                                                                                             ::ffff:127.0.0.1:42149                                                                                                                          ::ffff:127.0.0.1:9990
      

      Expected output would be similar to

      tcp   ESTAB      0      0                                                                                                                        ::ffff:192.168.112.10:49675                                                                                                                          ::ffff:127.0.0.1:9990
      
      Show
      Create simple client app (change client bind address to some local one): public static void main( String [] args ) throws IOException, InterruptedException { ModelControllerClientConfiguration conf = new ModelControllerClientConfiguration.Builder() .setHostName( "localhost" ).setPort(9990).setClientBindAddress( "192.168.112.10" ).build(); ModelControllerClient client = ModelControllerClient.Factory.create(conf); ModelNode response = client.execute(Operations.createOperation( "whoami" )); Thread .sleep(15000); } During sleep use ss utility to investigate sockets, look for socket connection to 127.0.0.1:9990 Wrong output would be similar to tcp ESTAB 0 0 ::ffff:127.0.0.1:42149 ::ffff:127.0.0.1:9990 Expected output would be similar to tcp ESTAB 0 0 ::ffff:192.168.112.10:49675 ::ffff:127.0.0.1:9990

      It looks like the AS7-6223 functionality was dropped in the move to Remoting 5:

      https://github.com/wildfly/wildfly-core/blame/master/protocol/src/main/java/org/jboss/as/protocol/ProtocolConnectionUtils.java#L166

      Something needs to be restored or we have a regression.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Martin Simka Martin Simka
              Martin Simka Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: