Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-18147

Port forwarding, Environment Variables: Port forwarding tears the SSH session down, harms environment variables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 4.3.0.Beta1
    • 4.2.0.CR1
    • openshift
    • None
    • Hide

      ASSERT: Have an application on OpenShift.
      EXEC: Select Port forwarding... in OpenShift application context menu.
      EXEC: Start and stop port forwarding. Close Port forwarding shell.
      EXEC: Open Edit user environment variables shell via context menu of an application.
      EXEC: Add locally environment variable (click Add... and fill in details, click OK|.
      EXEC: Click Refresh button.

      RESULT: Error is shown about failed execution of ssh command. Variable is still presented in table.
      EXPECTED RESULT: There is no error. Table is empty.

      Show
      ASSERT: Have an application on OpenShift. EXEC: Select Port forwarding... in OpenShift application context menu. EXEC: Start and stop port forwarding. Close Port forwarding shell. EXEC: Open Edit user environment variables shell via context menu of an application. EXEC: Add locally environment variable (click Add... and fill in details, click OK|. EXEC: Click Refresh button. RESULT: Error is shown about failed execution of ssh command. Variable is still presented in table. EXPECTED RESULT: There is no error. Table is empty.
    • Workaround Exists
    • Hide

      1. Open Port forwarding shell and click Refresh. Close Port forwarding shell.
      2. Open Edit user environment variable shell. Add variable locally and hit Refresh button.
      3. Table will be emptied and there is no error.

      Show
      1. Open Port forwarding shell and click Refresh. Close Port forwarding shell. 2. Open Edit user environment variable shell. Add variable locally and hit Refresh button. 3. Table will be emptied and there is no error.

      After starting and stopping port forwarding there happens something wrong with session / ssh calling. I found it in Environment variables shell after creating env. variable and clicking on Refresh button. Following error has shown in log and environment variable from table was not removed, although it should be (Refresh button update local environment variables to environment variable of an existing OpenShift application).

      com.openshift.client.OpenShiftSSHOperationException: Failed to execute remote ssh command "eap"
      	at com.openshift.internal.client.ApplicationResource.sshExecCmd(ApplicationResource.java:871)
      	at com.openshift.internal.client.ApplicationResource.loadPorts(ApplicationResource.java:840)
      	at com.openshift.internal.client.ApplicationResource.refresh(ApplicationResource.java:614)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.environment.EditEnvironmentVariablesWizardModel.refreshEnvironmentVariables(EditEnvironmentVariablesWizardModel.java:35)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.environment.EnvironmentVariablesWizardPage$RefreshEnvironmentVariablesJob.doRun(EnvironmentVariablesWizardPage.java:292)
      	at org.jboss.tools.openshift.express.internal.ui.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: com.jcraft.jsch.JSchException: session is down
      	at com.jcraft.jsch.Session.openChannel(Session.java:843)
      	at com.openshift.internal.client.ApplicationResource.sshExecCmd(ApplicationResource.java:865)
      	... 6 more
      

              Unassigned Unassigned
              mlabuda_jira Marián Labuda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: