Bug 1063703 - 8000/8443 port is not available for jbossas-7 and aerogear app
Summary: 8000/8443 port is not available for jbossas-7 and aerogear app
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-11 09:58 UTC by Yan Du
Modified: 2015-05-15 00:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-26 19:12:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
supervisor.log (10.16 KB, text/plain)
2014-02-11 09:59 UTC, Yan Du
no flags Details

Description Yan Du 2014-02-11 09:58:17 UTC
Description of problem:
Create jbossas-7 or aerogear app, visit the app via 8000 or 8443 port. Both 8000 and 8443 port are not avaiable.


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


How reproducible:
Always



Steps to Reproduce:

1. Create an jbossas-7 app or create an aerogear app 
2. Visit the app via 8000/8443 port
eg: http://j7-111.dev.rhcloud.com:8000
    https://j7-111.dev.rhcloud.com:8443
For aerogear app, should visit below link:
    http://push1-111.dev.rhcloud.com:8000/simplepush/info
    https://push1-111.dev.rhcloud.com:8443/simplepush/info




Actual results:
For jbossas-7 app, return 503 when visiting 8000/8443 port

For aerogear app, direct to openshift mail page (https://www.openshift.com/) when 8000/8443 port

supervisor.log has attached.




Expected results:
8000/8443 port should work normally for the app


Additional info
8000/8443 port is available for jbossews-1.0/2.0 and jbosseap-6.0

Comment 1 Yan Du 2014-02-11 09:59:22 UTC
Created attachment 861730 [details]
supervisor.log

Comment 2 Ben Parees 2014-02-11 16:22:25 UTC
the AS7 cartridge explicitly defines the websockets port as 8676, but does not listen on that port.  Trying to dig up the history on why this was done.

The Aerogear cartridge copied that template, but not sure why it gets redirected instead of just a 503.  Investigating that also.

Comment 3 Ben Parees 2014-02-11 19:25:21 UTC
Aerogear is being redirected due to changes mrunal made which are causing the websocket routes to not be generated for the aerogear cart, so he's going to fix that.

Still evaluating whether we should make a change to the jbossas cartridge, but it's basically working as expected right now since by default there's nothing listening on the websocket port (8676) jbossAS.

Comment 4 Ben Parees 2014-02-11 20:12:10 UTC
After additional investigation I think the AS7 configuration should be left as is (separate port 8676 for websockets, which applications must listen on if they want to support websockets).  This decision is based on the current state of AS7 native websocket support, which is probably why the separate port was originally used.

Handing the bug over to mrunal to address the protocl routing issue that is affecting the aerogear cartridge.

Comment 6 openshift-github-bot 2014-02-11 22:53:54 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/c9c9f39a508745a778b9bd8b3a87386113733810
Bug 1063703: Assume ws if websocket is true.

Comment 7 Yan Du 2014-02-12 09:51:14 UTC
Test on devenv_4364, Issue have been fixed. move to verified. Thanks.


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