← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1175923] Re: nova boot fail because KeyError : u'disk_gb_limit'

 

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

** Changed in: nova
    Milestone: None => havana-1

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

Title:
  nova boot fail because KeyError : u'disk_gb_limit'

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  I use Havana openstack, and after installing all the modules, i use
  :nova boot --image XXX --flavor 1 instance_name" , BUT the instance
  come to ERROR state. I looked up the compute.log,

  ERROR is :

  2013-05-03 00:20:55    ERROR [nova.openstack.common.rpc.amqp] Exception during scheduler.run_instance
  Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 433, in _process_data
      **args)
    File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 148, in dispatch
      return getattr(proxyobj, method)(ctxt, **kwargs)
    File "/usr/lib/python2.6/site-packages/nova/exception.py", line 117, in wrapped
      temp_level, payload)
    File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
      self.gen.next()
    File "/usr/lib/python2.6/site-packages/nova/exception.py", line 94, in wrapped
      return f(self, context, *args, **kw)
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 213, in decorated_function
      pass
    File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
      self.gen.next()
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 199, in decorated_function
      return function(self, context, *args, **kwargs)
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 264, in decorated_function
      function(self, context, *args, **kwargs)
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 241, in decorated_function
      e, sys.exc_info())
    File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
      self.gen.next()
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 228, in decorated_function
      return function(self, context, *args, **kwargs)
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1319, in run_instance
      do_run_instance()
    File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 242, in inner
      retval = f(*args, **kwargs)
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1318, in do_run_instance
      admin_password, is_first_time, node, instance)
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 877, in _run_instance
      notify("error", msg=unicode(e))  # notify that build failed
    File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
      self.gen.next()
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 861, in _run_instance
      admin_password, is_first_time, node, instance, image_meta)
    File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 920, in _build_instance
      with rt.instance_claim(context, instance, limits):
    File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 242, in inner
      retval = f(*args, **kwargs)
    File "/usr/lib/python2.6/site-packages/nova/compute/resource_tracker.py", line 103, in instance_claim
      if claim.test(self.compute_node, limits):
    File "/usr/lib/python2.6/site-packages/nova/compute/claims.py", line 120, in test
      can_claim = (self._test_memory(resources, memory_mb_limit) and
    File "/usr/lib/python2.6/site-packages/nova/compute/claims.py", line 138, in _test_memory
      return self._test(type_, unit, total, used, requested, limit)
    File "/usr/lib/python2.6/site-packages/nova/compute/claims.py", line 175, in _test
      "%(unit)s") % locals()

  WHEN I comment the line out , boot can be active.

      msg = _("%(type_)s limit: %(limit)d %(unit)s, free: %(free)d
  %(unit)s") % locals()

  BY THE WAY, when I change it to

      msg = _("%(type_)s limit: %(limit)f %(unit)s, free: %(free)f
  %(unit)s") % locals()

  nova boot can success also,  "limit" may be a float instead of a
  integer.

  Thank you

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