def rollback_to_snap(self, volume, name):
        with RBDVolumeProxy(self, volume) as vol:
            if name in [snap.get('name', '') for snap in vol.list_snaps()]:
                LOG.debug('rolling back rbd image(%(img)s) to '
                          'snapshot(%(snap)s)', {'snap': name, 'img': volume})
                tpool.execute(vol.rollback_to_snap, name)
            else:
                raise exception.SnapshotNotFound(snapshot_id=name)
@see: twisted.names.client.lookupCanonicalName
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/storage/rbd_utils.py/RBDDriver.rollback_to_snap--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/names/common.py/ResolverBase.lookupCanonicalName