]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix retyping attached volumes requiring migration
authorgit-harry <git-harry@live.co.uk>
Mon, 23 Jun 2014 14:47:34 +0000 (15:47 +0100)
committergit-harry <git-harry@live.co.uk>
Mon, 23 Jun 2014 14:47:34 +0000 (15:47 +0100)
commit31ad23c4820048ca13e0948e28d2a90ad228b09c
tree097d5ef6e81532a5a021057af20a6f2ac4cace2e
parent511fca5568cc92bb63b78cb7c2bed48b53388bfb
Fix retyping attached volumes requiring migration

Modifies retype method so that volume db entry only updated if the
volume isn't migrated.

The migrate_volume_completion method is made responsible for detaching
the old volume and attaching the new one. This takes the requirement
from nova because the calls need to be done in a certain order which
isn't guaranteed when performed by nova.

attach_volume now marks the migration_status as complete because it is
the final action by cinder.

Change-Id: Ia15636893be4f0077a4f75e746a8ab1a8798c44b
Partial-Bug: 1316079
cinder/tests/test_volume.py
cinder/volume/manager.py