-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
0
-
False
-
-
False
-
?
-
rhos-workloads-evolution
-
None
-
-
-
-
Moderate
To Reproduce Steps to reproduce the behavior:
Create a zone migration audit with an inpute like:
"storage_pools":[ {"src_type": "type_fast", "dst_type": "type_fast", "src_pool": "temp_pool", "dst_pool": "fast_pool"}, {"src_type": "type_slow", "dst_type": "type_slow", "src_pool": "temp_pool", "dst_pool": "slow_pool"}, ]}
Expected behavior
The audit should select all the volumes of type "type_fast" in "temp_pool" and migrate them to "fast_pool", and all the volumes of type "type_slow" in "temp_pool" and migrate them to "slow_pool". However, currently the get_dst_pool_and_type method will always select the first input of the list, so all volumes in "temp_pool" will be migrated to "fast_pool", which is incorrect. The method should take into account both the src_pool and src_type and select the input dictionary that matches both, and the one matching the src_pool if src_type is not passed.
- links to