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

[Syndesis] confusing errror in install_ocp.sh when oc is not on $PATH

XMLWordPrintable

      When running bash install_ocp.sh --setup to install Fuse Online and the oc tool is not on the users $PATH environment, then the script returns this error:

      $ bash install_ocp.sh --setup
      Installing Syndesis CRD
      ERROR: Cannot install CRD 'Syndesis'. You have to be a cluster admin to do this.
      

      This error is rather confusing as it implies there is something wrong with the user permissions. We should rather raise an error that oc was not found.
      I got into this situation since I had defined an alias for oc, so I was able to run oc but the script was not.

              cmiranda@redhat.com Claudio Miranda
              rhn-support-tmielke Torsten Mielke
              Stefan Veres Stefan Veres (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: