def _RemoveSnapshot(self, disk_index):
    snapshot = self._snapshots[disk_index]
    if snapshot is not None and not self._snapshots_removed[disk_index]:
      src_node_uuid = self._instance.primary_node
      src_node_name = self._lu.cfg.GetNodeName(src_node_uuid)

      self._feedback_fn("Removing snapshot of disk/%s on node %s" %
                        (disk_index, src_node_name))

      result = self._lu.rpc.call_blockdev_remove(src_node_uuid,
                                                 (snapshot, self._instance))
      if result.fail_msg:
        self._lu.LogWarning("Could not remove snapshot for disk/%d from node"
                            " %s: %s", disk_index, src_node_name,
                            result.fail_msg)
      else:
        self._snapshots_removed[disk_index] = True
Removes an LVM snapshot.
dataset/ETHPy150Open ganeti/ganeti/lib/masterd/instance.py/ExportInstanceHelper._RemoveSnapshot