Export cinder volumes only if the status is 'in-use'
Currently, cinder volumes are exported both 'in-use' and 'available'
after restarting cinder-volume service.
This behavior was introduced following commit.
commit ffefe18334a9456250e1b6ff88b7b47fb366f374
Author: Zhiteng Huang <email address hidden>
Date: Sat Aug 23 18:32:57 2014 +0000
If the volumes are attached to nova instances, they should be exported
via tgtd after restarting cinder-volume.
But the volumes which are not attached to instances must not be exported
because everyone can connect these volumes.
This patch changes volume export behavior that exports a volume only if
the volume status is 'in-use'.
Reviewed: https:/ /review. openstack. org/128483 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=f7ee62cc58d 8b642af67510a31 0f6259492a4508
Committed: https:/
Submitter: Jenkins
Branch: proposed/juno
commit f7ee62cc58d8b64 2af67510a310f62 59492a4508
Author: Mitsuhiro Tanino <email address hidden>
Date: Tue Oct 14 12:41:41 2014 -0400
Export cinder volumes only if the status is 'in-use'
Currently, cinder volumes are exported both 'in-use' and 'available'
after restarting cinder-volume service.
This behavior was introduced following commit.
commit ffefe18334a9456 250e1b6ff88b7b4 7fb366f374
Author: Zhiteng Huang <email address hidden>
Date: Sat Aug 23 18:32:57 2014 +0000
If the volumes are attached to nova instances, they should be exported
via tgtd after restarting cinder-volume.
But the volumes which are not attached to instances must not be exported
because everyone can connect these volumes.
This patch changes volume export behavior that exports a volume only if
the volume status is 'in-use'.
Change-Id: I4c598c240b9290 c81bd8001e5a072 0c8c329aeb9 432be0eab6a851a df53ac58ea)
Signed-off-by: Mitsuhiro Tanino <email address hidden>
Closes-bug: #1381106
(cherry picked from commit e2f28b967910625