5 Cephadm is capable of safely upgrading Ceph from one bugfix release to
6 another. For example, you can upgrade from v15.2.0 (the first Octopus
7 release) to the next point release v15.2.1.
9 The automated upgrade process follows Ceph best practices. For example:
11 * The upgrade order starts with managers, monitors, then other daemons.
12 * Each daemon is restarted only after Ceph indicates that the cluster
13 will remain available.
15 Keep in mind that the Ceph cluster health status is likely to switch to
16 `HEALTH_WARNING` during the upgrade.
22 Before you start, you should verify that all hosts are currently online
23 and your cluster is healthy.
29 To upgrade (or downgrade) to a specific release::
31 # ceph orch upgrade start --ceph-version <version>
33 For example, to upgrade to v15.2.1::
35 # ceph orch upgrade start --ceph-version 15.2.1
38 Monitoring the upgrade
39 ======================
41 Determine whether an upgrade is in process and what version the cluster is
44 # ceph orch upgrade status
46 While the upgrade is underway, you will see a progress bar in the ceph
47 status output. For example::
52 Upgrade to docker.io/ceph/ceph:v15.2.1 (00h 20m 12s)
53 [=======.....................] (time remaining: 01h 43m 31s)
55 You can also watch the cephadm log with::
63 You can stop the upgrade process at any time with::
65 # ceph orch upgrade stop
71 There are a few health alerts that can arise during the upgrade process.
73 UPGRADE_NO_STANDBY_MGR
74 ----------------------
76 Ceph requires an active and standby manager daemon in order to proceed, but
77 there is currently no standby.
79 You can ensure that Cephadm is configured to run 2 (or more) managers with::
81 # ceph orch apply mgr 2 # or more
83 You can check the status of existing mgr daemons with::
85 # ceph orch ps --daemon-type mgr
87 If an existing mgr daemon has stopped, you can try restarting it with::
89 # ceph orch daemon restart <name>
94 Ceph was unable to pull the container image for the target version.
95 This can happen if you specify an version or container image that does
96 not exist (e.g., 1.2.3), or if the container registry is not reachable from
97 one or more hosts in the cluster.
99 You can cancel the existing upgrade and specify a different target version with::
101 # ceph orch upgrade stop
102 # ceph orch upgrade start --ceph-version <version>
105 Using customized container images
106 =================================
108 For most users, simplify specifying the Ceph version is sufficient.
109 Cephadm will locate the specific Ceph container image to use by
110 combining the ``container_image_base`` configuration option (default:
111 ``docker.io/ceph/ceph``) with a tag of ``vX.Y.Z``.
113 You can also upgrade to an arbitrary container image. For example, to
114 upgrade to a development build::
116 # ceph orch upgrade start --image quay.io/ceph-ci/ceph:recent-git-branch-name
118 For more information about available container images, see :ref:`containers`.