]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
LIO: Handle initiator IQNs as case insensitive
authorEric Harney <eharney@redhat.com>
Tue, 1 Dec 2015 23:14:17 +0000 (18:14 -0500)
committerEric Harney <eharney@redhat.com>
Wed, 2 Dec 2015 17:18:32 +0000 (12:18 -0500)
commitc3d8c0d0588bbf02933dd0bcb8da9f9964af4829
tree2e722cb98b64244191bee6ad06fb9d1031a04b5e
parent65bed9807981c86ac1b591805c86793796fa6a4e
LIO: Handle initiator IQNs as case insensitive

If there is a mismatch in case between the stored
initiator IQN in the LIO ACL vs. the IQN provided
in a later call, rtstool would fail to find the
existing ACL.

Compare IQNs in a case insensitive manner to ensure
they will always match as intended.  (Refer to RFC
3720 section 3.2.6.1 for details on this.)

Closes-Bug: #1522053

Change-Id: I6f535f3f4fbfcbbb49da30cffb08d17b3cac778a
cinder/cmd/rtstool.py
cinder/tests/unit/test_cmd.py