]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add call to vol driver when accepting a transfer
authorJohn Griffith <john.griffith@solidfire.com>
Tue, 4 Jun 2013 19:02:37 +0000 (13:02 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 4 Jun 2013 19:06:20 +0000 (13:06 -0600)
commitd03c94f2b0e3a6d15e404d245fdfa895ca6430de
tree1ce6cd6aad12dd3bc6fdf24fdf3861a0a06e8631
parent7d1534c8f393d1ff3544da37aa672f1d28c49802
Add call to vol driver when accepting a transfer

Some back-ends have the notion of tenancy on volumes
and set ownership in the driver.  The update of the DB
alone when doing volume transfers isn't enough, we need
to be able to propogate the update info all the way
down to the driver level.

This patch introduces the volume api/manger/rpc calls
and implements a stub in the base driver that can
be over-ridden for those that need to take some action.

Change-Id: Ica6ae368084c44b32af5d08df14bb3745f3a37ee
cinder/tests/test_volume_rpcapi.py
cinder/transfer/api.py
cinder/volume/api.py
cinder/volume/driver.py
cinder/volume/manager.py
cinder/volume/rpcapi.py