From df51a7e2e89c0412d416859f601a096d90018ed6 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Nov 2026 12:14:56 -0500 Subject: [PATCH 1/8] Revert "Reapply "Add a man page entry for the Metadata field"" This reverts commit 43ccaacc21fe762c1196751979c036844141de2f. --- docs/stratis.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docs/stratis.txt b/docs/stratis.txt index 2f2840a3b..9a4b27af5 100644 --- a/docs/stratis.txt +++ b/docs/stratis.txt @@ -410,13 +410,6 @@ Space Usage: Used:: The space on the devices that is in use. Used space can be reclaimed. For example, destroying a Stratis filesystem will reduce this value. -Space Usage: Metadata:: - The space on the devices that is set aside for metadata use. This - metadata includes Stratis metadata, and other block layer metadata, - such as that used to manage encryption of a pool or device. It does - not include filesystem metadata, which is considered part of user - data. - FIELDS for stratis pool list [(--uuid |--name )] --stopped UUID:: From c47c2ece318c3281631b65f85bc91ef735263860 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Nov 2026 12:15:14 -0500 Subject: [PATCH 2/8] Revert "Reapply "Add MetadataUsed field to detail listing"" This reverts commit 4d928db65f7c3e0fc406e81235bdcf7e1871b037. --- src/stratis_cli/_actions/_introspect.py | 1 - src/stratis_cli/_actions/_list_pool.py | 8 -------- 2 files changed, 9 deletions(-) diff --git a/src/stratis_cli/_actions/_introspect.py b/src/stratis_cli/_actions/_introspect.py index 4408bb405..6c8e580ab 100644 --- a/src/stratis_cli/_actions/_introspect.py +++ b/src/stratis_cli/_actions/_introspect.py @@ -285,7 +285,6 @@ - diff --git a/src/stratis_cli/_actions/_list_pool.py b/src/stratis_cli/_actions/_list_pool.py index daae775f2..c3117b5fc 100644 --- a/src/stratis_cli/_actions/_list_pool.py +++ b/src/stratis_cli/_actions/_list_pool.py @@ -451,17 +451,9 @@ def size_str(value: Range | None) -> str: allocated_size = Range(mopool.AllocatedSize()) except DbusClientMissingPropertyError: allocated_size = None - print(f" Allocated: {size_str(allocated_size)}") print(f" Used: {size_str(size_triple.used())}") - try: - metadata_used = Range(mopool.MetadataUsed()) - except DbusClientMissingPropertyError: - metadata_used = None - - print(f" Metadata: {size_str(metadata_used)}") - def display(self): """ List a single pool in detail. From 7059d13e8ca5adcb4bcbcc7c30918f8fcf48b0d4 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Nov 2026 12:15:29 -0500 Subject: [PATCH 3/8] Revert "Reapply "Add man pages for pool remove-cache subcommand"" This reverts commit 509443842542e75ad3291e5453597c51ef94745d. --- docs/stratis.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/stratis.txt b/docs/stratis.txt index 9a4b27af5..920630ab2 100644 --- a/docs/stratis.txt +++ b/docs/stratis.txt @@ -76,8 +76,6 @@ pool init-cache [..]:: drives, such as SSDs, are used for this purpose. pool add-cache [..]:: Add one or more blockdevs to an existing pool with an initialized cache. -pool remove-cache <(--uuid |--name )>:: - Remove a pool's cache. pool extend-data [--device-uuid ]:: Increase the pool's data capacity with additional storage space offered by its component data devices through, e.g., expansion of a component RAID From 1920a181f6284576252f81b75b495c81ece6ccbf Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Nov 2026 12:15:46 -0500 Subject: [PATCH 4/8] Revert "Reapply "Add pool remove-cache subcommand"" This reverts commit 4acc24b22110508479e3b196404e160c612aaba7. --- src/stratis_cli/_actions/_pool.py | 41 ----------- src/stratis_cli/_parser/_pool.py | 16 ---- tests/integration/pool/test_remove_cache.py | 81 --------------------- 3 files changed, 138 deletions(-) delete mode 100644 tests/integration/pool/test_remove_cache.py diff --git a/src/stratis_cli/_actions/_pool.py b/src/stratis_cli/_actions/_pool.py index 806255f25..e62aaab44 100644 --- a/src/stratis_cli/_actions/_pool.py +++ b/src/stratis_cli/_actions/_pool.py @@ -612,47 +612,6 @@ def add_cache_devices(namespace: Namespace): ) ) - @staticmethod - def remove_cache(namespace: Namespace): - """ - Remove the cache from this pool. - - :raises StratisCliEngineError: - :raises StratisCliIncoherenceError: - :raises StratisCliNoChangeError: - """ - from ._data import MOPool, ObjectManager, Pool, pools # noqa: PLC0415 - - pool_id = PoolId.from_parser_namespace(namespace) - assert pool_id is not None - - proxy = get_object(TOP_OBJECT) - managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) - - (pool_object_path, pool_info) = next( - pools(props=pool_id.managed_objects_key()) - .require_unique_match(True) - .search(managed_objects) - ) - - if not bool(MOPool(pool_info).HasCache()): - raise StratisCliNoChangeError("remove-cache", "cache") - - ((removed, devs_removed), return_code, message) = Pool.Methods.RemoveCache( - get_object(pool_object_path), {} - ) - - if return_code != StratisdErrors.OK: # pragma: no cover - raise StratisCliEngineError(return_code, message) - - if not removed: # pragma: no cover - raise StratisCliIncoherenceError( - ( - f"Expected to remove the cache from {pool_id} but " - "stratisd reports that it did not remove the cache." - ) - ) - @staticmethod def extend_data(namespace: Namespace): """ diff --git a/src/stratis_cli/_parser/_pool.py b/src/stratis_cli/_parser/_pool.py index 67c3af546..0af3ff81c 100644 --- a/src/stratis_cli/_parser/_pool.py +++ b/src/stratis_cli/_parser/_pool.py @@ -426,22 +426,6 @@ def verify(self, namespace: Namespace, parser: ArgumentParser): "func": PoolActions.add_cache_devices, }, ), - ( - "remove-cache", - { - "help": "Remove an active pool's cache", - "func": PoolActions.remove_cache, - "groups": [ - ( - "Pool Identifier", - { - "description": ("Choose one option to specify the pool"), - "mut_ex_args": [(True, UUID_OR_NAME)], - }, - ) - ], - }, - ), ( "extend-data", { diff --git a/tests/integration/pool/test_remove_cache.py b/tests/integration/pool/test_remove_cache.py deleted file mode 100644 index 954f336e0..000000000 --- a/tests/integration/pool/test_remove_cache.py +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 2026 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -""" -Test 'remove-cache'. -""" - -from uuid import uuid4 - -from dbus_client_gen import DbusClientUniqueResultError -from stratis_cli import StratisCliErrorCodes -from stratis_cli._errors import StratisCliNoChangeError - -from .._misc import RUNNER, TEST_RUNNER, SimTestCase, device_name_list - -_DEVICE_STRATEGY = device_name_list(1, 1) -_DEVICE_STRATEGY_2 = device_name_list(2, 2) -_ERROR = StratisCliErrorCodes.ERROR - - -class RemoveCacheTestCase1(SimTestCase): - """ - Test removing a cache where the cache is non-existent. - """ - - _MENU = ["--propagate", "pool", "remove-cache"] - _POOLNAME = "deadpool" - - def setUp(self): - super().setUp() - command_line = ["pool", "create", self._POOLNAME] + _DEVICE_STRATEGY() - RUNNER(command_line) - - def test_remove(self): - """ - Verify that trying to remove a non-existent cache returns - StratisCliNoChangeError. - """ - command_line = self._MENU + [f"--name={self._POOLNAME}"] - self.check_error(StratisCliNoChangeError, command_line, _ERROR) - - def test_non_existent_pool(self): - """ - Verify that trying to remove a cache from a non-existent pool raises - DbusClientUniqueResultError. - """ - command_line = self._MENU + [f"--uuid={uuid4()}"] - self.check_error(DbusClientUniqueResultError, command_line, _ERROR) - - -class RemoveCacheTestCase2(SimTestCase): - """ - Test removing a cache. - """ - - _MENU = ["--propagate", "pool", "remove-cache"] - _POOLNAME = "deadpool" - - def setUp(self): - super().setUp() - command_line = ["pool", "create", self._POOLNAME] + _DEVICE_STRATEGY() - RUNNER(command_line) - command_line = ["pool", "init-cache", self._POOLNAME] + _DEVICE_STRATEGY_2() - RUNNER(command_line) - - def test_remove(self): - """ - Verify that remove an existing cache succeeds. - """ - command_line = self._MENU + [f"--name={self._POOLNAME}"] - TEST_RUNNER(command_line) From aaffd5c6e296331994c2357e09e418496aa7a250 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Nov 2026 12:15:56 -0500 Subject: [PATCH 5/8] Revert "Reapply "Update introspect data"" This reverts commit 39073910a20d74235b31ff08d63fa8b19df0df08. --- src/stratis_cli/_actions/_introspect.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/stratis_cli/_actions/_introspect.py b/src/stratis_cli/_actions/_introspect.py index 6c8e580ab..ac03f6fd9 100644 --- a/src/stratis_cli/_actions/_introspect.py +++ b/src/stratis_cli/_actions/_introspect.py @@ -246,11 +246,6 @@ - - - - - From 294a80e7e53443755983a2d67e7c2d6c8c59d7ab Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Nov 2026 12:16:13 -0500 Subject: [PATCH 6/8] Revert "Reapply "Require stratisd 3.10.0"" This reverts commit 9f8429415da4c4585397dff745e173a86107dede. --- src/stratis_cli/_actions/_constants.py | 2 +- src/stratis_cli/_actions/_introspect.py | 20 ++++++++++---------- src/stratis_cli/_version.py | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/stratis_cli/_actions/_constants.py b/src/stratis_cli/_actions/_constants.py index e6e438bf6..2a1131b69 100644 --- a/src/stratis_cli/_actions/_constants.py +++ b/src/stratis_cli/_actions/_constants.py @@ -23,7 +23,7 @@ SECTOR_SIZE = 512 MAXIMUM_STRATISD_VERSION = "4.0.0" -MINIMUM_STRATISD_VERSION = "3.10.0" +MINIMUM_STRATISD_VERSION = "3.9.2" assert Version(MINIMUM_STRATISD_VERSION) < Version(MAXIMUM_STRATISD_VERSION) REVISION = f"r{MINIMUM_STRATISD_VERSION.split('.')[1]}" diff --git a/src/stratis_cli/_actions/_introspect.py b/src/stratis_cli/_actions/_introspect.py index ac03f6fd9..4088c2b39 100644 --- a/src/stratis_cli/_actions/_introspect.py +++ b/src/stratis_cli/_actions/_introspect.py @@ -14,8 +14,8 @@ """, - "org.storage.stratis3.Manager.r10": """ - + "org.storage.stratis3.Manager.r9": """ + @@ -84,8 +84,8 @@ """, - "org.storage.stratis3.Report.r10": """ - + "org.storage.stratis3.Report.r9": """ + @@ -94,8 +94,8 @@ """, - "org.storage.stratis3.blockdev.r10": """ - + "org.storage.stratis3.blockdev.r9": """ + @@ -122,8 +122,8 @@ """, - "org.storage.stratis3.filesystem.r10": """ - + "org.storage.stratis3.filesystem.r9": """ + @@ -150,8 +150,8 @@ """, - "org.storage.stratis3.pool.r10": """ - + "org.storage.stratis3.pool.r9": """ + diff --git a/src/stratis_cli/_version.py b/src/stratis_cli/_version.py index f44b377d3..28243c2af 100644 --- a/src/stratis_cli/_version.py +++ b/src/stratis_cli/_version.py @@ -17,5 +17,5 @@ .. moduleauthor:: mulhern """ -__version_info__ = (3, 10, 0) +__version_info__ = (3, 9, 2) __version__ = ".".join(str(x) for x in __version_info__) From 0bd77dbe5a2cc215c67ca0b34ebc078d724606f7 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Nov 2026 12:18:05 -0500 Subject: [PATCH 7/8] Update CI to stratisd v3.9.4 Signed-off-by: mulhern --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eb9d6854b..42db14c07 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -139,6 +139,7 @@ jobs: - uses: stratis-storage/github-actions/github-modify@HEAD with: repo: stratisd + default_branch: stratisd-v3.9.4 - name: Print head commit run: git log --oneline -1 working-directory: stratisd @@ -205,6 +206,7 @@ jobs: - uses: stratis-storage/github-actions/github-modify@HEAD with: repo: stratisd + default_branch: stratisd-v3.9.4 - name: Print head commit run: git log --oneline -1 working-directory: stratisd From ea807d16a65bb9353a99a5073990a8a804246a80 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Nov 2026 12:22:28 -0500 Subject: [PATCH 8/8] version 3.9.3 Signed-off-by: mulhern --- CHANGES.txt | 18 ++++++++++++++++++ src/stratis_cli/_version.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index f3737f89a..2fdf68a23 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,21 @@ +stratis-cli 3.9.3 +================= +Required stratisd version: 3.9.2 + +Recommended development environment: Fedora 44 + +! Indicates a PR that was reverted. + +! Restart 3.10.0: + https://github.com/stratis-storage/stratis-cli/pull/1308 + +- Fix typo in changelog: + https://github.com/stratis-storage/stratis-cli/pull/1309 + +- Require setuptools version no greater than 69: + https://github.com/stratis-storage/stratis-cli/pull/1310 + + stratis-cli 3.9.2 ================== Required stratisd version: 3.9.2 diff --git a/src/stratis_cli/_version.py b/src/stratis_cli/_version.py index 28243c2af..5d9c5e052 100644 --- a/src/stratis_cli/_version.py +++ b/src/stratis_cli/_version.py @@ -17,5 +17,5 @@ .. moduleauthor:: mulhern """ -__version_info__ = (3, 9, 2) +__version_info__ = (3, 9, 3) __version__ = ".".join(str(x) for x in __version_info__)