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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.3
    • fuse-7.1
    • Fuse Online
    • None

      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 "+")

            rnetuka@redhat.com Radovan Netuka
            rhn-gps-jcordes Jochen Cordes (Inactive)
            Andrej Vano Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: