Use src_type to filter volumes in zone migration

Despite having the src_type paremeter for the storage_pool dictionary as
a mandatory parameter, the value is not being used to filter the volumes
to migrate, using only 'src_pool'.

This change makes 'src_type' optional, since it was ignored until this
point, making it optional keeps the same behaviour by default. If
'src_type' is in the audit parameters, the strategy uses both 'src_pool' and
'src_type' to filter the volumes to migrate.

Closes-Bug: 2111507
Change-Id: Id83a96de85ada1ae6c0e25f8b7fcf54034604911
Signed-off-by: jgilaber <jgilaber@redhat.com>
This commit is contained in:
jgilaber
2025-06-04 17:23:04 +02:00
parent cee72d2bda
commit cb6fb16097
5 changed files with 471 additions and 19 deletions

View File

@@ -0,0 +1,10 @@
---
fixes:
- |
Currently, the zone migration strategy has a ``src_type`` parameter in the ``storage_pools``
input parameter which is ignored, even though it's required when storage_pools is defined.
This patch makes the src_type parameter optional in the zone migration strategy, and when
passed by the user, will use its values to filter the volumes which can be migrated.
For more details: https://launchpad.net/bugs/2111507