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.
Reviewed: https:/ /review. openstack. org/129756 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=c22038b9005 070e51224f5057a ac9f73cf4d0340
Committed: https:/
Submitter: Jenkins
Branch: master
commit c22038b9005070e 51224f5057aac9f 73cf4d0340
Author: Tomoki Sekiyama <email address hidden>
Date: Mon Oct 20 14:32:55 2014 -0400
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 password every time initialize_ connection is called.
username/
Also, it enables CHAP auth in unit tests of TargetAdmin helpers.
Change-Id: I48729a33fada62 a7c8e4fe500b1e3 9533d898701
Closes-Bug: #1383509