'Create volume.'

def create_volume(self, volume):

    LOG.info('create_volume,    volume    id:    %s,    Enter    method.', volume['id'])
    (element_path, metadata) = self.common.create_volume(volume)
    v_metadata = volume.get('volume_metadata')
    if v_metadata:
        for data in v_metadata:
            metadata[data['key']] = data['value']
    else:
        v_metadata = volume.get('metadata', {})
        metadata.update(v_metadata)
    LOG.info('create_volume,    info:    %s,    Exit    method.', metadata)
    return {'provider_location': six.text_type(element_path), 'metadata': metadata}
