[jbosstools-issues] [JBoss JIRA] (JBIDE-26159) Server adapter: port forwarding is not stopped if you delete the pod

Josef Kopriva (Jira) issues at jboss.org
Thu Oct 4 03:04:00 EDT 2018


     [ https://issues.jboss.org/browse/JBIDE-26159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josef Kopriva closed JBIDE-26159.
---------------------------------


Port forwarding is stopped as expected.

Verified in:
Red Hat Developer Studio
Version: 12.9.0.GA
Build id: GA-v20180928-1629-B3448
Build date: 20180928-1629

> Server adapter: port forwarding is not stopped if you delete the pod
> --------------------------------------------------------------------
>
>                 Key: JBIDE-26159
>                 URL: https://issues.jboss.org/browse/JBIDE-26159
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.6.0.AM3
>            Reporter: Andre Dietisheim
>            Assignee: Dmitrii Bocharov
>            Priority: Minor
>              Labels: port_forwarding, server_adapter
>             Fix For: 4.9.0.Final
>
>
> steps:
> Screencast: https://youtu.be/XMA--S9zj6s
> # EXEC: create an application (via ex. nodejs-mongo-persistent template)
> # ASSERT: pod for service is running
> # EXEC: select pod and pick "Port Forwarding..." and start the forwarding
> # ASSERT: forwarding is running
> # EXEC: verify on the cmd-line that the forwarding is running
> {code}
> $ ps ax | grep oc
> 47793   ??  S      0:00.25 /Users/adietish/Downloads/oc_341 port-forward --token=XXXXX --server=https://open.paas.redhat.com --insecure-skip-tls-verify=true -n jbide25000 -p nodejs-mongo-persistent-7-rsmlr 5858:5858 8080:8080
> {code}
> # EXEC: in Explorer: select the pod for your service and pick "Delete"
> # ASSERT: pod gets deleted and recreated
> # EXEC: verify on the cmd-line that the forwarding is running
> {code}
> $ ps ax | grep oc
> 47793   ??  S      0:00.25 /Users/adietish/Downloads/oc_341 port-forward --token=XXXXX --server=https://open.paas.redhat.com --insecure-skip-tls-verify=true -n jbide25000 -p nodejs-mongo-persistent-7-rsmlr 5858:5858 8080:8080
> {code}
> Result:
> The port forwarding is still running.
> In Eclipse there's no way for you to see this since you have to select the new pod and pick "Port Forwarding..." on this new pod. It'll then tell you that the port forwarding is *NOT* running, since we're asking about port-forwarding for the new pod (not the old one that was killed).
> PS. it looks like there's a timeout somewhere, oc stops port-forwarding at some point (many minutes later) and the process disappears.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbosstools-issues mailing list