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

Server adapter: unusable if oc is not on the path

    XMLWordPrintable

Details

    • Hide

      1) create a cdk server
      2) Set a workspace 'oc' location
      3) MAKE SURE $PATH does NOT have an 'oc' on it. Can test this via 'which oc' and make sure not found.
      4) via the created openshift connection, create a project, and an application (eap-basic-s2i etc)
      5) Create a server adapter once the app is created
      6) Verify that publishing functions as expected.

      Show
      1) create a cdk server 2) Set a workspace 'oc' location 3) MAKE SURE $PATH does NOT have an 'oc' on it. Can test this via 'which oc' and make sure not found. 4) via the created openshift connection, create a project, and an application (eap-basic-s2i etc) 5) Create a server adapter once the app is created 6) Verify that publishing functions as expected.

    Description

      The openshift rest client lib is not including the full path when calling ProcessBuilder. So process builder is being asked to run a command named "oc" without the full path to it. In such situation, the process builder (or the OS, not 100% sure which) will revert to searching the system path for the given command, and choose the one on the system path.

      Since my machine does not have 'oc' on the system path, openshift tools cannot run the oc command, or publish.

      This also blocks adoption of JBIDE-24236, which allows users to select different OC. On linux, the system path's OC will always be chosen, regardless of any user settings.

      Attachments

        Issue Links

          Activity

            People

              dbocharo@redhat.com Dmitrii Bocharov (Inactive)
              rob.stryker Rob Stryker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: