← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2018232] Re: qos and trunks does not show any entries

 

Reviewed:  https://review.opendev.org/c/openstack/horizon/+/882744
Committed: https://opendev.org/openstack/horizon/commit/c770785dcf6cb9d79ae26986ce5156e4ddc0f534
Submitter: "Zuul (22348)"
Branch:    master

commit c770785dcf6cb9d79ae26986ce5156e4ddc0f534
Author: Tatiana Ovchinnikova <t.v.ovtchinnikova@xxxxxxxxx>
Date:   Tue May 9 14:04:35 2023 -0500

    Fix qos and trunks tables
    
    When replacing deprecated custom callback methods success()/error()
    with then()/catch(), we need to keep in mind that methods' signatures
    and return values are different, so we need to explicitly return the
    response value when using then(function onSuccess(response){}).
    
    Closes-Bug: #2018232
    
    Change-Id: I9d6d769075753c6395db2530a8d60ec28cafdc3d


** 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/2018232

Title:
  qos and trunks does not show any entries

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Horizon Zed does not show any entries in "network/network qos" and
  "network/trunks" it just shows "No items to display" and there is an
  error in the browser console:

  TypeError: Cannot read properties of undefined (reading 'data')
      at modifyResponse (output.2f23aa85dea9.js:868:63)
      at processQueue (output.c0c52d1d8fb8.js:1581:786)
      at output.c0c52d1d8fb8.js:1585:110
      at Scope.$digest (output.c0c52d1d8fb8.js:1636:200)
      at Scope.$apply (output.c0c52d1d8fb8.js:1643:269)
      at done (output.c0c52d1d8fb8.js:1356:123)
      at completeRequest (output.c0c52d1d8fb8.js:1375:20)
      at XMLHttpRequest.requestLoaded (output.c0c52d1d8fb8.js:1368:1) 'Possibly unhandled rejection: {}'
  (

  TypeError: Cannot read properties of undefined (reading 'data')
      at addTrackBy (output.5e3096d425c4.js:1114:59)
      at processQueue (output.989d06bb6631.js:1469:260)
      at output.989d06bb6631.js:1470:135
      at Scope.$eval (output.989d06bb6631.js:1516:549)
      at Scope.$digest (output.989d06bb6631.js:1510:200)
      at Scope.$apply (output.989d06bb6631.js:1517:277)
      at done (output.989d06bb6631.js:1244:123)
      at completeRequest (output.989d06bb6631.js:1259:20)
      at XMLHttpRequest.requestLoaded (output.989d06bb6631.js:1253:1)
  (

  With CLI everything works just fine:

  $ openstack network qos policy list
  +--------------------------------------+---------+--------+---------+----------------------------------+
  | ID                                   | Name    | Shared | Default | Project                          |
  +--------------------------------------+---------+--------+---------+----------------------------------+
  | 01d40d01-45b0-404f-8064-06d502baaeae | test01 | False  | False   | f5b9d6bf68184e3da8aaebef2d4804be |
  | 549420b8-9562-474c-a02c-3910866eb145 | test02     | True   | False   | f5b9d6bf68184e3da8aaebef2d4804be |
  | 5f5194c2-4b98-4d26-8021-74a5c8a93e27 | test03     | False  | False   | f5b9d6bf68184e3da8aaebef2d4804be |
  +--------------------------------------+---------+--------+---------+----------------------------------+

  Tested on kolla-asible Zed (Ubuntu 22.04) and packstack Zed (CentOS
  Stream 9) both with the same result.

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



References