Skip to content

Commit 25723f0

Browse files
committed
docs(managing_deis): Add notes on persisting CoreOS upgrades
1 parent 7354f12 commit 25723f0

1 file changed

Lines changed: 42 additions & 5 deletions

File tree

docs/managing_deis/upgrading-deis.rst

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,26 @@ While typically not recommended, it is possible to trigger an update of a CoreOS
188188
Deis releases may recommend a CoreOS upgrade - in these cases, the release notes for a Deis release
189189
will point to this documentation.
190190

191-
To update CoreOS, run the following commands:
191+
Checking the CoreOS version
192+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
193+
194+
You can check the CoreOS version by running the following command on the CoreOS machine:
195+
196+
.. code-block:: console
197+
198+
$ cat /etc/os-release
199+
200+
Or from your local machine:
201+
202+
.. code-block:: console
203+
204+
$ ssh core@<server ip> 'cat /etc/os-release'
205+
206+
207+
Triggering an upgrade
208+
^^^^^^^^^^^^^^^^^^^^^
209+
210+
To upgrade CoreOS, run the following commands:
192211

193212
.. code-block:: console
194213
@@ -208,14 +227,32 @@ To update CoreOS, run the following commands:
208227
simultaneously can result in failure of the etcd cluster. Ensure the recently-rebooted host
209228
has returned to the cluster with ``fleetctl list-machines`` before moving on to the next host.
210229

211-
You can check the CoreOS version by running the following command on the CoreOS machine:
230+
After the host reboots, ``update-engine.service`` should be unmasked and started once again:
212231

213232
.. code-block:: console
214233
215-
$ cat /etc/os-release
234+
$ systemctl unmask update-engine.service
235+
$ systemctl start update-engine.service
216236
217-
Or from your local machine:
237+
It may take a few minutes for CoreOS to recognize that the update has been applied successfully, and
238+
only then will it update the boot flags to use the new image on subsequent reboots. This can be confirmed
239+
by watching the ``update-engine`` journal:
218240

219241
.. code-block:: console
220242
221-
$ ssh core@<server ip> 'cat /etc/os-release'
243+
$ journalctl -fu update-engine
244+
245+
Seeing a message like ``Updating boot flags...`` means that the update has finished, and the service
246+
should be stopped and masked once again:
247+
248+
.. code-block:: console
249+
250+
$ systemctl stop update-engine.service
251+
$ systemctl mask update-engine.service
252+
253+
The update is now complete.
254+
255+
.. note::
256+
257+
Users have reported that some cloud providers do not allow the boot partition to be updated,
258+
resulting in CoreOS reverting to the originally installed version on a reboot.

0 commit comments

Comments
 (0)