** Description changed:
[Impact]
Ubuntu and the Ubuntu Cloud Archive still ship the first or an early point
release of Cinder for each OpenStack series.
Upstream has published later stable point releases that group fixes for the
volume and backup drivers, the API and cinder-manage.
Users on these series do not get those fixes today.
This update moves each series to the latest upstream stable point release
under the OpenStack stable release exception.
The update contains the following package updates:
* cinder 29.2.0 (Stonking/Hibiscus, Resolute Hibiscus UCA), from 29.0.0, 5
upstream changes
* cinder 28.2.0 (Resolute/Gazpacho, Noble Gazpacho UCA), from 28.0.0, 13
upstream changes
* cinder 27.2.0 (Noble Flamingo UCA), from 27.0.0, 22 upstream changes
* cinder 26.4.0 (Noble Epoxy UCA), from 26.0.0, 32 upstream changes
* cinder 25.3.1 (Noble Dalmatian UCA), from 25.0.0, 33 upstream changes
* cinder 24.5.0 (Noble/Caracal, Jammy Caracal UCA), from 24.2.0, 21 upstream
changes
Four fixes that the release tags do not contain are added as patches:
* Noble and Jammy Caracal UCA: HPE 3par - skip license check for new wsapi
(upstream commit 34367c761f34).
25.3.1 and 26.4.0 contain it, 24.5.0 does not.
* Dalmatian UCA and Epoxy UCA: [Pure Storage] Fix QoS setting for cloned
volumes (upstream commit bc2c4cc9c80a).
24.5.0 and 27.0.0 fix this, 25.3.1 and 26.4.0 do not, so an upgrade from
Caracal would lose the fix.
* Dalmatian UCA: [NetApp] Default node model to empty string (upstream
commit 711c97a1208e).
28.0.0 contains it and the Caracal, Epoxy and Flamingo packages carry it
as a patch, but the Dalmatian package does not, so an upgrade from Caracal
would lose the fix.
* Dalmatian UCA: Allow quota sync to actually fix quota issues (upstream
commit bfc71207d21c).
27.0.0 contains it and the Caracal and Epoxy packages carry it as a patch,
but the Dalmatian package does not, so an upgrade from Caracal would lose the
fix.
Examples of the upstream changes that users are missing:
* RBD: Fix upload volume with different format (24.5.0, 25.3.1)
* RBD: Fix handling of RBD errors in get_manageable_volumes (24.5.0, 25.3.1)
* NFS driver: Fix fail creating volume with multiple snapshots (24.5.0,
25.3.1, 26.4.0)
* Fix type passed to write function during backup restoration (24.5.0,
25.3.1, 26.4.0)
* HPE 3par iSCSI: getWsApiVersion now requires login (24.5.0, 25.3.1)
* HPE 3par - skip license check for new wsapi (25.3.1, 26.4.0)
* Respond with HTTP 409 on resource conflict (24.5.0, 25.3.1, 26.4.0)
* Fix "cinder-manage quota check" (24.5.0)
* Address CVE-2026-93856 (26.4.0, 27.2.0, 28.2.0, 29.2.0)
* Fix ssh injection sanitizer utility, Scope attachments by their own
volume's project, Disallow invalid IQNs in Cinder iSCSI targets (27.2.0,
28.2.0, 29.2.0)
[Test Plan]
The OpenStack QA process is followed:
https://documentation.ubuntu.com/sru/en/latest/reference/exception-OpenStack-Updates
+ As for the previous Cinder point release (LP: #2097425), the Tempest smoke
target runs on a single node that regress-stack sets up in one VM:
+ https://github.com/canonical/regress-stack
+ The node uses Ceph RBD as the Cinder backend, and cinder-backup is added with
the Ceph backup driver.
+ Cinder is installed from the archive without -proposed first and then
upgraded to -proposed on the running node.
+
For every Ubuntu release and Cloud Archive pocket listed above:
- 1. Deploy OpenStack with the stable charms from the archive without
-proposed, with Ceph RBD as the Cinder backend and cinder-backup enabled.
- 2. Run the Tempest smoke target and record the result.
- 3. Create a volume, attach it to an instance, write a file to it and record
the checksum.
-
- openstack volume create --size 1 sru-vol
- openstack server add volume sru-vm sru-vol
- # inside the instance
- sudo mkfs.ext4 /dev/vdb && sudo mount /dev/vdb /mnt
- sudo dd if=/dev/urandom of=/mnt/data bs=1M count=100 && sudo sync
- sha256sum /mnt/data
-
- 4. Create a snapshot and a backup of the volume.
-
- openstack server remove volume sru-vm sru-vol
+ 1. Launch a VM with 8 CPUs, 16 GiB of memory and a 60 GiB disk from the cloud
image of the Ubuntu release, bring it up to date and reboot it.
+ The commands from step 2 on run as root in the VM.
+
+ lxc launch ubuntu:<ubuntu release> sru-cinder --vm -c limits.cpu=8 -c
limits.memory=16GiB -d root,size=60GiB
+ apt update && apt dist-upgrade -y && reboot
+
+ 2. For a Cloud Archive pocket, enable the pocket without -proposed.
+
+ apt install -y ubuntu-cloud-keyring
+ echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu <ubuntu
release>-updates/<cloud archive release> main" >
/etc/apt/sources.list.d/cloud-archive.list
+
+ 3. For the Jammy Caracal UCA only, add the tempest 36.0.0 backport that the
previous Caracal point release used, and take python3-subunit from
jammy-proposed/caracal.
+ The tempest 29.0.0 of Jammy fails with the python3-jsonschema of the
Caracal UCA.
+ With python3-subunit 1.4.2-3build1~cloud0 of jammy-updates/caracal, stestr
runs no test on Python 3.10, and 1.4.2-3build1~cloud1 is in
jammy-proposed/caracal.
+
+ add-apt-repository -y ppa:gboutry/jammy-caracal-backports
+ echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu
jammy-proposed/caracal main" > /etc/apt/sources.list.d/uca-proposed.list
+ apt update && apt install -y python3-subunit/jammy-proposed
+ rm /etc/apt/sources.list.d/uca-proposed.list
+
+ For the Noble Gazpacho UCA only, the tempest 36.0.0 of Noble cannot load
with the oslo.utils of the Gazpacho UCA, which no longer has
oslo_utils.secretutils.md5.
+ The helper is added back for the Tempest run only
(LP2179417_TEMPEST_COMPAT=1 in step 6 and step 10), so the services do not load
it.
+
+ cat > /usr/lib/python3/dist-packages/lp2179417_tempest_compat.py << 'EOF'
+ import os
+ if os.environ.get("LP2179417_TEMPEST_COMPAT") == "1":
+ import hashlib
+ from oslo_utils import secretutils
+ if not hasattr(secretutils, "md5"):
+ secretutils.md5 = lambda string=b"", usedforsecurity=True:
hashlib.md5(string, usedforsecurity=usedforsecurity)
+ EOF
+ echo "import lp2179417_tempest_compat" >
/usr/lib/python3/dist-packages/zz-lp2179417-tempest-compat.pth
+
+ 4. Install regress-stack, the packages that it sets up, and cinder-
+ backup.
+
+ apt update
+ apt install -y git crudini python3-apt python3-networkx python3-pyroute2
python3-openstackclient tempest python3-tempestconf
+ git clone https://github.com/canonical/regress-stack.git
+ git -C regress-stack checkout 13efc09919978b7052afd1da905fae93b9d53de6
+ cd regress-stack/src
+ apt install -y $(python3 -m regress_stack packages) cinder-backup
+
+ 5. Set up the node, and configure cinder-backup, which regress-stack
+ leaves unconfigured.
+
+ python3 -m regress_stack setup
+ ceph osd pool create backups 8
+ rbd pool init backups
+ ceph auth get-or-create client.backups mon 'profile rbd' osd 'profile rbd
pool=backups' -o /etc/ceph/ceph.client.backups.keyring
+ chown cinder /etc/ceph/ceph.client.backups.keyring
+ crudini --set /etc/cinder/cinder.conf DEFAULT backup_driver
cinder.backup.drivers.ceph.CephBackupDriver
+ crudini --set /etc/cinder/cinder.conf DEFAULT backup_ceph_conf
/etc/ceph/ceph.conf
+ crudini --set /etc/cinder/cinder.conf DEFAULT backup_ceph_user backups
+ crudini --set /etc/cinder/cinder.conf DEFAULT backup_ceph_pool backups
+ systemctl restart cinder-backup
+
+ 6. Run the Tempest smoke target and record the result.
+
+ LP2179417_TEMPEST_COMPAT=1 python3 -m regress_stack test
+ --concurrency 4 --retry-failed 3
+
+ 7. Write 64 MiB of random data to a volume, record the checksums, and create
a snapshot and a backup of the volume.
+ python3-openstackclient 6.6.0 does not find a backup by name, so the
backup id is recorded here for the restore in step 11.
+ Its restore command can also print "too many values to unpack" after it
has started the restore.
+
+ export OS_CLIENT_CONFIG_FILE=$PWD/mycloud01/clouds.yaml OS_CLOUD=regress
+ head -c 64M /dev/urandom > sru-data.img
+ sha256sum sru-data.img
+ openstack image create --disk-format raw --container-format bare --file
sru-data.img sru-data
+ openstack volume create --image sru-data --size 1 sru-vol
+ rbd -p volumes export volume-$(openstack volume show sru-vol -f value -c
id) - | head -c 64M | sha256sum
openstack volume snapshot create --volume sru-vol sru-snap
- openstack volume backup create --name sru-backup sru-vol
-
- 5. Enable -proposed on the cinder units, upgrade the cinder packages and
restart the Cinder services.
- 6. Record the installed version.
+ openstack volume backup create --name sru-backup sru-vol -f value -c id
+
+ 8. Enable -proposed (for a Cloud Archive pocket, <ubuntu
release>-proposed/<cloud archive release>).
+ Upgrade the Cinder packages to the version listed in [Other Info], run the
database migration and restart the Cinder services.
+
+ apt update
+ V=<proposed version>
+ apt install -y cinder-api=$V cinder-backup=$V cinder-common=$V
cinder-scheduler=$V cinder-volume=$V python3-cinder=$V
+ sudo -u cinder cinder-manage db sync
+ systemctl restart apache2 cinder-scheduler cinder-volume cinder-backup
+
+ 9. Record the installed versions and the state of the Cinder services.
apt policy cinder-common
dpkg -l | grep cinder
-
- 7. Run the Tempest smoke target again.
- 8. Attach the old volume again and compare the checksum.
- 9. Create a volume from the snapshot, restore the backup to a new volume,
attach both and compare the checksums.
+ openstack volume service list
+
+ 10. Run the Tempest smoke target again.
+ 11. Compare the old volume, a volume created from the snapshot and the
restored backup with the checksum of sru-data.img.
openstack volume create --snapshot sru-snap --size 1 sru-vol-from-snap
- openstack volume backup restore sru-backup sru-vol-restored
-
- 10. Create, attach, detach and delete a new volume.
+ openstack volume backup restore <backup id> sru-vol-restored
+ rbd -p volumes export volume-<volume id> - | head -c 64M | sha256sum
+
+ 12. Create and delete a new volume.
+
+ openstack volume create --size 1 sru-new
+ openstack volume delete sru-new
Expected result:
- * All Tempest smoke tests pass before and after the upgrade.
- * The checksum of the old volume, of the volume created from the snapshot
and of the restored backup equals the checksum recorded in step 3.
- * apt policy shows the -proposed version listed in [Other Info].
+ * The smoke run reports a non-zero "Ran:" count, and no test is still
failing after the retries, before and after the upgrade.
+ regress-stack does not check the exit status of "tempest run", so a run
that ran no test still exits with 0.
+ * No Cinder test fails in any pass; a test of another service that fails
only in the first pass is listed in the result summary.
+ * apt policy shows the -proposed version listed in [Other Info], and
cinder-scheduler, cinder-volume and cinder-backup are up after the restart.
+ * The checksum of the old volume, of the volume created from the snapshot
and of the restored backup equals the checksum of sru-data.img.
+ * The new volume becomes available and is deleted.
* The cinder autopkgtests (cinder-daemons, cinder-volume) pass.
Series that keep Ubuntu patches on top of the new upstream version also
run the Test Plan of those bugs against the -proposed package:
* LP: #2144550 on Noble, Jammy Caracal UCA and Dalmatian UCA.
* LP: #2165345 on Noble, Jammy Caracal UCA, Dalmatian UCA, Epoxy UCA and
Flamingo UCA.
The HPE 3PAR patch is tested on Noble and Jammy Caracal UCA with an HPE
array that has the 2025 WSAPI (version 100500000 or later):
1. Configure a cinder-volume backend with the HPE 3PAR FC or iSCSI driver for
the array.
2. Show the capabilities that the backend reports.
openstack volume backend pool list --long -f yaml
3. Create a thin provisioned volume on the backend and attach it to an
instance.
openstack volume type create --property volume_backend_name=<backend>
--property hpe3par:provisioning=thin sru-thin
openstack volume create --type sru-thin --size 1 sru-hpe
openstack server add volume <instance> sru-hpe
Expected result:
* Before the update the pool reports thin_provisioning_support: false and
QoS_support: false.
* After the update the pool reports thin_provisioning_support: true and
QoS_support: true, and the volume is created and attached.
- The quota sync patch is tested on Dalmatian UCA:
-
- 1. Add 5 to the saved volume usage of the project that owns sru-vol in
- the cinder database.
-
- UPDATE quota_usages SET in_use = in_use + 5 WHERE project_id =
- '<project id>' AND resource = 'volumes' AND deleted = 0;
-
- 2. Run the check, the sync and the check again on a cinder unit.
-
- sudo cinder-manage quota check --project-id <project id>
- sudo cinder-manage quota sync --project-id <project id>
- sudo cinder-manage quota check --project-id <project id>
+ The quota sync patch is tested on Dalmatian UCA, on the node above
+ before and after the upgrade:
+
+ 1. Add 5 to the saved volume usage of the admin project in the cinder
+ database.
+
+ mysql cinder -e "UPDATE quota_usages SET in_use = in_use + 5 WHERE
+ project_id = '<project id>' AND resource = 'volumes' AND deleted = 0;"
+
+ 2. Run the check, the sync and the check again.
+
+ sudo -u cinder cinder-manage quota check --project-id <project id>
+ sudo -u cinder cinder-manage quota sync --project-id <project id>
+ sudo -u cinder cinder-manage quota check --project-id <project id>
Expected result:
* The first check prints "volumes: invalid usage" with the saved and the
actual value, and the sync prints the same line with "- fixed".
* Before the update the second check prints the "invalid usage" line again.
* After the update the second check prints no "invalid usage" line.
The output summary of the test runs is attached to this bug before any
verification tag is changed.
[Where problems could occur]
* The RBD, NFS, HPE 3PAR, Dell PowerMax, Pure Storage, NetApp, Hitachi and
Quobyte drivers change in one or more of these releases.
A regression there shows up as failed volume create, attach, snapshot,
upload-to-image or backup operations on that backend.
The Test Plan exercises Ceph RBD only, so the other backends are covered
by the upstream unit tests that run during the package build.
* 24.5.0 loads Guru Meditation Report support in cinder-wsgi and needs
oslo.reports >= 3.2.0.
With an older oslo.reports the cinder API under Apache would fail to start.
debian/control raises the dependency, and Noble and the Caracal UCA ship
3.3.0 (checked by the package build and the Tempest run).
* 24.5.0, 25.3.1 and 26.4.0 answer attachment requests for a volume in error
state, or with duplicate connectors, with HTTP 409 instead of HTTP 500.
A client that treated 500 as retryable for these cases now sees 409.
* 26.4.0 calls the Glance add_image_location API for the optimized
upload-volume-to-image path when Glance uses Cinder as its store.
A regression shows up as failing upload-to-image operations in that
configuration.
* 27.2.0, 28.2.0 and 29.2.0 restrict attachment reads to the project that
owns the volume, so non-admin callers get 404 for attachments of other projects.
They also reject initiator IQNs with invalid characters on LIO and other
iSCSI targets, so an initiator configured with such an IQN can no longer attach.
* The Ubuntu patches for LP: #2165345 and LP: #2144550 are carried over to
the new upstream source.
If one of them stopped matching the new code, disk_geometry would not
reach the guest or image creation from a volume would fail again (covered by
the two extra Test Plans).
* The HPE 3PAR patch makes the license check of the HPE 3PAR driver return
True when the WSAPI version is 100500000 or later.
A regression would show up as wrong thin provisioning, QoS, replication or
compression capabilities in the pool report of HPE 3PAR, Primera or Alletra
backends, and volume types that need them would fail to schedule.
An array with the 2025 WSAPI that does restrict a feature would now be
reported as supporting it, and the failure would move from scheduling to the
array call.
* The Pure Storage patch sets QoS on the new volume in create_cloned_volume
of the Pure Storage driver when the volume type has QoS specs.
A regression would show up as failing clone operations, image-cache clones
included, on Pure Storage FlashArray backends.
* The NetApp patch makes the ONTAP ZAPI client return an empty string as the
model of a node that reports no node-model.
A regression would show up as a NetApp ONTAP backend that fails to
initialize, or that misses the handling of ONTAP Select and C190 nodes.
* The quota sync patch runs the per-project step of "cinder-manage quota
check" and "cinder-manage quota sync" in a database writer transaction instead
of a reader transaction.
On Dalmatian the sync now changes quota_usages rows where it changed
nothing before, so a regression would show up as wrong quota usage after a
sync, or as a failing check or sync command.
[Other Info]
* Proposed versions:
stonking 2:29.2.0-0ubuntu0.26.10.1, resolute-hibiscus
2:29.2.0-0ubuntu0.26.10.1~cloud0
resolute 2:28.2.0-0ubuntu1, noble-gazpacho 2:28.2.0-0ubuntu1~cloud0
noble-flamingo 2:27.2.0-0ubuntu1~cloud0
noble-epoxy 2:26.4.0-0ubuntu1~cloud0
noble-dalmatian 2:25.3.1-0ubuntu1~cloud0
noble 2:24.5.0-0ubuntu1, jammy-caracal 2:24.5.0-0ubuntu1~cloud0
* Tenacious has 2:29.0.0-0ubuntu3 and gets 29.2.0 with a normal upload
before the Stonking SRU is released.
* Patches dropped because the release includes them: lp1823445.patch
(24.5.0, 25.3.1), lp2144550-Fix-properties-being-sent-to-Glance.patch (26.4.0,
27.2.0, 28.2.0), remove-use-of-mutable-fakes.patch (27.2.0).
* Patches added on top of the release:
lp2119709-HPE-3par-skip-license-check-for-new-wsapi.patch (24.5.0),
lp2100547-Pure-Storage-Fix-QoS-setting-for-cloned-volumes.patch (25.3.1,
26.4.0), lp2121812.patch and lp2104322.patch (25.3.1).
* The HPE 3PAR patch is
https://opendev.org/openstack/cinder/commit/34367c761f34411f266839d7ee08dd92b44b8e85
(unmaintained/2024.1, merged after the 24.5.0 tag).
* The Pure Storage patch is
https://opendev.org/openstack/cinder/commit/bc2c4cc9c80a5ed19354b2c8a903dfb2b5abad4d
(27.0.0 and later).
On 25.3.1 its unit test is adapted, because the 2024.2 driver has no
_get_volume_type_extra_spec.
* The NetApp patch is
https://opendev.org/openstack/cinder/commit/711c97a1208ecca5c3bd96880677aa62d10cf34c
(28.0.0 and later).
* The quota sync patch is
https://opendev.org/openstack/cinder/commit/bfc71207d21cfe5ccdd07853336505e79006cf4f
(27.0.0 and later).
* Dalmatian uses the lp2121812.patch and lp2104322.patch files of the
Caracal and Epoxy packaging branches without change.
* No Pure Storage or NetApp array is available for this SRU, so the Pure
Storage and NetApp patches are covered by the unit tests in the package build.
* None of the six ranges adds a database migration.
* 24.5.0 is the 2024.1-eom tag and 25.3.1 is the 2024.2-eol tag, so these
are the last numbered releases of those branches.
* Oracular, Plucky and Questing are end of life, so Dalmatian, Epoxy and
Flamingo are updated in the Cloud Archive only.
* 24.5.0 and 25.3.1 do not contain the fix for CVE-2026-93856.
* All upstream tarballs were verified against the OpenStack release signing
keys before import.
* This bug replaces LP: #2115709 for cinder.
+ * Before the upload this Test Plan was run on all nine targets, with the
candidate packages from test PPAs in place of -proposed.
+ On every target the checksums of the old volume, the volume from the
snapshot and the restored backup matched after the upgrade, and no Cinder test
failed in the Tempest smoke runs.
+ The quota sync check on Dalmatian UCA gave the expected result before and
after the upgrade.
+ Failures outside Cinder: the Keystone credentials test failed before and
after the upgrade on Resolute Hibiscus UCA, and Watcher tests failed after the
upgrade on Dalmatian UCA because the Watcher decision engine had run out of
database connections before the upgrade.
+ Some network and compute tests failed once and passed on the retry.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2179417
Title:
[SRU] Cinder stable point releases
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/2179417/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs