This section describes how to upgrade from Che 6.x to Che 7.3 on OpenShift 4 using the OpenShift web console. This method is using the Operator from OperatorHub.
Preparing the upgrade of Che on OpenShift using the Operator
This section describes how to prepare upgrade from Che 6.x to Che 7.3 on OpenShift using the Operator.
Uninstalling the Eclipse Che 6.x Operator means that the OpenShift cluster do not receive any updates of the Che 6.x Operator. As a consequence, the existing Che instances do not receive any update. The Che instances that are already present, including their database, remains present.
Prerequisites
-
And administrative account on an OpenShift 4 instance.
-
Eclipse Che 6.x Operator is installed on this OpenShift 4 instance.
-
A running instance of Che 6.x on this OpenShift 4 instance.
Procedure
-
In all running workspaces in the Che 6.x instance, save and push changes back to the git repositories.
-
Shut down all workspaces in the Che 6.x instance.
-
Open the OpenShift console.
-
Navigate to Operators > Installed Operators.
-
Click on Eclipse Che 6.x.
-
Click on the Actions button on the top right.
-
A drop-down menu appears.
-
Click on Uninstall Operator to uninstall the Che 6.x Operator.
-
Accept the selected option
Also completely remove the Operator from the selected namespace. -
Click on the Remove button.
-
Navigate to Operators > Installed Operators.
-
The Operator is removed from the list of installed operators.
Creating the Che project in OpenShift 4 web console
This section describes how to create the Che project in OpenShift 4 web console.
Prerequisites
-
An administrator account on a running instance of OpenShift 4.
Procedure
-
Open the OpenShift web console.
-
In the left panel, navigate to Projects.
-
Click the Create Project button.
-
Enter the project details:
-
In the Name field, type
che. -
In the Display Name field, type
Eclipse Che.
-
-
Click the Create button.
Installing the Che Operator in OpenShift 4 web console
This section describes how to install the Che Operator in OpenShift 4 web console.
Prerequisites
-
An administrator account on a running instance of OpenShift 4.
-
Administrative rights on an existing project named
cheon this instance of OpenShift 4. See Creating the Che project in OpenShift 4 web console. -
The Eclipse Che 6.x Operator is not installed.
Procedure
-
Open the OpenShift web console.
-
In the left panel, navigate to the Operators → OperatorHub section.
-
In the Search by keyword field, type
Eclipse Che. -
Click on the Eclipse Che tile.
-
Click the Install button in the Eclipse Che pop-up window.
-
In the A specific namespace on the cluster field, in the cluster drop-down list, select che.
-
Click the Subscribe button.
-
In the left panel, navigate to the Operators → Installed Operators section.
-
Eclipse Che is displayed as an installed Operator having the InstallSucceeded status.
-
Click on the Eclipse Che name in the list of installed operators.
-
Navigate to the Overview tab.
-
In the Conditions sections at the bottom of the page, wait for this message:
install strategy completed with no errors. -
Navigate to the Events tab.
-
Wait for this message:
install strategy completed with no errors.
Viewing the state of the Che cluster deployment in OpenShift 4 web console
This section describes how to view the state of the Che cluster deployment in OpenShift 4 web console.
Prerequisites
-
An administrator account on a running instance of OpenShift 4.
-
A Che cluster is deployed on this instance of OpenShift 4.
Procedure
-
Open the OpenShift web console.
-
Navigate to the Operators → Installed Operators section.
-
Click Eclipse Che in the list of installed operators.
-
Navigate to the Eclipse Che Cluster tab.
-
Click on the eclipse-che cluster that is listed in the table.
-
Navigate to the Overview tab.
-
Watch the content of the Message field. The field contain error messages, if any. The expected content is
None. -
Navigate to the Resources tab.
-
The screen displays the state of the resources assigned to the Che cluster deployment.
Finishing the upgrade of Che on OpenShift using the Operator
This section describes how to finish the upgrade from Che 6.x to Che 7.3 on OpenShift using the Operator.
-
The Che 6.x Operator is removed. See Preparing the upgrade of Che on OpenShift using the Operator
-
The Che 7.3 Operator is deployed. See Installing the Che Operator in OpenShift 4 web console
-
The Che 7.3 Operator has finished upgrading the Eclipse Che cluster. See Viewing the state of the Che cluster deployment in OpenShift 4 web console
-
Log into the Eclipse Che instance.
-
Select an old workspace and click on the Start button.
-
An error message appears, with a link to the documentation explaining how to migrate a workspace to a devfile.
-
For each workspace, create a devfile that represent your workspace. See Converting a Che 6.x workspace to a Che 7.3 devfile.
-
Use the devfile to start the new workspace. See Configuring a workspace using a devfile
