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

Cannot refresh environment variable(s) for an OpenShift application

XMLWordPrintable

    • Hide

      ASSERT: Have an OpenShift application
      EXEC: Start and stop port forwarding on the application.
      EXEC: Open Manage env. vars dialog
      EXEC: Hit Refresh button

      RESULT: Error dialog is shown and there is error in log.
      EXPECTED RESULT: Environment variables are refreshed successfully.

      Show
      ASSERT: Have an OpenShift application EXEC: Start and stop port forwarding on the application. EXEC: Open Manage env. vars dialog EXEC: Hit Refresh button RESULT: Error dialog is shown and there is error in log. EXPECTED RESULT: Environment variables are refreshed successfully.
    • Workaround Exists
    • Hide

      Perform refresh on the connection.

      Show
      Perform refresh on the connection.

      In Manage Application Environment Variable shell opened either via servers adapter or OpenShift Explorer view are listed environment variables for a specific application. Refresh button should refresh state of variables according to state on a server, but click on Refresh button shows following error dialog with following stack in log:

      com.openshift.client.OpenShiftSSHOperationException: Failed to execute remote ssh command "eapapp"
      	at com.openshift.internal.client.ApplicationResource.sshExecCmd(ApplicationResource.java:892)
      	at com.openshift.internal.client.ApplicationResource.loadPorts(ApplicationResource.java:860)
      	at com.openshift.internal.client.ApplicationResource.refresh(ApplicationResource.java:634)
      	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.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: com.jcraft.jsch.JSchException: session is down
      	at com.jcraft.jsch.Session.openChannel(Session.java:844)
      	at com.openshift.internal.client.ApplicationResource.sshExecCmd(ApplicationResource.java:885)
      	... 6 more
      

      Otherwise adding, editing and removing environment variables work OK.

              adietish@redhat.com André Dietisheim
              mlabuda_jira Marián Labuda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: