The zone migration strategy now properly validates that audits specify either dst_pool OR dst_type for volume operations, but not both. This should prevent having both volume migration and retype operations for a volume in the same action plan. The schema validation now uses 'oneOf' and 'not' to reject audit that specify both dst_pool and dst_type simultaneously. Updated tests to cover the new validation logic including: - Valid configurations with dst_pool only - Valid configurations with dst_type only - Invalid configurations with both dst_pool and dst_type - Multiple storage pools with mixed valid configurations The change also adds docstrings for the zone migration audit api tests. Generated-By: claude-code (claude-sonnet-4-5) Closes-Bug: 2128056 Change-Id: Ief35d465615036323475eb38329f8c1c188f94b1 Signed-off-by: jgilaber <jgilaber@redhat.com>
8 lines
304 B
YAML
8 lines
304 B
YAML
---
|
|
upgrade:
|
|
- |
|
|
The Zone Migration Strategy now accepts audits with either 'dst_type' or
|
|
'dst_pool' as input, but not with both. The strategy won't support retyping
|
|
and migrating a volume in the same action plan, so the user should choose
|
|
the input according to the desired operation.
|