[jbosstools-issues] [JBoss JIRA] (JBIDE-11073) OpenShift Express Tool: Create a way to invoke rhc-port-forward functionality which enables users to debug their cloud environments with their local tools
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Wed Mar 7 08:41:40 EST 2012
[ https://issues.jboss.org/browse/JBIDE-11073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674371#comment-12674371 ]
Max Rydahl Andersen commented on JBIDE-11073:
---------------------------------------------
this would be truly useful, but we should also allow using 127.0.0.1 as the host since on mac this portforwarding does not work out of the box if done outside of 127.0.0.1.
I imagine what we will do is scan for the needed services similar to what rhc-port-forward does and then show UI with service name, host, port and then have checkbox that says "Use 127.0.0.1 as host" that is disabled by default on all other OS's than Mac. This will force 127.0.0.1 to be used and then of course need to handle that ports might already be bound so should be able to edit those ports at some point too.
See here: http://planet.jboss.org/post/debugging_and_browsing_openshift_applications_in_eclipse
for needed workarounds on mac.
And http://www.beanizer.org/site/index.php/en/Articles/Java-ssh-tunneling-with-jsch.html and http://stackoverflow.com/questions/5336744/possible-to-open-a-ssh-tunnel-using-java for examples of setting up tunnel with jsch.
> OpenShift Express Tool: Create a way to invoke rhc-port-forward functionality which enables users to debug their cloud environments with their local tools
> -----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-11073
> URL: https://issues.jboss.org/browse/JBIDE-11073
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Environment: OpenShift Express Tools (on Eclipse)
> Reporter: Nam Duong
> Assignee: Andre Dietisheim
> Fix For: 3.3.0.Beta1
>
>
> If an OpenShift node that's hosting the user's app is running mysql on port 3306 on 126.0.2.17, you can't access that externally. You need to ssh into the node to run mysql or you need to embed phpmyadmin. rhc-port-forward allows you to access that port and other available ports.
> Usage: /usr/bin/rhc-port-forward
> Forward remote ports to the workstation
> -l|--rhlogin rhlogin Red Hat login (RHN or OpenShift login with OpenShift Express access) (Default: nduong+mac at redhat.com)
> -a|--app Target application (required)
> -p|--password password RHLogin password (optional, will prompt)
> -d|--debug Print Debug info
> -h|--help Show Usage info
> --config path Path of alternate config file
> --timeout # Timeout, in seconds, for connection
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list