16446385dd
The get_dst_pool_and_type method was always selecting the first matching storage pool based only on src_pool, ignoring the src_type parameter. This caused incorrect volume migrations when the user supplied multiple values for storage_pools with the same source pool but different source types. This change implements a two-pass matching approach: 1. First pass attempts to match both src_pool and src_type for exact matches 2. Second pass falls back to matching just src_pool if no exact match is found Tests are updated to verify the correct behavior including the more restrictive matching logic. Generated-By: claude-code (clause-sonnet-4.5) Closes-Bug: 2129692 Change-Id: I05f8d66c6a79e0cff356ac83b88b28942f14a9a9 Signed-off-by: jgilaber <jgilaber@redhat.com>
16 lines
696 B
YAML
16 lines
696 B
YAML
---
|
|
fixes:
|
|
- |
|
|
Fixed zone migration strategy destination pool and type selection.
|
|
Previously, the get_dst_pool_and_type method was always selecting the
|
|
first matching storage pool based only on src_pool, ignoring the
|
|
src_type parameter. This caused incorrect volume migrations when
|
|
users supplied multiple values for storage_pools with the same
|
|
source pool but different source types.
|
|
|
|
The method now implements a two-pass matching approach:
|
|
first attempting to match both src_pool and src_type for exact matches,
|
|
then falling back to matching just src_pool if no exact match is found.
|
|
|
|
For more info see: https://bugs.launchpad.net/watcher/+bug/2129692
|