]> 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)
committerTomoki Sekiyama <tomoki.sekiyama@hds.com>
Wed, 22 Oct 2014 23:39:33 +0000 (23:39 +0000)
commitc22038b9005070e51224f5057aac9f73cf4d0340
tree6629041210522187517089d0a9fe1c611c489e01
parentc10525973651d488f5d7d83446561406742f61d4
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
cinder/brick/iscsi/iscsi.py
cinder/tests/test_iscsi.py
cinder/volume/iscsi.py