Managing Clusters
Also available as:
PDF

Updating OS and tools on long-running clusters

Long-running clusters require maintenance updates such as updates to the base image's operating system and any third party packages that have been installed. Cloudbreak supports performing these maintenance updates.

In general, updating a cluster involves (1) manually updating OS and tools on existing nodes and (2) switching to a new image that will be used for any nodes added in the future via cluster scaling. The general steps are:
  1. Preparing a new custom image (if using custom images) that includes the desired version of OS and tools.
  2. Manually updating all existing cluster nodes to use the same OS and tools versions as the new image.
  3. Setting that new image as default for all newly added cluster nodes.

These steps are described in more detail below.

The following limitations apply:

  • You can only upgrade to a pre-warmed image if the Ambari/HDP/HDF versions are the same on the new image and on the old image.

  • For base image only, the Saltboot and Salt versions must match on the new image and on the old image.

  • In all cases, Linux OS must be the same. For example, you cannot upgrade from Redhat to Centos. Furthermore, the major X version must also be the same (i.e. you cannot update from version 6 to 7, but you can update from 6.1 to 6.2).

Step 1: Prepare a new custom image

If using custom images, prepare a new custom image with the desired package versions, and either update/extend your existing image catalog to reference the new image or prepare and then register a new image catalog. For more information about using custom images, refer to custom images documentation.

Step 2: Manually update existing cluster nodes

You should manually update all existing cluster nodes to use the same OS and tools versions as the new image. Perform these updates as described in your OS and tools documentation. Only after performing this step, you can proceed to the next step, which is updating cluster’s default image for nodes that will be added in the future.

Step 3: Update cluster’s default image

You should update your cluster to use the new default image for newly added cluster nodes. This can be done by using the web UI or CLI.

(Option 1: web UI) To update cluster’s default image by using the web UI:

  1. Navigate to the cluster details.
  2. Sync the cluster (Actions > Sync) to ensure that Cloudbreak has the latest image and package information.
  3. From the Actions menu select Change image.

  4. Under Choose Image Catalog, choose the image catalog where the image that you would like to use is included.
    Note
    Note

    If this window does not show any images, try

  5. Under Choose Image, select the image that you would like to use as the new default image. Click on Choose image.

This will set the new image as default for all newly added nodes.

Note
Note

This will not update currently running cluster nodes. Only the nodes added after the default image update will use the new default image. Existing cluster nodes, must be updated separately.

(Option 2: CLI) To update cluster’s default image by using the CLI:

  1. Sync the cluster:
    cb cluster sync --name <cluster-name>
  2. List the available images you can upgrade your cluster to:
    cb imagecatalog images cluster-upgrade --cluster <cluster-name>
  3. Update your cluster’s default image:
    cb cluster change-image --name <cluster-name> --imageid <image-id>