]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Windows iSCSI: remove ensure_export
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 5 May 2015 08:12:50 +0000 (11:12 +0300)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 5 May 2015 12:33:47 +0000 (15:33 +0300)
commit1dd84038178ec0658fdfb04939bcdbf1cfd4c6f9
treed29444f9ffe8a17e51f855e867a98efda6cdf27e
parent844b4fd4eaaacb782ff7aac51b41a5f048c0fbfd
Windows iSCSI: remove ensure_export

The ensure_export method is called by the manager when the service
is initialized, ensuring that in-use volumes are properly exported.

iSCSI targets exported by WinTarget persist after host reboot.
For this reason, the ensure_export method can simply pass, thus
simplifying the iSCSI target creation logic.

The patch set depending on this introduces CHAP credentials support.
If the iSCSI target is accidentaly deleted, the CHAP credentials
will change, so the volume won't be accessible anyway if the target
is recreated using ensure_export.

Change-Id: I29367fc0ef0e38bb06c4a0ff5a485274cc29660e
cinder/tests/unit/windows/test_windows.py
cinder/volume/drivers/windows/windows.py
cinder/volume/drivers/windows/windows_utils.py