← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1101587] Re: KeyError: u'memory_mb_limit' in nova.po

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1101587

Title:
  KeyError: u'memory_mb_limit' in nova.po

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Discovered Key Error while trying to boot instances. The following
  code in nova.po at line 3743:

  #: nova/compute/resource_tracker.py:168
  #, fuzzy, python-format
  msgid ""
  "Attempting claim: memory %(memory_mb)d MB, disk %(disk_gb)d GB, VCPUs "
  "%(vcpus)d"
  msgstr ""
  "Attempting claim: memory %(memory_mb)d MB, disk %(disk_gb)d GB, mem limit"
  " %(memory_mb_limit)s"

  https://github.com/openstack/nova/blob/master/nova/locale/en_US/LC_MESSAGES/nova.po#L3740

  Produces the following error:

  2013-01-18 15:56:22.796 ERROR nova.compute.manager [req-
  d7b141a1-f91b-4615-b344-518092b618dd 65836e9a4c594e7a929bad924d411b51
  8712bc7ce33d452aba3c810e3825b63f] [instance: efa7e6ca-a66e-4b42-b76e-
  971d1868c8d2] Error: ['Traceback (most recent call last):\n', '  File
  "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 680,
  in _run_instance\n    with rt.instance_claim(context, instance,
  limits):\n', '  File "/usr/lib/python2.6/site-
  packages/nova/openstack/common/lockutils.py", line 234, in inner\n
  retval = f(*args, **kwargs)\n', '  File "/usr/lib/python2.6/site-
  packages/nova/compute/resource_tracker.py", line 102, in
  instance_claim\n    if claim.test(self.compute_node, limits):\n', '
  File "/usr/lib/python2.6/site-packages/nova/compute/claims.py", line
  120, in test\n    LOG.audit(msg % params, instance=self.instance)\n',
  "KeyError: u'memory_mb_limit'\n"]

  The string message can't be translated because it is trying to
  reference 'memory_mb_limit' as the key, which is not found.

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