← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1864133] Re: cinder service isn't working via horizon after doing a Rocky->Stein->Train upgrade

 

Reviewed:  https://review.opendev.org/709954
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=4b31ae5063e4392ecf964ffaae15a30bf97ddedc
Submitter: Zuul
Branch:    master

commit 4b31ae5063e4392ecf964ffaae15a30bf97ddedc
Author: Akihiro Motoki <amotoki@xxxxxxxxx>
Date:   Wed Feb 26 02:26:29 2020 +0900

    Check volume endpoint availability in the same order
    
    cinder microversion check (api.cinder.get_microversion) checks
    volume endpoint availability in a different order as cinderclient()
    does. It does not API_VERSIONS setting in horizon.
    As a result, when multiple volume endpoints are configured,
    get_microversion() accesses a volume endpoint with a different API
    version. At the moment cinder v2 and v3 APIs returns the same info,
    so it only affects when cinder v1 endpoint is configured.
    
    This commit introduces a new function _find_cinder_url() to
    retrieve a volume endpoint considering API_VERSIONS.
    
    get_auth_params_from_request() is no longer needed and the variable
    substitutions are now backed to cinderclient(). It was introduced
    so that the memoized decorator worked but the memoized decorator
    was improved and we no longer need it.
    
    Change-Id: I69b1fc11caf8a78c49e98aba6c538e5f344b14f2
    Closes-Bug: #1864133


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1864133

Title:
  cinder service isn't  working via horizon after doing a
  Rocky->Stein->Train upgrade

Status in Cinder:
  Incomplete
Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in kolla-ansible:
  Triaged

Bug description:
  Description:

  cinder service isn't working via horizon after doing a Rocky->Stein->Train upgrade.
  We use kollan-ansible to do the upgrade. And lvm as volume backend.

  Horizon dashboard http://HORIZON-DASHBOARD-HOST/project/volumes/ page display empty and just says:
  "Error: Unable to retrieve volume list."
  "Error: Unable to retrieve snapshot list."

  whereas it is working via openstack client tool, say "openstack volume
  list" output is ok.

  Other info:
  =====> cinder-api-access.log via horizon <=======
  - - - [21/Feb/2020:01:44:25 +0000] "GET /v1/3f1cbbce59704574b423b5baaafaaae0 HTTP/1.1" 404 154 2068 "-" "python-requests/2.22.0"
  - - - [21/Feb/2020:01:44:25 +0000] "GET /v1/3f1cbbce59704574b423b5baaafaaae0 HTTP/1.1" 404 154 1926 "-" "python-requests/2.22.0"

  =====> cinder-api-access.log via openstack client <=======
  - - - [21/Feb/2020:01:43:40 +0000] "GET /v3/3f1cbbce59704574b423b5baaafaaae0/volumes/detail HTTP/1.1" 200 3321 90044 "-" "python-cinderclient"

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1864133/+subscriptions