Bug 827589

Summary: The user instance create script (jboss-as-cp) should allow a port offset to be specified
Product: [Fedora] Fedora Reporter: Dan Allen <dallen>
Component: jboss-asAssignee: Marek Goldmann <mgoldman>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: mgoldman, rruss, smarlow
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-04 12:35:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Allen 2012-06-01 19:43:52 UTC
Description of problem:

The user instance create script should allow a port offset to be specified. This port offset would be written to the port-offset attribute on the socket-binding-group element in the instance configuration file.

Version-Release number of selected component (if applicable):

7.1.1-2.fc17-noarch

How reproducible:

There is no option currently.

I propose the following argument:

-p Port offset for the socket binding group

Example:

jboss-as-cp -l $HOME/jboss-as-user-instance -c standalone-web.xml -p 100

This should create the following attribute in the instance configuration file (in this case configuration/standalone-web.xml):

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="100">
  ...
</socket-binding-group>

Comment 1 Marek Goldmann 2012-06-04 12:35:10 UTC
That's another good idea! Fixed in upstream:

https://github.com/fedora-jboss-as/jboss-as-rpm/commit/29de841838ec3043d686dfbe4b71ad7e84e4d742

It'll be available in jboss-as-7.1.1-4.

Comment 2 Fedora Update System 2012-07-04 09:41:37 UTC
jboss-as-7.1.1-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/jboss-as-7.1.1-4.fc17

Comment 3 Fedora Update System 2012-07-23 20:28:13 UTC
jboss-as-7.1.1-4.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.