Horizon Network Topology view fails on fresh environment Fuel 8.0

Bug #1523504 reported by Sam Stoelinga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Timur Sufiev

Bug Description

Steps to reproduce:
1. Deploy a new environment with HA + no Ceph consisting only of 1 controller + 1 compute
2. Open Network Topology in horizon

Current result:
Unable to open page it throws an exception. See error below

This is most likely a bug in Horizon.

ERROR LOG:
2015-12-07 13:44:49,860 16704 ERROR django.request Internal Server Error: /horizon/project/network_topology/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 154, in get
    context = self.get_context_data(**kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/network_topology/views.py", line 168, in get_context_data
    context['instance_quota_exceeded'] = self._quota_exceeded('instances')
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/network_topology/views.py", line 158, in _quota_exceeded
    usages = quotas.tenant_quota_usages(self.request)
  File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py", line 90, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 373, in tenant_quota_usages
    _get_tenant_compute_usages(request, usages, disabled_quotas, tenant_id)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 290, in _get_tenant_compute_usages
    usages.tally('instances', len(instances))
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 128, in tally
    self.update_available(name)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 132, in update_available
    available = self.usages[name]['quota'] - self.usages[name]['used']
KeyError: 'quota'

VERSION:
  feature_groups:
    - experimental
  production: "docker"
  release: "8.0"
  openstack_version: "2015.1.0-8.0"
  api: "1.0"
  build_number: "117"
  build_id: "117"
  fuel-nailgun_sha: "86cebc1d92c7cc9ca25b00f5590954a7c4f880a0"
  python-fuelclient_sha: "91474bd8c526f4f536ab13368feb4a5c1b84d185"
  fuel-agent_sha: "660c6514caa8f5fcd482f1cc4008a6028243e009"
  fuel-nailgun-agent_sha: "a33a58d378c117c0f509b0e7badc6f0910364154"
  astute_sha: "b60624ee2c5f1d6d805619b6c27965a973508da1"
  fuel-library_sha: "032c707ec800f11044b32733dd4d395e06c209d0"
  fuel-ostf_sha: "65de07b5dce50349e7bc414f364505483c34e2b1"
  fuel-mirror_sha: "bfe7af26b7e6fdd46a16480481cc757f67958177"
  fuelmenu_sha: "fcb15df4fd1a790b17dd78cf675c11c279040941"
  shotgun_sha: "a0bd06508067935f2ae9be2523ed0d1717b995ce"

Tags: horizon
description: updated
Changed in fuel:
assignee: nobody → MOS Horizon (mos-horizon)
status: New → Confirmed
importance: Undecided → High
milestone: none → 8.0
tags: added: area-mos
Timur Sufiev (tsufiev-x)
affects: fuel → mos
Changed in mos:
milestone: 8.0 → none
assignee: MOS Horizon (mos-horizon) → Timur Sufiev (tsufiev-x)
milestone: none → 8.0
Timur Sufiev (tsufiev-x)
tags: added: horizon
removed: area-mos
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (openstack-ci/fuel-8.0/liberty)

Fix proposed to branch: openstack-ci/fuel-8.0/liberty
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/14587

Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/horizon (openstack-ci/fuel-8.0/liberty)

Reviewed: https://review.fuel-infra.org/14587
Submitter: Pkgs Jenkins <email address hidden>
Branch: openstack-ci/fuel-8.0/liberty

Commit: eb04683bfeb3644ca2a0952093fbda950bd7f3fb
Author: Timur Sufiev <email address hidden>
Date: Thu Dec 10 15:37:28 2015

Fix update of disabled Nova quotas

Since the introduction of disabling Nova quotas in Horizon config (so
they would mirror disabled quotas on Nova side), it became possible
that a specific quota dictionary key (say 'instances') doesn't have a
'quota' key in a corresponding dictionary value (since this exact
quota is disabled). Fix that by treating the absence of 'quota' key as
an infinite quota.

This fix is already included in an upstream patch at
https://review.openstack.org/#/c/215277

Closes-Bug: #1523504
Change-Id: I14194edd1df906d96553763e04566a8952eaf60c

Changed in mos:
status: In Progress → Fix Committed
Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (9.0/mitaka)

Fix proposed to branch: 9.0/mitaka
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/18483

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/horizon (9.0/mitaka)

Change abandoned by Timur Sufiev <email address hidden> on branch: 9.0/mitaka
Review: https://review.fuel-infra.org/18483
Reason: Absorbed into https://review.fuel-infra.org/#/c/18476/

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.