]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add ability to update migration info on backend
authorJohn Griffith <john.griffith@solidfire.com>
Tue, 21 Oct 2014 23:19:22 +0000 (23:19 +0000)
committerJohn Griffith <john.griffith8@gmail.com>
Fri, 24 Oct 2014 20:20:32 +0000 (14:20 -0600)
commitf3df1c8d57587bf112c464feedd523080550b7a6
tree5cf43fce4574d0219c1e84c83f32676f788e2950
parent2cb1aaf69d17963cc7205002fa194b3b41b51d5f
Add ability to update migration info on backend

The current migration process creates a new volume,
xfr's it's contents, then deletes the original and
modifies the new volume to have the previous ID.

All in all this is kinda troublesome, but regardless
the bigger problem is that the generic impl doesn't
provide any method to tell the backend devices that
their device names/id's have changed.

This patch provides a method to inform backends
that a migration operation has been completed on
their target volume.

It shouldn't be necessary to do anything with the originating
or source volume because it's deleted as part of the process.

Change-Id: Ib5e6a47fe9eedab3e60e77a6c2d987355c0bf167
Closes-Bug: #1383499
cinder/tests/test_volume.py
cinder/volume/driver.py
cinder/volume/manager.py
cinder/volume/rpcapi.py