cinder/bin
John Griffith 524c7fa6df Detect and fix issues caused by vol ID migration
The migration from volume ID to UUID neglected to update the provider_location
field on the volume.  As a result the iqn and volume name no long match and
existing volumes are no longer able to be attached after an upgrade
(essex -> folsom and then nova-vol->cinder).

This patch adds a method to the volume driver that will check for the
mismatch of volume name in the iqn during service start up.  If
detected it will update the provider_location field in the database
to include the new ID.  Also it will create a symlink to the device backing
file that also has the correct naming convention.

Note: We don't disturb an connections that are currently attached.
For this case we add a check in manager.detach and do any provider_location
cleanup that's needed at that time.  This ensures that connections
persist on restarts of tgtd and reboot.

Change-Id: I8224824b793c98a9767c5d8dd741d892be720c4f
Fixes: bug 1065702
2012-10-29 16:39:17 -06:00
..
cinder-all Use openstack.common.log for logging. 2012-07-20 12:12:12 +00:00
cinder-api Use openstack.common.log for logging. 2012-07-20 12:12:12 +00:00
cinder-clear-rabbit-queues Update HACKING.rst and related changes from Nova/PEP8. 2012-10-22 18:41:16 -04:00
cinder-manage Add nova migrate_version check to cinder import 2012-09-19 09:11:25 -06:00
cinder-rootwrap Update HACKING.rst and related changes from Nova/PEP8. 2012-10-22 18:41:16 -04:00
cinder-scheduler Use openstack.common.log for logging. 2012-07-20 12:12:12 +00:00
cinder-volume utils module is still being used by cinder-volume service 2012-07-20 09:00:51 -07:00
cinder-volume-usage-audit Detect and fix issues caused by vol ID migration 2012-10-29 16:39:17 -06:00