]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Migration for detached volumes with no snaps.
authorAvishay Traeger <avishay@il.ibm.com>
Tue, 18 Jun 2013 18:53:15 +0000 (21:53 +0300)
committerAvishay Traeger <avishay@il.ibm.com>
Wed, 24 Jul 2013 13:05:50 +0000 (16:05 +0300)
commit62105c150dd15a1fabd141594e367a9f16b190e2
tree0133d3f8603d7d4b1403e04e72e960453ff8a303
parentb4f326d6705ae7fab4f6b7e568794f9f65ef2a25
Migration for detached volumes with no snaps.

Implementation of volume migration for detached volumes with no
snapshots. Migration is initiated by an admin API. The scheduler
confirms that the specified destination host can accept the volume.
The source driver is given the opportunity to migrate the volume on
their own. Otherwise, a new volume is created on the destination, both
volumes are attached, the data is copied over, the volumes are
detached, the source is deleted, and the destination is renamed. In
the database, the destination volume's attributes are copied to the
source so that the volume-id remains unchanged, and the destination
volume row is deleted.

DocImpact

Implements: bp volume-migration
Change-Id: Ib6fcf27051f45e60aa3ba5f599e88c1421db753e
31 files changed:
cinder/api/contrib/admin_actions.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/db/sqlalchemy/migrate_repo/versions/014_add_name_id.py [new file with mode: 0644]
cinder/db/sqlalchemy/migrate_repo/versions/014_sqlite_downgrade.sql [new file with mode: 0644]
cinder/db/sqlalchemy/models.py
cinder/exception.py
cinder/scheduler/chance.py
cinder/scheduler/driver.py
cinder/scheduler/filter_scheduler.py
cinder/scheduler/manager.py
cinder/scheduler/rpcapi.py
cinder/tests/api/contrib/test_admin_actions.py
cinder/tests/brick/test_brick_linuxscsi.py
cinder/tests/db/test_finish_migration.py [new file with mode: 0644]
cinder/tests/db/test_name_id.py [new file with mode: 0644]
cinder/tests/policy.json
cinder/tests/scheduler/test_filter_scheduler.py
cinder/tests/scheduler/test_rpcapi.py
cinder/tests/scheduler/test_scheduler.py
cinder/tests/test_migrations.py
cinder/tests/test_volume.py
cinder/tests/test_volume_rpcapi.py
cinder/tests/utils.py
cinder/volume/api.py
cinder/volume/driver.py
cinder/volume/drivers/lvm.py
cinder/volume/manager.py
cinder/volume/rpcapi.py
etc/cinder/policy.json
etc/cinder/rootwrap.d/volume.filters