InstanceInfoCacheNotFound: Info cache for instance XXXX could not be found

asked 2020-03-30 05:10:51 -0500

lissette.garcia gravatar image

Hi all,

We have openstack ocata and nova version 15.1.5. There is a compute where nova-compute is down and when we try to restart it fails. In nova logs we can see the following errors:

020-03-19 13:25:15.246 9809 INFO nova.compute.manager [req-3d894696-e1b8-4b9a-908f-93ffa4b55226 - - - - -] [instance: 308eebe4-178c-486b-8a06-5a558f07aea9] Deleting instance as it has been evacuated from this host
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service [req-3d894696-e1b8-4b9a-908f-93ffa4b55226 - - - - -] Error starting thread.
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service Traceback (most recent call last):
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 722, in run_service
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     service.start()
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/nova/service.py", line 144, in start
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     self.manager.init_host()
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1154, in init_host
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     self._destroy_evacuated_instances(context)
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 658, in _destroy_evacuated_instances
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     context, instance)
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages  /nova/network/base_api.py", line 255, in get_instance_nw_info
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     result = self._get_instance_nw_info(context, instance, **kwargs)
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1299, in _get_instance_nw_info
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     compute_utils.refresh_info_cache_for_instance(context, instance)
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/nova/compute/utils.py", line 502, in refresh_info_cache_for_instance
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     instance.info_cache.refresh()
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 210, in wrapper
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     ctxt, self, fn.__name__, args, kwargs)
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/nova/conductor/rpcapi.py", line 244, in object_action
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     objmethod=objmethod, args=args, kwargs=kwargs)
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     retry=self.retry)
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service     timeout=timeout, retry=retry)
2020-03-19 13:25:15.332 9809 ERROR oslo_service.service   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 566, in ...
(more)
edit retag flag offensive close merge delete

Comments

This issue is supposed to be resolved according to this bug report, but I'm not sure if it's backported to Ocata. Can you check if your code has that change?

eblock gravatar imageeblock ( 2020-03-30 08:56:26 -0500 )edit

Thanks for your answer. I was checking the bug and seems the solution is not included for ocata. I was checking my code also, and the it doesn't have the change included. Do you know if it will be backported to Ocata soon?

lissette.garcia gravatar imagelissette.garcia ( 2020-03-31 07:51:32 -0500 )edit

It probably won't be backported because Ocata is EOL, unfortunately. So you'll either have to patch it on your own or upgrade after you fixed the issue.

eblock gravatar imageeblock ( 2020-04-01 03:09:34 -0500 )edit