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

Bug #1787067 reported by Eric Miller
6
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://bugs.launchpad.net/freezer/+bug/1698318

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

Eric

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

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

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

Regards

Changed in kolla-ansible:
status: New → Triaged
importance: Undecided → Low
wu.chunyang (wuchunyang)
Changed in kolla-ansible:
assignee: nobody → wu.chunyang (wuchunyang)
wu.chunyang (wuchunyang)
Changed in kolla-ansible:
assignee: wu.chunyang (wuchunyang) → nobody
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.