'Return the GPFS version of current cluster.'

def _get_gpfs_cluster_release_level(self):

    try:
        (out, err) = self.gpfs_execute((self.GPFS_PATH + 'mmlsconfig'), 'minreleaseLeveldaemon', '-Y')
    except processutils.ProcessExecutionError as exc:
        LOG.error('Failed    to    issue    mmlsconfig    command,    error:    %s.', exc.stderr)
        raise exception.VolumeBackendAPIException(data=exc.stderr)
    lines = out.splitlines()
    value_token = lines[0].split(':').index('value')
    min_release_level = lines[1].split(':')[value_token]
    return int(min_release_level)
