]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add Brick iSCSI attach/detach.
authorWalter A. Boring IV <walter.boring@hp.com>
Tue, 11 Jun 2013 22:27:56 +0000 (15:27 -0700)
committerWalter A. Boring IV <walter.boring@hp.com>
Wed, 26 Jun 2013 17:07:47 +0000 (10:07 -0700)
commit0a155bea36aee44c5e7ecd026efe9537eee25eda
treecc4136b64e8391e4c2f1e6f9a7673dad59e3e8c8
parentce2827b911ddbc050f953e4afa45ed72a915b1db
Add Brick iSCSI attach/detach.

This patch adds the new brick initiator connector object
which contains the code to do volume attach and detach to a host
machine.  It includes hooks to work in both cinder and nova.
Nova has different exec wrapper and it also needs to talk to a
hypervisor at certain points during detach.

This patch also pulls the copy/pasted code from nova in the base
ISCSIDriver's _attach_volume method to use this new brick library.

This patch also includes a fix in the ISCSIDriver's
copy_volume_to_image code that didn't actually detach a volume
when it was done with the operation.
Bug 1194962

This patch also includes a fix for iSCSI detaches where the
iSCSI LUN wasn't being removed from the system until the very
last detach issues an iscsiadm logout.
Bug 1112483

This patch includes a fix for iSCSI multipath detaches where
the multipath device and the iSCSI LUNs for the multipath device
were never removed from the kernel.
Bug 1112483

Blueprint cinder-refactor-attach

Change-Id: Ieb181f896adb9230bbb6a2e5c42f261d61a0f140
cinder/brick/initiator/__init__.py [new file with mode: 0644]
cinder/brick/initiator/connector.py [new file with mode: 0644]
cinder/brick/initiator/executor.py [new file with mode: 0644]
cinder/brick/initiator/host_driver.py [new file with mode: 0644]
cinder/brick/initiator/linuxscsi.py [new file with mode: 0644]
cinder/tests/test_brick_initiator.py [new file with mode: 0644]
cinder/volume/driver.py
etc/cinder/rootwrap.d/volume.filters