OverflowError at /project/network_topology/

Bug #1741493 reported by Nguyen Hai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Akihiro Motoki

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

description: updated
Akihiro Motoki (amotoki)
Changed in horizon:
assignee: nobody → Akihiro Motoki (amotoki)
importance: Undecided → Critical
status: New → Triaged
milestone: none → queens-3
Akihiro Motoki (amotoki)
Changed in horizon:
importance: Critical → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/531469

Changed in horizon:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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 <email address hidden>
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 13.0.0.0b3

This issue was fixed in the openstack/horizon 13.0.0.0b3 development milestone.

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.