← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1355500] [NEW] unmocked method call in databases obtaining flavor

 

Public bug reported:

Exception while obtaining flavors list
Traceback (most recent call last):
  File "/home/david-lyle/horizon/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 56, in flavors
    return api.trove.flavor_list(request)
  File "/home/david-lyle/horizon/horizon/.venv/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
    return mock_method(*params, **named_params)
  File "/home/david-lyle/horizon/horizon/.venv/local/lib/python2.7/site-packages/mox.py", line 1010, in __call__
    raise expected_method._exception
ClientException: Expected failure.
Problem instantiating action class.
Traceback (most recent call last):
  File "/home/david-lyle/horizon/horizon/horizon/workflows/base.py", line 368, in action
    context)
  File "/home/david-lyle/horizon/horizon/horizon/workflows/base.py", line 138, in __init__
    self._populate_choices(request, context)
  File "/home/david-lyle/horizon/horizon/horizon/workflows/base.py", line 151, in _populate_choices
    bound_field.choices = meth(request, context)
  File "/home/david-lyle/horizon/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 65, in populate_flavor_choices
    flavor_list = [(f.id, "%s" % f.name) for f in self.flavors(request)]
  File "/home/david-lyle/horizon/horizon/horizon/utils/memoized.py", line 90, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/david-lyle/horizon/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 62, in flavors
    redirect=redirect)
  File "/home/david-lyle/horizon/horizon/horizon/exceptions.py", line 326, in handle
    raise Http302(redirect)
Http302

In test run.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
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/1355500

Title:
  unmocked method call in databases obtaining flavor

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Exception while obtaining flavors list
  Traceback (most recent call last):
    File "/home/david-lyle/horizon/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 56, in flavors
      return api.trove.flavor_list(request)
    File "/home/david-lyle/horizon/horizon/.venv/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
      return mock_method(*params, **named_params)
    File "/home/david-lyle/horizon/horizon/.venv/local/lib/python2.7/site-packages/mox.py", line 1010, in __call__
      raise expected_method._exception
  ClientException: Expected failure.
  Problem instantiating action class.
  Traceback (most recent call last):
    File "/home/david-lyle/horizon/horizon/horizon/workflows/base.py", line 368, in action
      context)
    File "/home/david-lyle/horizon/horizon/horizon/workflows/base.py", line 138, in __init__
      self._populate_choices(request, context)
    File "/home/david-lyle/horizon/horizon/horizon/workflows/base.py", line 151, in _populate_choices
      bound_field.choices = meth(request, context)
    File "/home/david-lyle/horizon/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 65, in populate_flavor_choices
      flavor_list = [(f.id, "%s" % f.name) for f in self.flavors(request)]
    File "/home/david-lyle/horizon/horizon/horizon/utils/memoized.py", line 90, in wrapped
      value = cache[key] = func(*args, **kwargs)
    File "/home/david-lyle/horizon/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 62, in flavors
      redirect=redirect)
    File "/home/david-lyle/horizon/horizon/horizon/exceptions.py", line 326, in handle
      raise Http302(redirect)
  Http302

  In test run.

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


Follow ups

References