def _read_info_volumes(self, **kwargs):
        info = {utils.VOLUMES_TYPE: {}}
        for vol in self.get_volumes_list(search_opts=kwargs):
            if vol.status not in ['available', 'in-use']:
                continue

            volume = self.convert_volume(vol, self.config, self.cloud)
            snapshots = {}
            if self.config.migrate.keep_volume_snapshots:
                search_opts = {'volume_id': volume['id']}
                for snap in self.get_snapshots_list(search_opts=search_opts):
                    snapshot = self.convert_snapshot(snap,
                                                     volume,
                                                     self.config)
                    snapshots[snapshot['id']] = snapshot
            info[utils.VOLUMES_TYPE][vol.id] = {utils.VOLUME_BODY: volume,
                                                'snapshots': snapshots,
                                                utils.META_INFO: {
                                                }}
        if self.config.migrate.keep_volume_storage:
            info['volumes_db'] = {utils.VOLUMES_TYPE: '/tmp/volumes'}

            # cleanup db
            self.cloud.ssh_util.execute('rm -rf /tmp/volumes',
                                        host_exec=self.mysql_host)

            for table_name, file_name in info['volumes_db'].iteritems():
                self.download_table_from_db_to_file(table_name, file_name)
        return info
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/storage/cinder_storage.py/CinderStorage._read_info_volumes/original