'Get converted 3PAR volume name.
Converts the openstack volume id from
ecffc30f-98cb-4cf5-85ee-d7309cc17cd2
to
osv-7P.DD5jLTPWF7tcwnMF80g
We convert the 128 bits of the uuid into a 24character long
base64 encoded string to ensure we don\'t exceed the maximum
allowed 31 character name limit on 3Par
We strip the padding \'=\' and replace + with .
and / with -'

def _get_3par_vol_name(self, volume_id, temp_vol=False):

    volume_name = self._encode_name(volume_id)
    if temp_vol:
        prefix = 'tsv-%s'
    else:
        prefix = 'osv-%s'
    return (prefix % volume_name)
