Freezer Horizon page creates "provide valid keystone auth url" error
Bug #1787067 reported by
Eric Miller
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Triaged
|
Low
|
Unassigned |
Bug Description
Kolla-Ansible 6.1.0 (with respective Kolla version 6.1.0)
Distro: CentOS 7.5
Built using source option
Also occurs with Kolla-Ansible 7.0.0.0b3.
When clicking on any of the Freezer menu items, including Jobs, Actions, Sessions, Clients, or Backups, an error appears indicating:
Error: Please provide valid keystone auth url with valid keystone api version to use
This might be related?
https:/
which a patch exists for the CLI, but not for Horizon.
Eric
Changed in kolla-ansible: | |
assignee: | nobody → wu.chunyang (wuchunyang) |
Changed in kolla-ansible: | |
assignee: | wu.chunyang (wuchunyang) → nobody |
To post a comment you must log in.
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'