'Create snapshot of existing volume on appliance.'

def create_snapshot(self, snapshot):

    try:
        out = self._eql_execute('volume', 'select', snapshot['volume_name'], 'snapshot', 'create-now')
        prefix = 'Snapshot    name    is    '
        snap_name = self._get_prefixed_value(out, prefix)
        self._eql_execute('volume', 'select', snapshot['volume_name'], 'snapshot', 'rename', snap_name, snapshot['name'])
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.error('Failed    to    create    snapshot    of    volume    "%s".', snapshot['volume_name'])
