Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9745

Fuse Online install doesn't work when "oc version" contains other "oc" occurences

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: fuse-7.1
    • Fix Version/s: fuse-7.3
    • Component/s: Fuse Online
    • Labels:
      None

      Description

      When trying to install Fuse Online 7.1. on my cluster I have noticed an error during checking of the version of oc client and server and the execution of install_ocp.sh was interrupted

      Line 247 of install_ocp.sh from https://raw.githubusercontent.com/syndesisio/fuse-online-install/1.4/install_ocp.sh contains the following code

      local test=$(oc version | grep oc | tr -d oc\ v | cut -f1 -d "+")

      Now my cluster is named ocplabs.com which unfortunately contains also "oc" and is returned in the response of "oc version". What we really want is the first line of the response of "oc version".

      I have fixed it like this (quick and dirty):

      local test=$(oc version | head -1 | grep oc | tr -d oc\ v | cut -f1 -d "+")

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rnetuka Radovan Netuka
                Reporter:
                jcordes Jochen Cordes
                Tester:
                Andrej Vano
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: