]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port infortrend driver to Python 3
authorVictor Stinner <vstinner@redhat.com>
Tue, 9 Feb 2016 17:56:06 +0000 (18:56 +0100)
committerVictor Stinner <vstinner@redhat.com>
Mon, 15 Feb 2016 20:35:44 +0000 (21:35 +0100)
commit071ee18240cd793cc41ca70e0181b28c8695ede2
tree76d9b2c9a17826304374214b2f5d6e5632b64828
parentf0ef5e50e4bda799d870a5694b01eae73a9f1a58
Port infortrend driver to Python 3

* InfortrendCommon: sort dictionary items to get a reliable
  behaviour. On Python 3, the hash function is randomized by default.

  - _get_minimun_mapping_channel_id(): sort LUN mapping by keys
  - _do_fc_connection(): sort initiator_target_map keys

* InfortrendCommon._create_partition_with_pool(): cast gi_to_mi()
  result to int. On Python 3, gi_to_mi() returns a float (a/b always
  return a float, even for int/int).
* test_retype_with_migrate(): build create_params using a dictionary
  to create parameter in the same order than the driver.
* tests-py3.txt: cinder.tests.unit.test_infortrend_common

Change-Id: Idd849a9cd5dc0ad17c5d8d54da489346c018e778
cinder/tests/unit/test_infortrend_common.py
cinder/volume/drivers/infortrend/eonstor_ds_cli/common_cli.py
tests-py3.txt