Skip to content

Commit

Permalink
fix for issue #40. updated screenshots for RHOAI 2.6 (#42)
Browse files Browse the repository at this point in the history
* fix for issue #40. updated screenshots for RHOAI 2.6

* Update modules/chapter1/pages/rhods-install-web-console.adoc

Co-authored-by: Jaime Ramírez <[email protected]>

---------

Co-authored-by: Jaime Ramírez <[email protected]>
  • Loading branch information
rsriniva and jramcast authored Feb 21, 2024
1 parent 9c45226 commit be22612
Show file tree
Hide file tree
Showing 18 changed files with 79 additions and 69 deletions.
Binary file modified modules/chapter1/images/rhods2-channel-change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods2-clusters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods2-conditions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods2-create-cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods2-delete-dsc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods2-delete-dsci.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods2-uninstall-operator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods_install1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods_install2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods_install3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods_install4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods_install5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/chapter1/images/rhods_verify1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions modules/chapter1/pages/dependencies-install-web-console.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

As described in the xref::install-general-info.adoc[General Information about Installation] section you may need to install other operators depending on the components and features of OpenShift AI you want to use. This section will discuss installing and configuring those components.

It is generally recommended to install any dependent operators prior to installing the *Red{nbsp}Hat OpenShift Data Science* operator.

It is generally recommended to install any dependent operators prior to installing the *Red{nbsp}Hat OpenShift AI* operator.

https://www.redhat.com/en/technologies/cloud-computing/openshift/pipelines[Red{nbsp}Hat OpenShift Pipelines Operator]::
The *Red Hat OpenShift Pipelines Operator* is required if you want to install the *Data Science Pipelines* component.
Expand Down Expand Up @@ -80,7 +79,7 @@ NOTE: Some of these options may vary slightly depending on your version of OpenS
+
image::nfd_install2.png[width=800]

5. Click on the **Install** button at the bottom of to view the to proceed with the installation. A window showing the installation progress will pop up.
5. Click on the **Install** button at the bottom of the page to proceed with the installation. A window showing the installation progress will pop up.
+
image::nfd_install3.png[width=800]

Expand Down Expand Up @@ -120,7 +119,7 @@ image::gpu_install1.png[width=800]
+
image::gpu_install2.png[width=800]

5. Click on the **Install** button at the bottom of to view the to proceed with the installation. A window showing the installation progress will pop up.
5. Click on the **Install** button at the bottom of the page to proceed with the installation. A window showing the installation progress will pop up.
+
image::gpu_install3.png[width=800]

Expand All @@ -140,7 +139,7 @@ image::gpu_configure2.png[width=800]
+
image::gpu_verify1.png[width=800]

10. After the *Red{nbsp}Hat OpenShift Data Science* operator has been installed and configured, users will be able to see an option for "Number of GPUs" when creating a new workbench.
10. After the *Red{nbsp}Hat OpenShift AI* operator has been installed and configured, users will be able to see an option for "Number of GPUs" when creating a new workbench.
+
image::gpu_verify2.png[width=800]

Expand Down
8 changes: 2 additions & 6 deletions modules/chapter1/pages/install-general-info.adoc
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
= General Information about Installation

Red{nbsp}Hat OpenShift AI is available to install a self-managed version as an operator through OperatorHub or as a fully managed solution through OpenShift Marketplace.

Red{nbsp}Hat OpenShift AI is available to install as an operator through the *OperatorHub*, or as a fully managed solution through the OpenShift Marketplace.

[INFO]
====
The product name has been recently changed to *Red{nbsp}Hat OpenShift AI (RHOAI)*, but the operator still uses the earlier name: *Red{nbsp}Hat OpenShift Data Science*.
In this course, most references to the product use the new name.
However, references to the operator and UI elements might still use the previous name.
The product name has been recently changed to *Red{nbsp}Hat OpenShift AI (RHOAI)* (old name *Red{nbsp}Hat OpenShift Data Science*). In this course, most references to the product use the new name. However, references to some UI elements might still use the previous name.
====

In addition to the *Red{nbsp}Hat OpenShift AI* Operator there are some other operators that you may need to install depending on which features and components of *Red{nbsp}Hat OpenShift AI* you want to install and use.
Expand Down
85 changes: 46 additions & 39 deletions modules/chapter1/pages/rhods-install-web-console.adoc
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
= Installing Red{nbsp}Hat OpenShift AI Using the Web Console

*Red{nbsp}Hat OpenShift AI* is available as an operator via OpenShift Operator Hub. You will install the *Red{nbsp}Hat OpenShift Data Science operator V2* using the OpenShift web console in this section.
*Red{nbsp}Hat OpenShift AI* is available as an operator via OpenShift Operator Hub. You will install the *Red{nbsp}Hat OpenShift AI operator* using the OpenShift web console in this section.

== Demo: Installation of Red{nbsp}Hat OpenShift AI

IMPORTANT: The installation requires a user with the _cluster-admin_ role


. Login to the Red Hat OpenShift using a user which has the _cluster-admin_ role assigned.

. Navigate to **Operators** -> **OperatorHub** and search for *Red{nbsp}Hat OpenShift Data Science*.
. Navigate to **Operators** -> **OperatorHub** and search for *OpenShift AI*.
+
image::rhods_install1.png[width=800]
image::rhods_install1.png[title=Search for OpenShift AI operator,width=800]

. Click on the Red{nbsp}Hat OpenShift Data Science operator and in the pop up window click on **Install** to open the operator's installation view.
. Click on the `Red{nbsp}Hat OpenShift AI` operator and in the pop up window click on **Install** to open the operator's installation view.
+
image::rhods_install2.png[width=800]
image::rhods_install2.png[title=OpenShift AI Operator Details,width=800]

. In the Install Operator page, leave all of the options as default and click on the *Install* button to start the installation.
. In the `Install Operator` page, leave all of the options as default and click on the *Install* button to start the installation.
+
image::rhods_install3.png[width=800]
image::rhods_install3.png[title=Install Operator with default values,width=800]

. The operator Installation progress window will pop up. The installation may take a couple of minutes.
+
image::rhods_install4.png[width=800]
image::rhods_install4.png[title=RHOAI Operator Installing,width=800]

. When the operator's installation is finished, click on the *Create DataScienceCluster* button to create and configure your cluster.
+
image::rhods_install5.png[width=800]
image::rhods_install5.png[title=RHOAI Operator Installed,width=800]

. In the *Create DataScienceCluster* view select components that will be installed and managed by the operator.
+
Expand All @@ -44,44 +43,55 @@ There are following components to choose from:
* *KServe:* Kserve is a Kubernetes-based serverless framework for inferencing (scoring) deep learning models. It provides a consistent and Kubernetes-native way to deploy, serve, and manage machine learning models in production environments. KServe is designed to be scalable and efficient, allowing for automatic scaling of model serving based on demand.
+
* *ModelMeshServing:* ModelMesh Serving is the Controller for managing ModelMesh, a general-purpose model serving management/routing layer.
+
* *TrustyAI*: TrustyAI aims to help explain black-box machine learning models by using explainable AI (XAI) techniques. XAI techniques are used within TrustyAI to introspect these black-box models to describe predictions and outcomes.
+
* *Workbenches:* Workbenches allow to examine and work with data models in an isolated area. It enables you to create a new Jupyter notebook from an existing notebook container image to access its resources and properties. For data science projects that require data to be retained, you can add container storage to the workbench you are creating.
+
For this demonstration accept the default (pre-selected) components selection - Dashboard, Data Science Pipelines, Model Mesh Serving and Workbenches.
For this demonstration accept the default (pre-selected) components selection - Dashboard, Data Science Pipelines, Model Mesh Serving, TrustyAI, and Workbenches.
+
You can choose to create the DataScienceCluster using either the _Form view_ or the _YAML View_. The _Form view_ is a web based form and 'YAML view' is based on a YAML definition of the DataScience cluster resource. The following picture shows the _Form view_.
+
image::rhods2-create-cluster.png[width=800]
image::rhods2-create-cluster.png[title=Create DSC default options,width=800]
+
If you choose the _YAML view_, you are presented with a template of the YAML DataScienceCluster resource definition similar to the one below.
+
----
apiVersion: datasciencecluster.opendatahub.io/v1
kind: DataScienceCluster
metadata:
name: default
labels:
app.kubernetes.io/name: datasciencecluster
app.kubernetes.io/instance: default
app.kubernetes.io/instance: default-dsc
app.kubernetes.io/part-of: rhods-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: rhods-operator
name: default-dsc
spec:
components:
codeflare:
managementState: Removed <1>
managementState: Removed <1>
dashboard:
managementState: Managed <2>
managementState: Managed <2>
datasciencepipelines:
managementState: Managed
kserve:
managementState: Removed
serving:
ingressGateway:
certificate:
type: SelfSigned
managementState: Managed
name: knative-serving
managementState: Managed
modelmeshserving:
managementState: Managed
ray:
managementState: Removed
trustyai:
managementState: Managed
workbenches:
managementState: Managed
----
<1> For components you *do not* want to install use *Removed*
<2> For components you *want* to install and manage by the operator use *Managed*
Expand All @@ -90,47 +100,44 @@ After naming the cluster and choosing the components you wish the operator to in

. After creating the DataScienceCluster a view showing the DataScienceCluster details opens. Wait until the status of the cluster reads *Phase: Ready*. This represents the status of the whole cluster.
+
image::rhods2-clusters.png[width=800]
image::rhods2-clusters.png[title=DataScienceCluster Instance Ready,width=800]
+
You may also check the status of individual installed components by looking at their conditions. Click on the *default* cluster and switch to the YAML view. Scroll down to view *conditions*.
You may also check the status of individual installed components by looking at their conditions. Click on the *default-dsc* cluster and switch to the YAML view. Scroll down to view *conditions*. It may take some time for the default DataScienceCluster resources to be fully created and running.
+
image::rhods2-conditions.png[width=800]
image::rhods2-conditions.png[title=Conditions of individual components]
+
Each condition is represented by a *type* and a *status*. The *Type* is a string describing the condition, for instance _odh-dashboardReady_ and the status says whether it is _true_ or not. The following example shows the *Ready* status of the Dashboard component.
+
[subs=+quotes]
----
- lastHeartbeatTime: '2023-11-13T10:53:20Z'
lastTransitionTime: '2023-11-13T10:53:20Z'
- lastHeartbeatTime: '2024-02-20T06:43:16Z'
lastTransitionTime: '2024-02-20T06:43:16Z'
message: Component reconciled successfully
reason: ReconcileCompleted
status: 'True' <1>
type: odh-dashboardReady <2>
type: dashboardReady <2>
- lastHeartbeatTime: '2024-02-20T06:43:18Z'
lastTransitionTime: '2024-02-20T06:43:18Z'
message: Component reconciled successfully
reason: ReconcileCompleted
status: 'True'
type: workbenchesReady
----
<1> Status of the condition. _True_ means that the condition is met, _False_ means that the condition is not met.
<2> Type represents the meaning of the condition. Together with the value of _status_ you can assess the state of the component. In this example _type=odh-dashboardReady_ and _status=True_ means that the *Dashboard* component is ready.
+
Similarly to the example above other *Red{nbsp}Hat Data Science* components have their condition types. The following list shows the condition types for the *Red{nbsp}Hat Data Science* components.
+
* rayReady
* codeflareReady
* model-meshReady
* workbenchesReady
* data-science-pipelines-operatorReady
* odh-dashboardReady
<2> Type represents the meaning of the condition. Together with the value of _status_ you can assess the state of the component. In this example _type=dashboardReady_ and _status=True_ means that the *Dashboard* component is ready.

. The operator should be installed and configured now.
In the applications window in the right upper corner of the screen the *Red{nbsp}Hat OpenShift Data Science* dashboard should be available.
In the applications window in the right upper corner of the screen the *Red{nbsp}Hat OpenShift AI* dashboard should be available.
+
image::rhods_verify1.png[width=800]
image::rhods_verify1.png[title=RHOAI Dashboard]

. Click the *Red{nbsp}Hat OpenShift Data Science* button to log in to the *Red{nbsp}Hat OpenShift AI* dashboard.
. Click the *Red{nbsp}Hat OpenShift AI* button to log in to the *Red{nbsp}Hat OpenShift AI* dashboard.
+
image::rhods_verify2.png[width=800]
image::rhods_verify2.png[title=Red Hat OpenShift AI Log in,width=800]
+
IMPORTANT: It may take a while to start all the service pods hence the login window may not be accessible immediately. If you are getting an error, check the status of the pods in the project *redhat-ods-applications*.
Navigate to *Workloads* -> *pods* and select project *redhat-ods-applications*. All pods must be running and be ready. If they are not, wait until they become running and ready.
+
image::rhods_verify_pods.png[width=800]
image::rhods_verify_pods.png[title=Pods in Running state,width=800]

TIP: For assistance installing the *Red{nbsp}Hat Openshift Data Science* from YAML or via ArgoCD, refer to examples found in the [redhat-cop/gitops-catalog/rhods-operator](https://github.com/redhat-cop/gitops-catalog/tree/main/rhods-operator) GitHub repo.
TIP: For assistance installing the *Red{nbsp}Hat Openshift AI* from YAML or via ArgoCD, refer to examples found in the [redhat-cop/gitops-catalog/rhods-operator](https://github.com/redhat-cop/gitops-catalog/tree/main/rhods-operator) GitHub repo.
29 changes: 17 additions & 12 deletions modules/chapter1/pages/uninstalling-rhods.adoc
Original file line number Diff line number Diff line change
@@ -1,47 +1,52 @@
= Uninstalling Red{nbsp}Hat OpenShift AI

*Red{nbsp}Hat OpenShift Data Science* operator manages *Red{nbsp}Hat OpenShift AI* components hence uninstalling of the *Red{nbsp}Hat OpenShift AI* requires uninstalling the *Red{nbsp}Hat OpenShift Data Science* operator and cleaning some of the resources that have been created by the operator or users.
The *Red{nbsp}Hat OpenShift AI* operator manages *Red{nbsp}Hat OpenShift AI* components, hence uninstalling components requires uninstalling the *Red{nbsp}Hat OpenShift AI* operator and cleaning some of the resources that have been created by the operator or users.

[#demo-rhods]
== Demo: Uninstalling Red{nbsp}Hat OpenShift AI

WARNING: These steps are for demonstration purposes only! Do NOT run these steps in your classroom because you will continue to work with the installed version of the product in the hands on labs in the course.

[IMPORTANT]
Make sure that you have installed the *Red{nbsp}Hat OpenShift AI* operator using one of the previous demonstrations (Web based or CLI). They both install a version of the operator from the _stable_ channel. The screenshots in this section were taken on an older version of the product and may not exactly match yours.

. Log in to Red{nbsp} OpenShift web console using a user which has the _cluster-admin_ role assigned.

. Delete the DataScienceCluster object.
+
Navigate to *Operators* -> *Installed Operators* -> *Red Hat OpenShift Data Science* -> *DataScienceCluster* and delete all the *DSC* resources.
Navigate to *Operators* -> *Installed Operators* -> *Red Hat OpenShift AI* -> *DataScienceCluster* and delete all the *DSC* resources.
+
image::rhods2-delete-dsc.png[width=800]
image::rhods2-delete-dsc.png[title=Delete DSC Resource]
+
alternatively you can delete the *DataScienceCluster* objects from the CLI.
Alternatively, you can delete the *DataScienceCluster* objects from the CLI.
+
[subs=+quotes]
----
$ *oc delete datasciencecluster $(oc get datasciencecluster --no-headers | awk '{print $1}')*

datasciencecluster.datasciencecluster.opendatahub.io "default" deleted
datasciencecluster.datasciencecluster.opendatahub.io "default-dsc" deleted
----


. Delete the DSCInitialization object that the Operator created during installation.
+
Navigate to the *DSCInitialization* tab and delete all *DSCI* resources.
+
image::rhods2-delete-dsci.png[width=800]
image::rhods2-delete-dsci.png[title=Delete DSCI Resource]
+
alternatively you can delete the *DCSI* objects from the CLI.
+
[subs=+quotes]
----
*$ oc delete dscinitialization $(oc get dscinitialization --no-headers | awk '{print $1}')*

dscinitialization.dscinitialization.opendatahub.io "default" deleted
dscinitialization.dscinitialization.opendatahub.io "default-dsci" deleted
----

. Uninstall the *Red Hat OpenShift Data Science* operator.
. Uninstall the *Red Hat OpenShift AI* operator.
+
Navigate to *Operators* -> *Installed Operators* and uninstall the *Red Hat OpenShift Data Science* operator.
Navigate to *Operators* -> *Installed Operators* and uninstall the *Red Hat OpenShift AI* operator.
+
image::rhods2-uninstall-operator.png[width=800]
image::rhods2-uninstall-operator.png[title=Uninstall RHOAI Operator]
+
Alternatively you can delete the operator's subscription from the CLI. OLM will uninstall the operator.
+
Expand Down Expand Up @@ -84,7 +89,7 @@ namespace "redhat-ods-monitoring" deleted

. Delete all remaining namespaces created for *Datascience* projects. These namespaces are labeled by the label _opendatahub.io/dashboard=true_.
+
Navigate to *Administration* -> *Namespaces*, filter namespaces using the label _opendatahub.io/dashboard=true_ and delete them.
Navigate to *Home* -> *Projects*, filter namespaces using the label _opendatahub.io/dashboard=true_ and delete them.
+
image::rhods2-delete-projects.png[width=800]
+
Expand Down
Loading

0 comments on commit be22612

Please sign in to comment.