cinder/cinder/scheduler
Avishay Traeger 3fd7857a36 Add ability to modify volume type
This patch adds the volume retype operation, which allows a user to
change a given volume's type.

When retyping, the scheduler checks if the volume's current host can
accept the new type (i.e., it checks if the host passes the filters when
using the new type). If the current host is suitable, its manager is
called which calls upon the driver to change the volume's type.

There are two cases where a retype operation may require migrating the
volume:
1. The volume's current host cannot accept the new type
2. The volume's driver cannot perform the retype operation

In case of a migration, a volume with the new type is created, and the
data is migrated to it.

Volume migrations resulting from retype can be controlled by passing a
policy, which can be either:
1. 'never': Never migrate (the retype fails if migration is required)
   (default)
2. 'on-demand': Migrate when necessary

This version will cause retype operations to fail if the current and
new volume types have different:
1. QoS settings that are enforced by the front-end for in-use volumes.
2. encryption settings.

Subsequent patches can address these cases.

DocImpact

Change-Id: I2dc99b4fa64d611d2bb936fc3890ca334e08bb55
Implements: blueprint volume-retype
2014-01-06 22:02:09 +02:00
..
filters Add ability to modify volume type 2014-01-06 22:02:09 +02:00
weights Merge "Add AllocatedCapacityWeigher" 2013-12-31 19:59:03 +00:00
__init__.py Remove vim header 2013-12-30 18:53:02 -06:00
chance.py Add ability to modify volume type 2014-01-06 22:02:09 +02:00
driver.py Add ability to modify volume type 2014-01-06 22:02:09 +02:00
filter_scheduler.py Add ability to modify volume type 2014-01-06 22:02:09 +02:00
host_manager.py Replace Simple/Chance Scheduler with FilterScheduler 2014-01-01 00:10:16 +08:00
manager.py Add ability to modify volume type 2014-01-06 22:02:09 +02:00
rpcapi.py Add ability to modify volume type 2014-01-06 22:02:09 +02:00
scheduler_options.py Remove vim header 2013-12-30 18:53:02 -06:00
simple.py Add ability to modify volume type 2014-01-06 22:02:09 +02:00