]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Added need info to accept_transfer
authorJohn Griffith <john.griffith@solidfire.com>
Fri, 16 Aug 2013 23:12:11 +0000 (17:12 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 20 Aug 2013 15:02:33 +0000 (09:02 -0600)
commit8fa1fa806b36bd9a06c13b0d1255e87c6307b179
tree7f2ad7530a6ba40d7b3fd5b9cc3bb267bc337c25
parenta75901c65d16126da09bcfc94e8d5512c6a92b17
Added need info to accept_transfer

Drivers that implement accept_transfer will need
things like the new user_id and project_id.  We were
not including this in the original add, in order for
drivers that are tenant aware this information will be
necessary.

Also the get_volume call in the transfer was using
the new user context, so the volume would never be
found.  We fix this here by providing an elevated
context to the get_volume call when accepting the
transfer.

Change-Id: I7b60c19950f85c4309a97bb842ff238bcf8e746a
Fixes: bug 1213275
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