Skip to content

Upgrade existing clusters on Hopsworks.ai from version 2.4 or newer (Azure)#

This guide shows you how to upgrade your existing Hopsworks cluster to a newer version of Hopsworks.

Step 1: Make sure your cluster is running#

It is important that your cluster is Running. Otherwise you will not be able to upgrade. As soon as a new version is available an upgrade notification will appear:

New version notification
A new Hopsworks version is available

Step 2: Add backup permissions to your role connected to Hopsworks.ai#

We require extra permission to be added to the role you used to connect to Hopsworks.ai, the one that you have created in Getting started Step 1.2. These permissions are required to create a snapshot of your cluster before proceeding with the upgrade.

"actions": [
    "Microsoft.Compute/snapshots/write",
    "Microsoft.Compute/snapshots/read",
    "Microsoft.Compute/snapshots/delete",
    "Microsoft.Compute/disks/beginGetAccess/action",
  ]

If you don't remember the name of the role that you have created in Getting started Step 1.2, you can navigate to your Resource group, (1) click on Access Control, (2) navigate to the Check Access tab, (3) search for hopsworks.ai, (4) click on it, (5) now you have the name of your custom role used to connect to hopsworks.ai.

Get your connected role to hopsworks.ai
Get your role connected to hopsworks.ai

To edit the permissions associated with your role, stay on the same Access Control page, (1) click on the Roles tab, (2) search for your role name (the one you obtained above), (3) click on ..., (4) click on Edit.

Edit your connected role to hopsworks.ai
Edit your role connected to hopsworks.ai

You will arrive at the Update a custom role page as shown below:

Edit your connected role to hopsworks.ai 1
Edit your role connected to hopsworks.ai

Navigate to the JSON tab, then click on Edit, as shown below:

Edit your connected role to hopsworks.ai 2
Edit your role connected to hopsworks.ai

Now, add the following permissions to the list of actions, then click on Save, click on Review + update, and finally click on Update.

    "Microsoft.Compute/snapshots/write",
    "Microsoft.Compute/snapshots/read",
    "Microsoft.Compute/snapshots/delete",
    "Microsoft.Compute/disks/beginGetAccess/action",

Edit your connected role to hopsworks.ai 3
Add missing permissions to your role connected to hopsworks.ai

Step 3: Run the upgrade process#

You need to click on Upgrade to start the upgrade process. You will be prompted with the screen shown below to confirm your intention to upgrade:

Note

No need to worry about the following message since this is done already in Step 2

Make sure that your custom role which you have connected to Hopsworks.ai has the following permissions: [ "Microsoft.Compute/snapshots/write", "Microsoft.Compute/snapshots/read", "Microsoft.Compute/snapshots/delete", "Microsoft.Compute/disks/beginGetAccess/action", ]

Azure Upgrade Prompt
Upgrade confirmation

Check the Yes, upgrade cluster checkbox to proceed, then the Upgrade button will be activated as shown below:

Warning

Currently, we only support upgrade for the head node and you will need to recreate your workers once the upgrade is successfully completed.

Azure Upgrade Prompt
Upgrade confirmation

Depending on how big your current cluster is, the upgrade process may take from 1 hour to a few hours until completion.

Note

We don't delete your old cluster until the upgrade process is successfully completed.

Azure Upgrade starting
Upgrade is running

Once the upgrade is completed, you can confirm that you have the new Hopsworks version by checking the version number on the Details tab of your cluster.

Error handling#

There are two categories of errors that you may encounter during an upgrade. First, a permission error due to a missing permission in your role connected to Hopsworks.ai, see Error 1. Second, an error during the upgrade process running on your cluster, see Error 2.

Error 1: Missing permissions error#

If one or more backup permissions are missing, or if the resource is not set correctly, you will be notified with an error message as shown below:

Azure upgrade permission error
Missing permission error

Update your cross custom role as described in Step 2, then click Start. Once the cluster is up and running, you can try running the upgrade again.

Error 2: Upgrade process error#

If an error occurs during the upgrade process, you will have the option to rollback to your old cluster as shown below:

Error during upgrade
Error occurred during upgrade

Click on Rollback to recover your old cluster before upgrade.

Rollback prompt
Upgrade rollback confirmation

Check the Yes, rollback cluster checkbox to proceed, then the Rollback button will be activated as shown below:

Rollback prompt
Upgrade rollback confirmation

Once the rollback is completed, you will be able to continue working as normal with your old cluster.

Note

The old cluster will be stopped after the rollback. You have to click on the Start button.