Skip to content

Commit

Permalink
docs: Removal of top-level --file breaking change (#5308)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon committed May 23, 2024
1 parent 3a6b539 commit c80c9c7
Showing 1 changed file with 41 additions and 19 deletions.
60 changes: 41 additions & 19 deletions doc/rtd/reference/breaking_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,30 @@ releases.
many operating system vendors patch out breaking changes in
cloud-init to ensure consistent behavior on their platform.

23.2-24.1 - Datasource identification
=====================================
24.1
====

**23.2**
If the detected ``datasource_list`` contains a single datasource or
that datasource plus ``None``, automatically use that datasource without
checking to see if it is available. This allows for using datasources that
don't have a way to be deterministically detected.
**23.4**
If the detected ``datasource_list`` contains a single datasource plus
``None``, no longer automatically use that datasource because ``None`` is
a valid datasource that may be used if the primary datasource is
not available.
**24.1**
ds-identify no longer automatically appends ``None`` to a
datasource list with a single entry provided under ``/etc/cloud``.
If ``None`` is desired as a fallback, it must be explicitly added to the
customized datasource list.
Removal of ``--file`` top-level option
--------------------------------------

The ``--file`` top-level option has been removed from cloud-init. It only
applied to a handful of subcommands so it did not make sense as a top-level
option. Instead, ``--file`` may be passed to a subcommand that supports it.
For example, the following command will no longer work:

.. code-block:: bash
cloud-init --file=userdata.yaml modules --mode config
Instead, use:

.. code-block:: bash
24.1 - removed Ubuntu's ordering dependency on snapd.seeded
===========================================================
cloud-init modules --file=userdata.yaml --mode config
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
Expand All @@ -53,6 +56,25 @@ Will now need to be:
- [ snap, install, mc-installer ]
23.2-24.1 - Datasource identification
=====================================

**23.2**
If the detected ``datasource_list`` contains a single datasource or
that datasource plus ``None``, automatically use that datasource without
checking to see if it is available. This allows for using datasources that
don't have a way to be deterministically detected.
**23.4**
If the detected ``datasource_list`` contains a single datasource plus
``None``, no longer automatically use that datasource because ``None`` is
a valid datasource that may be used if the primary datasource is
not available.
**24.1**
ds-identify no longer automatically appends ``None`` to a
datasource list with a single entry provided under ``/etc/cloud``.
If ``None`` is desired as a fallback, it must be explicitly added to the
customized datasource list.

23.4 - added status code for recoverable error
==============================================

Expand Down

0 comments on commit c80c9c7

Please sign in to comment.