]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
TgtAdm: Don't change CHAP username/password on live migration
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Mon, 20 Oct 2014 18:32:55 +0000 (14:32 -0400)
committerThomas Goirand <thomas@goirand.fr>
Sun, 14 Dec 2014 09:18:31 +0000 (09:18 +0000)
commit31538cafe12164549fe1d409a7574ae7679f19cb
tree614d7e1a5cf25b9f90c835eb0ae214899d4072e9
parentc1e07293ddc246b485fef7cc640071c9d545d7cd
TgtAdm: Don't change CHAP username/password on live migration

As tgtd doesn't update CHAP username/password while the initiator is
connected, CHAP username/password must not be changed while a Nova
instance are performing live-migration; otherwise the compute node
which the instance migrates to cannot login to the volume and the
migration process is aborted.

This fixes TgtAdm implementation not to regenerate random
username/password every time initialize_connection is called.
Also, it enables CHAP auth in unit tests of TargetAdmin helpers.

Change-Id: I48729a33fada62a7c8e4fe500b1e39533d898701
Closes-Bug: #1383509
(cherry picked from commit c22038b9005070e51224f5057aac9f73cf4d0340)
cinder/brick/iscsi/iscsi.py
cinder/tests/test_iscsi.py
cinder/volume/iscsi.py