Bug 1034057 - Servers in host-slave.xml are not affected by assisted port offset change.
Summary: Servers in host-slave.xml are not affected by assisted port offset change.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Installer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER2
: EAP 6.3.0
Assignee: Francisco Canas
QA Contact: Petr Kremensky
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 07:59 UTC by Petr Kremensky
Modified: 2014-09-03 04:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-28 15:41:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Kremensky 2013-11-25 07:59:33 UTC
Description of problem:
Offsets for server-one and server-two in host-slave.xml are not configured by assisted port offset change.

Version-Release number of selected component (if applicable):
EAP 6.2.0.CR3

How reproducible:
Always

Steps to Reproduce:
 1. Start gui installation. Go to Socket Bindings screen using default configuration.
 2. Select "Configure an offset for all default port bindings.", and select arbitrary offset type.
 3. Finish the installation. Open the $JBOSS_HOME/domain/configuration/host-slave.xml file

Actual results:
<servers>
    <server name="server-one" group="main-server-group"/>
    <server name="server-two" group="other-server-group">
        <socket-bindings port-offset="150"/>
    </server>
</servers>

Expected results:
<servers>
    <server name="server-one" group="main-server-group">
        <socket-bindings port-offset="$offset"/>
    </server>
    <server name="server-two" group="other-server-group">
        <socket-bindings port-offset="(150 + $offset)"/>
    </server>
</servers>

Comment 1 Francisco Canas 2013-11-27 16:07:35 UTC
I have modified to host-slave.xml.patch to include port-offset changes. So for example, with a custom offset of 455, the resulting host-slave.xml file contained this:

    <servers>
        <server name="server-one" group="main-server-group">
            <socket-bindings port-offset="455"/>
        </server>
        <server name="server-two" group="other-server-group">
            <!-- server-two avoids port conflicts by incrementing the ports in
                 the default socket-group declared in the server-group -->
            <socket-bindings port-offset="605"/>
        </server>
    </servers>

See commit for details:
http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=00b9631a812c492b576757481b6eedbc1d00df12

Comment 2 Petr Kremensky 2014-04-25 07:12:43 UTC
Verified on EAP 6.3.0.ER2


Note You need to log in before you can comment on or make changes to this bug.