'Creates a volume.'

def create_volume(self, volume):

    LOG.debug('create_volume    on    %s', volume['host'])
    eseries_pool_label = volume_utils.extract_host(volume['host'], level='pool')
    if (eseries_pool_label is None):
        msg = _('Pool    is    not    available    in    the    volume    host    field.')
        raise exception.InvalidHost(reason=msg)
    eseries_volume_label = utils.convert_uuid_to_es_fmt(volume['name_id'])
    extra_specs = na_utils.get_volume_extra_specs(volume)
    size_gb = int(volume['size'])
    self._create_volume(eseries_pool_label, eseries_volume_label, size_gb, extra_specs)
    self._add_volume_to_consistencygroup(volume)
