nova notifier test cases failed

Bug #1153921 reported by Lianhao Lu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Critical
Lianhao Lu

Bug Description

The latest nova notifier grizzly unit test failed with the following output due to the nova patch https://github.com/openstack/nova/commit/bd5a9b87:

| ======================================================================
2013-03-12 00:19:46.930 | ERROR: test_correct_gatherer (test_grizzly.TestNovaNotifier)
2013-03-12 00:19:46.934 | ----------------------------------------------------------------------
2013-03-12 00:19:46.940 | Traceback (most recent call last):
2013-03-12 00:19:46.945 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
2013-03-12 00:19:46.948 | return func(*args, **keywargs)
2013-03-12 00:19:46.950 | File "/home/jenkins/workspace/gate-ceilometer-python27/nova_tests/test_grizzly.py", line 175, in setUp
2013-03-12 00:19:46.952 | instance=self.instance)
2013-03-12 00:19:46.953 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/exception.py", line 117, in wrapped
2013-03-12 00:19:46.958 | temp_level, payload)
2013-03-12 00:19:46.962 | File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-03-12 00:19:46.968 | self.gen.next()
2013-03-12 00:19:46.972 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/exception.py", line 94, in wrapped
2013-03-12 00:19:46.972 | return f(self, context, *args, **kw)
2013-03-12 00:19:46.973 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/manager.py", line 261, in decorated_function
2013-03-12 00:19:46.977 | function(self, context, *args, **kwargs)
2013-03-12 00:19:46.980 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/manager.py", line 238, in decorated_function
2013-03-12 00:19:46.981 | e, sys.exc_info())
2013-03-12 00:19:46.981 | File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-03-12 00:19:46.987 | self.gen.next()
2013-03-12 00:19:46.987 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/manager.py", line 225, in decorated_function
2013-03-12 00:19:46.994 | return function(self, context, *args, **kwargs)
2013-03-12 00:19:46.995 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/manager.py", line 1294, in terminate_instance
2013-03-12 00:19:46.998 | do_terminate_instance(instance, bdms)
2013-03-12 00:19:47.002 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/openstack/common/lockutils.py", line 242, in inner
2013-03-12 00:19:47.002 | retval = f(*args, **kwargs)
2013-03-12 00:19:47.002 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/manager.py", line 1286, in do_terminate_instance
2013-03-12 00:19:47.010 | self._delete_instance(context, instance, bdms)
2013-03-12 00:19:47.011 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/hooks.py", line 85, in inner
2013-03-12 00:19:47.011 | rv = f(*args, **kwargs)
2013-03-12 00:19:47.015 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/manager.py", line 1232, in _delete_instance
2013-03-12 00:19:47.022 | self._notify_about_instance_usage(context, instance, "delete.start")
2013-03-12 00:19:47.028 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/manager.py", line 1094, in _notify_about_instance_usage
2013-03-12 00:19:47.030 | extra_usage_info=extra_usage_info, host=self.host)
2013-03-12 00:19:47.031 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/utils.py", line 245, in notify_about_instance_usage
2013-03-12 00:19:47.036 | network_info, system_metadata, **extra_usage_info)
2013-03-12 00:19:47.039 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/notifications.py", line 287, in info_from_instance
2013-03-12 00:19:47.042 | instance_type = instance_types.extract_instance_type(instance_ref)
2013-03-12 00:19:47.045 | File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/nova/compute/instance_types.py", line 247, in extract_instance_type
2013-03-12 00:19:47.046 | instance_type[key] = type_fn(sys_meta[type_key])
2013-03-12 00:19:47.050 | KeyError: '\'instance_type_memory_mb\'\n-------------------- >> begin captured logging << --------------------\nnova.manager: INFO: Skipping periodic task _periodic_update_dns because its interval is negative\nnova.virt.driver: INFO: Loading compute driver \'nova.virt.fake.FakeDriver\'\nnova.servicegroup.api: DEBUG: ServiceGroup driver defined as an instance of db\nstevedore.extension: DEBUG: found extension EntryPoint.parse(\'libvirt = ceilometer.compute.virt.libvirt.inspector:LibvirtInspector\')\nnova.ceilometer.notifier: DEBUG: using provided stats gatherer <ceilometer.compute.nova_notifier.grizzly.DeletedInstanceStatsGatherer object at 0x309f7d0>\nnova.openstack.common.lockutils: DEBUG: Got semaphore "144e08f4-00cb-11e2-888e-5453ed1bbb5f" for method "do_terminate_instance"...\nnova.ceilometer.notifier: DEBUG: ignoring terminate_instance\nnova.ceilometer.notifier: DEBUG: ignoring terminate_instance\n--------------------- >> end captured logging << ---------------------'

Lianhao Lu (lianhao-lu)
Changed in ceilometer:
assignee: nobody → Lianhao Lu (lianhao-lu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/24144

Changed in ceilometer:
status: New → In Progress
Lianhao Lu (lianhao-lu)
Changed in ceilometer:
milestone: none → grizzly-rc1
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/24144
Committed: http://github.com/openstack/ceilometer/commit/d4eb73682c57f5830a2113f7da5c479dcbb1c8e8
Submitter: Jenkins
Branch: master

commit d4eb73682c57f5830a2113f7da5c479dcbb1c8e8
Author: Lianhao Lu <email address hidden>
Date: Tue Mar 12 14:38:21 2013 +0800

    Fixed the blocking unittest issues.

    1. Fixed the bug #1153921 introduced by the nova changeset
    https://github.com/openstack/nova/commit/bd5a9b87.

    2. Adapted to the latest keystoneclient middleware change introduced by
    https://github.com/openstack/python-keystoneclient/commit/d782a998.

    We must explicit set auth_version to prevent the middleware to
    automatically detect its api version from remote keystone server in
    unittest.

    Change-Id: I439a74a7f9a8a62369ae50dc1d5e50e20f4d3574

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: grizzly-rc1 → 2013.1
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.