← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1612466] Re: aggregate object file does not define LOG error in Liberty

 

This is not a bug in upstream code, at least what you're patching.

** Changed in: nova
       Status: In Progress => Invalid

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

Title:
  aggregate object file does not define LOG error in Liberty

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  the error output in nova-api.log is :
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions [req-56dda11e-3041-4fac-8342-bb643643a1c7 e88120bc348c4f3ca37207ef4bcd3b90 43b2137632ac4ad8b2
  df8c0d27f13fb8 - - -] Unexpected exception in API method
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrap
  ped
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrappe
  r
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/aggregates.py", line 169,
   in _remove_host
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions     six.reraise(self.type_, self.value, self.tb)
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 3908, in remove_host_from
  _aggregate
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 213, in wrapper
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions     return fn(self, *args, **kwargs)
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/objects/aggregate.py", line 165, in delete_host
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/objects/aggregate.py", line 64, in update_aggre
  gate_for_instances
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions NameError: global name 'LOG' is not defined
  2016-08-09 14:50:19.131 4532 ERROR nova.api.openstack.extensions
  2016-08-09 14:50:19.148 4532 INFO nova.api.openstack.wsgi [req-56dda11e-3041-4fac-8342-bb643643a1c7 e88120bc348c4f3ca37207ef4bcd3b90 43b2137632ac4ad8b2df8c0d27f13fb8 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <type 'exceptions.NameError'>

  so i found that in nova/object/aggregate.py function
  update_aggregate_for_instance using LOG.exception to write down
  message in nova-api.log when instance.save error and throw exception,
  bug in this module does not defined LOG, so it will report  Unexpected
  API Error.

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


References