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 << ---------------------'
Fix proposed to branch: master /review. openstack. org/24144
Review: https:/