Activity log for bug #1183276

Date Who What changed Old value New value Message
2013-05-23 09:46:36 David McNally bug added bug
2013-05-23 09:48:46 David McNally description We are seeing the following error message in the nova-compute logs: Instance <ID> found in the hypervisor, but not in the database Upon investigation we found that the instance is running on the hypervisor and correctly entered in the database. I've tracked this down to a function in the compute manager _get_instances_on_driver. This method is called periodically from _running_deleted_instances (and possibly from other places). _get_instances_on_driver calls instance_get_all_by_filters and, in this case, the filters are set to retrieve deleted instances on the current host. The list of instances retrieved is compared to the list of instances currently running on the hypervisor. Any instances on the host but not listed in the return from the db query are logged in the above error format, however this means instances which are perfectly healthy are getting logged simply because they are not set to deleted. This results an error message for every instance on the host being logged each time the periodic task happens. I think we need to remove the log message in this case as it can't know what filters have been specified and so can't provide useful information and just causes noise for anyone monitoring errors. We are seeing the following error message in the nova-compute logs: Instance <ID> found in the hypervisor, but not in the database Upon investigation we found that the instance is running on the hypervisor and correctly entered in the database. I've tracked this down to a function in the compute manager _get_instances_on_driver. This method is called periodically from  _running_deleted_instances (and possibly from other places). _get_instances_on_driver calls instance_get_all_by_filters and, in this case, the filters are set to retrieve deleted instances on the current host. The list of instances retrieved is compared to the list of instances currently running on the hypervisor. Any instances on the host but not listed in the return from the db query are logged in the above error format, however this means instances which are perfectly healthy are getting logged simply because they are not set to deleted. This results in an error message for every instance on the host being logged each time the periodic task happens. I think we need to remove the log message in this case as it can't know what filters have been specified and so can't provide useful information and just causes noise for anyone monitoring errors.
2013-05-23 11:51:04 David McNally nova: assignee David McNally (dave-mcnally)
2013-05-23 13:34:00 OpenStack Infra nova: status New In Progress
2013-06-12 05:27:14 OpenStack Infra nova: status In Progress Fix Committed
2013-07-17 12:32:46 Thierry Carrez nova: status Fix Committed Fix Released
2013-07-17 12:32:46 Thierry Carrez nova: milestone havana-2
2013-10-17 11:54:26 Thierry Carrez nova: milestone havana-2 2013.2