commit e3d7f8c7de9bad73bf1f9b5ee9b2cf46eb452351
Author: John Griffith <email address hidden>
Date: Mon Oct 29 17:57:40 2012 -0600
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.
Reviewed: https:/ /review. openstack. org/15005 github. com/openstack/ nova/commit/ e3d7f8c7de9bad7 3bf1f9b5ee9b2cf 46eb452351
Committed: http://
Submitter: Jenkins
Branch: stable/folsom
commit e3d7f8c7de9bad7 3bf1f9b5ee9b2cf 46eb452351
Author: John Griffith <email address hidden>
Date: Mon Oct 29 17:57:40 2012 -0600
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: Ib41ebdc849ebc3 1a9225bdc490220 9c5a23da104
Fixes: bug 1065702