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)
Reviewed: https:/ /review. openstack. org/135405 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=6fac1268dd5 b144eb4032048fb 83b8c28247473a
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 6fac1268dd5b144 eb4032048fb83b8 c28247473a
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 51224f5057aac9f 73cf4d0340)
Closes-Bug: #1383509
(cherry picked from commit c22038b9005070e