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')
This appears to be a bug in the Freezer client v1 here: /github. com/openstack/ python- freezerclient/ blob/master/ freezerclient/ v1/client. py#L33
https:/
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): identity_ api_version == '3': identity_ api_version == '2.0': auth_url. endswith( 'v3'): auth_url. endswith( 'v2.0') :
' keystone api version to use')
"""Guess keystone version to connect to"""
if opts.os_
return '3'
elif opts.os_
return '2.0'
elif opts.os_
return '3'
elif opts.os_
return '2.0'
raise Exception('Please provide valid keystone auth url with valid'