From: Jenkins Date: Fri, 11 Sep 2015 17:12:46 +0000 (+0000) Subject: Merge "Add migrate_volume to BaseVD" X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fc84c1b62dded024cf72217f5a7bfdcf9a04024c;p=openstack-build%2Fcinder-build.git Merge "Add migrate_volume to BaseVD" --- fc84c1b62dded024cf72217f5a7bfdcf9a04024c diff --cc cinder/volume/driver.py index 37ff9f90b,2b3f2a540..917132629 --- a/cinder/volume/driver.py +++ b/cinder/volume/driver.py @@@ -1392,14 -1392,18 +1392,22 @@@ class BaseVD(object) """Get provider info updates from driver. :param volumes: List of Cinder volumes to check for updates - :return: dict of update {'id': uuid, provider_id: } + :param snapshots: List of Cinder snapshots to check for updates + :return: tuple (volume_updates, snapshot_updates) + + where volume updates {'id': uuid, provider_id: } + and snapshot updates {'id': uuid, provider_id: } """ - return None + return None, None + def migrate_volume(self, context, volume, host): + """Migrate volume stub. + + This is for drivers that don't implement an enhanced version + of this operation. + """ + return (False, None) + @six.add_metaclass(abc.ABCMeta) class LocalVD(object):