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
Created attachment 861730 [details] supervisor.log
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.
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.
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.
https://github.com/openshift/origin-server/pull/4737
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.
Test on devenv_4364, Issue have been fixed. move to verified. Thanks.