Comment 1 for bug 1787067

Revision history for this message
Eric Miller (erickmiller) wrote :

This appears to be a bug in the Freezer client v1 here:
https://github.com/openstack/python-freezerclient/blob/master/freezerclient/v1/client.py#L33

Below on lines 33 and 35, opts.os_identity_api_version is being compared to a string instead of an integer "3" and "2.0", respectively.

However, after changing these to 3 and 2.0, respectively, I get a 404 error when loading one of the Horizon Freezer pages, such as "Jobs", so I'm looking into that now.

Eric

def guess_auth_version(opts):
    """Guess keystone version to connect to"""
    if opts.os_identity_api_version == '3':
        return '3'
    elif opts.os_identity_api_version == '2.0':
        return '2.0'
    elif opts.os_auth_url.endswith('v3'):
        return '3'
    elif opts.os_auth_url.endswith('v2.0'):
        return '2.0'
    raise Exception('Please provide valid keystone auth url with valid'
                    ' keystone api version to use')