Freezer Horizon page creates "provide valid keystone auth url" error

Bug #1787067 reported by Eric Miller on 2018-08-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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

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?

which a patch exists for the CLI, but not for Horizon.


Eric Miller (erickmiller) wrote :

This appears to be a bug in the Freezer client v1 here:

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.


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')

Eduardo Gonzalez (egonzalez90) wrote :

Hi, thanks for reporting this issue, i've already seen this. Any new info is appreciate.


Changed in kolla-ansible:
status: New → Triaged
importance: Undecided → Low
wu.chunyang (wuchunyang) on 2019-02-13
Changed in kolla-ansible:
assignee: nobody → wu.chunyang (wuchunyang)
wu.chunyang (wuchunyang) on 2019-02-13
Changed in kolla-ansible:
assignee: wu.chunyang (wuchunyang) → nobody
wu.chunyang (wuchunyang) wrote :

hi,i've already seen this, i think the beat way is to set OPENSTACK_KEYSTONE_URL=auth_url/version in horizon local_settings,then it will not return "provide valid keystone auth url".after this ,will get a 404 ERROR,this ERROR because the file path is wrong, it is a bug of horizon or freezer_web_ui, and then when you get jobs-list will retrun 400 wrong,this is because the elasticsearch lib has remove filterd option. should we need repair this problem in kolla-ansible part ?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers