Red Hat Bugzilla – Bug 838804
rhc-port-forward is stopped incorrectly after accessing forwarded httpd link from browser against scaled app
Last modified: 2015-05-14 22:00:03 EDT
Description of problem:
port forward is terminated automatically once accessing the forwarded httpd link (127.1.2.1:8080) from browser during rhc-port-forward process for scaling app.
Please refer to following error message:
Checking available ports...
Using email@example.com (scaled instance)...
Binding haproxy -> 127.1.2.129:8080...
Binding haproxy -> 127.1.2.130:8080...
Binding httpd -> 127.1.2.1:8080...
Use ctl + c to stop
Error trying to forward ports. You can try to forward manually by running:
ssh -N -L 127.1.2.129:8080:127.1.2.129:8080 -L 127.1.2.130:8080:127.1.2.130:8080 -L 127.1.2.1:8080:127.1.2.1:8080 firstname.lastname@example.org
Version-Release number of selected component (if applicable):
Fedora 15/17/ RHL6.3
Steps to Reproduce:
1. Create a scaled app
#rhc app create -a php1 -t php-5.3 -l email@example.com -p *** -s
2.#rhc-port-forward -a php1 -d
3. Try to open the link with returned port,like 127.1.2.1:8080.
Web page is not shown (The connection to the server was reset while the page was loading.), and error is displayed from command line after accessing from browser.
Web page can be displayed correcty, and no error displayed from command line.
It works well with non-scaling app.
Mark this bug QN_QA as the design has been changed, scalable app can't support rhc port forward.
The resonable message are shown as below when performing rhc port forward for scalble app. So make it as verified. Thanks.
OpenShiftmatoMacBook-Pro:joyce root# rhc port-forward -a myscapp1
This utility does not currently support scaled applications.
You will need to set up port forwarding manually.