Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-5885

self-managed-installer should check if it's connected to the cluster in some commands

XMLWordPrintable

    • False
    • None
    • False
    • Testable
    • No
    • No
    • No
    • Pending
    • None

      Description of problem:

      When installing RHODS Self-Managed using the installer there is a check to verify if we are connected to the cluster:

      $ ./rhods install
      
      [20221111 15:09:01] [INFO] Your log file is ./logs/20221111-150901-install.txt
      [20221111 15:09:01] [INFO] Verifying if your cluster meets the pre-requirement for Red Hat Openshift Data Science
      [20221111 15:09:01] [INFO] Checking oc connection and user role
      Error from server (Forbidden): users.user.openshift.io "~" is forbidden: User "system:anonymous" cannot get resource "users" in API group "user.openshift.io" at the cluster scope
      [20221111 15:09:01] [FAIL] You are NOT logged to the cluster. Please log in to your cluster.
       

       

      But, with the other commands there is no check and they are run regardless of the connection status, providing wrong results:

      • ./rhods uninstall:
        • Nothing is done to the cluster due to not being connected, but this command returns [SUCCESS] Red Hat Openshift Data Science Uninstall Process has successfullly completed
        • There is a typo in successfully
      • ./rhods cleanup:
        • Nothing is done to the cluster due to not being connected, but this command returns [SUCCESS] Red Hat Openshift Data Science Cleanup Process is successfullly finished
        • There is a typo in successfully
      • ./rhods deploy-beta-features:
        • Nothing is done to the cluster due to not being connected, but this command returns [FAIL] There is no instance of Red Hat Openshift Data Science installed in this cluster
      • ./rhods uninstall-beta-features 
        • Nothing is done to the cluster due to not being connected, but this command returns [SUCCESS] Uninstalled Red Hat Openshift Data Science Beta components. even if nothing was really done

      Prerequisites (if any, like setup, operators/versions):

      rhods self-managed-installer as for Nov 11

      Steps to Reproduce

      1. clone the repo
      2. run the commands in description without connecting to any cluster

            rhn-support-jlee JOOHO LEE
            rhn-support-jgarciao Jorge Garcia Oncins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: