Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-27269

Zone migration does not select volumes properly according to user input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • openstack-watcher
    • 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.

              jgilaber@redhat.com Joan Francesc Gilabert Navarro
              jgilaber@redhat.com Joan Francesc Gilabert Navarro
              rhos-workloads-evolution
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: