← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1741493] Re: OverflowError at /project/network_topology/

 

Reviewed:  https://review.openstack.org/531469
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=6baf8c9fa011f02e2e6038c6d62fb4d5201e6006
Submitter: Zuul
Branch:    master

commit 6baf8c9fa011f02e2e6038c6d62fb4d5201e6006
Author: Akihiro Motoki <amotoki@xxxxxxxxx>
Date:   Sat Jan 6 03:50:36 2018 +0900

    Handle float('inf') in tenant_quota_usages properly
    
    tenant_absolute_limits API wrapper converts -1 (unlimited)
    to float('inf'), but tenant_quota_usages() cannot handle this
    properly. This is a regression during the quota refactoring work.
    This commit changes QuotaUsage.add_quota() to accept float('inf')
    as one of unlimited quota value.
    
    Closes-Bug: #1741493
    Part of blueprint make-quotas-great-again
    Change-Id: Ic6ed00761381d52ee04a15a43ee4fe2a30b9a106


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

Title:
  OverflowError at /project/network_topology/

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  I installed DevStack with master branch of all the projects and the
  local.conf at /tacker/devstack/local.conf.example.

  When I go to topology view in the dashboard, it can not show the
  topology.

  Trackback leads to:
  ...
  File "/opt/stack/horizon/openstack_dashboard/usage/quotas.py" in add_quota
    145.             self.usages[quota.name]['quota'] = int(quota.limit)

  Exception Type: OverflowError at /project/network_topology/
  Exception Value: cannot convert float infinity to integer

  The full traceback is here: http://dpaste.com/0M8JP1H

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


References