Skip to content

Commit

Permalink
docs: Add breaking changes section to reference docs (#5147)
Browse files Browse the repository at this point in the history
  • Loading branch information
catmsred committed Apr 12, 2024
1 parent 93f5a01 commit 8778506
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
52 changes: 52 additions & 0 deletions doc/rtd/reference/breaking_changes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.. _breaking_changes:

Breaking changes
****************

This section provides guidance on specific breaking changes to cloud-init
releases.

24.1 - removed Ubuntu's ordering dependency on snapd.seeded
===========================================================

In Ubuntu releases, cloud-init will no longer wait on ``snapd`` pre-seeding to
run. If a user-provided script relies on a snap, it must now be prefixed with
``snap wait system seed.loaded`` to ensure the snaps are ready for use. For
example, a cloud config that previously included:

.. code-block:: yaml
runcmd:
- [ snap, install, mc-installer ]
Will now need to be:

.. code-block:: yaml
runcmd:
- [ snap, wait, system, seed.loaded ]
- [ snap, install, mc-installer ]
23.4 - added status code for recoverable error
==============================================

Cloud-init return codes have been extended with a new error code (2),
which will be returned when cloud-init experiences an error that it can
recover from. See :ref:`this page which documents the change <error_codes>`.


23.2 - kernel commandline
=========================

The ``ds=`` kernel commandline value is used to forcibly select a specific
datasource in cloud-init. Prior to 23.2, this only optionally selected
the ``NoCloud`` datasource.

Anyone that previously had a matching ``ds=nocloud*`` in their kernel command
line that did not want to use the ``NoCloud`` datasource may experience broken
behavior as a result of this change.

Workarounds include updating the kernel commandline and optionally configuring
a ``datasource_list`` in ``/etc/cloud/cloud.cfg.d/*.cfg``.
1 change: 1 addition & 0 deletions doc/rtd/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ matrices and so on.
datasource_dsname_map.rst
performance_analysis.rst
ubuntu_stable_release_updates.rst
breaking_changes.rst
user_files.rst

0 comments on commit 8778506

Please sign in to comment.